﻿/* ═══════════════════════════════════════════════════════════════════════════
   D4 — Pending Sales Queue table + Pending badges
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Queue table ──────────────────────────────────────────────────────────── */
.pending-queue-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .pending-queue-table thead th {
        text-align: left;
        padding: 0.7rem 1rem;
        border-bottom: 1px solid #e5e7eb;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6b7280;
        background: #f9fafb;
    }

.pending-queue-row {
    cursor: pointer;
    transition: background 0.1s;
}

    .pending-queue-row:hover {
        background: #f3f4f6;
    }

    .pending-queue-row:focus {
        background: #eef2ff;
        outline: 2px solid #6366f1;
        outline-offset: -2px;
    }

    .pending-queue-row td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
        vertical-align: top;
    }

    .pending-queue-row:last-child td {
        border-bottom: none;
    }

.pending-queue-mono {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #4b5563;
}

.pending-queue-num {
    font-family: 'Roboto Mono', monospace;
    text-align: right;
    font-weight: 600;
}

.pending-queue-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.pending-queue-unrouted {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 600;
}

.pending-queue-missing {
    color: #d97706;
    font-style: italic;
    font-size: 0.85rem;
}

/* ── Header badges (desktop + mobile) ─────────────────────────────────────── */
.header-pending-badge,
.mobile-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #78350f;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s;
}

    .header-pending-badge:hover,
    .mobile-pending-badge:hover {
        background: #fde68a;
        color: #78350f;
    }

.header-pending-icon, .mobile-pending-icon {
    font-size: 1rem;
}

.header-pending-count, .mobile-pending-count {
    min-width: 1rem;
    text-align: center;
    line-height: 1;
}

.header-pending-badge {
    margin-right: 0.75rem;
}

/* Mobile sits inside .mobile-topbar-actions, smaller padding */
.mobile-pending-badge {
    padding: 0.25rem 0.5rem;
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

.dr-alert-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #78350f;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
}

/* The hidden HTML attribute is the source of truth — make it trump
   any `display` rule inside the modal. Scoped so it doesn't leak to
   unrelated pages that may rely on .hidden being non-authoritative. */
.pos-modal-overlay [hidden] {
    display: none !important;
}
.pending-queue-inline-banner {
    margin: 0.5rem 0;
}

