/* ============================================================
   css/shop_ai_staff_panel.css
   Стилі для мобільної WMS адмін-панелі ШІ-чату
   ============================================================ */

/* === АДМІН-ПАНЕЛЬ (слайд зверху) === */
.staff-admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--shop-bg, #0a0f1c);
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.staff-admin-panel.active {
    transform: translateY(0);
}

/* Шапка панелі */
.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--shop-surface, #1e293b);
    border-bottom: 2px solid var(--shop-primary, #1e3a5f);
    flex-shrink: 0;
}
.admin-panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.admin-close-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--shop-text, #e2e8f0);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.admin-close-btn:hover {
    background: rgba(239,68,68,0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* === ГОРИЗОНТАЛЬНІ ТАБИ === */
.admin-tabs {
    display: flex;
    width: 100%;
    background: var(--shop-surface, #1e293b);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    /* Забороняємо shrink-to-fit для контейнера */
    overflow: hidden;
}
.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 2px;
    border: none;
    background: none;
    color: var(--shop-muted, #94a3b8);
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    /* white-space: nowrap більше не використовуємо — воно дозволяло кнопці розширюватись */
    white-space: normal;
    overflow: hidden;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    /* flex: 1 1 0px — рівний поділ без врахування контенту */
    flex: 1 1 0px;
    min-width: 0;
    max-width: none;
    /* Видалено width: 25% — тепер ширина задається JS в залежності від кількості вкладок */
    box-sizing: border-box;
}
.admin-tab .tab-icon {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    text-align: center;
}
.admin-tab .tab-label {
    display: block;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.65rem;
}
.admin-tab:hover {
    color: var(--shop-text, #e2e8f0);
    background: rgba(255,255,255,0.03);
}
.admin-tab.active {
    color: #fff;
    border-bottom-color: var(--shop-primary, #1e3a5f);
    background: rgba(255,255,255,0.05);
}

/* === КОНТЕНТ ВКЛАДОК === */
.admin-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}
.admin-tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}
.admin-tab-pane.active {
    display: block;
}

/* === КАРТКИ ЗАМОВЛЕНЬ === */
.order-card {
    background: var(--shop-surface, #1e293b);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s, transform 0.15s;
}
.order-card:active {
    transform: scale(0.98);
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.order-number {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}
.order-time {
    font-size: 0.75rem;
    color: var(--shop-muted, #94a3b8);
}
.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--shop-muted, #94a3b8);
}
.order-info-row strong {
    color: var(--shop-text, #e2e8f0);
}
.order-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Статус-бейджі */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-new { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-draft { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px dashed rgba(148,163,184,0.3); }

/* Стилі для тултипу статусу "Планується" у WMS */
.status-planned-tooltip-container {
    position: relative;
    display: inline-block;
}
.status-planned-tooltip {
    visibility: hidden;
    width: 280px;
    background-color: #1e293b;
    color: #f8fafc;
    text-align: left;
    border-radius: 8px;
    padding: 10px 14px;
    position: absolute;
    z-index: 1000;
    bottom: 130%;
    right: 0;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
    font-size: 0.85rem;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    border: 1px solid #475569;
    white-space: normal;
    pointer-events: none;
}
.status-planned-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 25px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}
.status-planned-tooltip-container:hover .status-planned-tooltip {
    visibility: visible;
    opacity: 1;
}
.status-planned-tooltip-container.tooltip-active .status-planned-tooltip {
    visibility: visible;
    opacity: 1;
}

.status-processing { background: rgba(234,179,8,0.15); color: #facc15; }
.status-assembling { background: rgba(249,115,22,0.15); color: #fb923c; }
.status-ready { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-completed { background: rgba(148,163,184,0.15); color: #94a3b8; }
.status-cancelled { background: rgba(239,68,68,0.15); color: #f87171; }

/* === ЧЕК-ЛИСТ ЗБИРАННЯ === */
.assembly-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.assembly-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--shop-text, #e2e8f0);
    transition: background 0.2s, opacity 0.3s;
    cursor: pointer;
}
.assembly-checklist li:active {
    background: rgba(255,255,255,0.06);
}
.assembly-checklist li.checked {
    opacity: 0.5;
    text-decoration: line-through;
}
.assembly-checklist li .item-checkbox {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.assembly-checklist li.checked .item-checkbox {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.assembly-checklist li .item-info {
    flex: 1;
    min-width: 0;
}
.assembly-checklist li .item-name {
    display: block;
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
}
.assembly-checklist li .item-qty {
    font-size: 0.8rem;
    color: var(--shop-muted, #94a3b8);
}

/* === КАРТКИ СПІВРОБІТНИКІВ === */
.staff-card {
    background: var(--shop-surface, #1e293b);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.staff-info {
    flex: 1;
    min-width: 0;
}
.staff-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.staff-role {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(96,165,250,0.15);
    color: #60a5fa;
    font-weight: 500;
}
.staff-meta {
    font-size: 0.78rem;
    color: var(--shop-muted, #94a3b8);
    margin-top: 4px;
}
.staff-actions {
    display: flex;
    gap: 6px;
}
.staff-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--shop-text, #e2e8f0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.staff-action-btn:hover {
    background: rgba(255,255,255,0.1);
}
.staff-action-btn.danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: #ef4444;
    color: #ef4444;
}
.staff-action-btn.success:hover {
    background: rgba(34,197,94,0.2);
    border-color: #22c55e;
    color: #22c55e;
}

/* Індикатор статусу staff */
.staff-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.staff-status-dot.active { background: #4ade80; box-shadow: 0 0 5px #4ade80; }
.staff-status-dot.paused { background: #facc15; box-shadow: 0 0 5px #facc15; }
.staff-status-dot.inactive { background: #64748b; }

/* === КНОПКИ === */
.wms-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.wms-btn:active {
    transform: scale(0.96);
}
.wms-btn-primary {
    background: var(--shop-primary, #1e3a5f);
    color: #fff;
}
.wms-btn-primary:hover {
    filter: brightness(1.2);
}
.wms-btn-success {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}
.wms-btn-success:hover {
    background: rgba(34,197,94,0.25);
}
.wms-btn-danger {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
}
.wms-btn-danger:hover {
    background: rgba(239,68,68,0.25);
}
.wms-btn-warning {
    background: rgba(234,179,8,0.15);
    color: #facc15;
    border: 1px solid rgba(234,179,8,0.3);
}
.wms-btn-block {
    width: 100%;
    justify-content: center;
}
.wms-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === ПОРОЖНІЙ СТАН === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--shop-muted, #94a3b8);
    text-align: center;
}
.empty-state .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-state p {
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.5;
}

/* === МОДАЛЬНІ ВІКНА === */
.wms-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.wms-modal {
    background: var(--shop-surface, #1e293b);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wms-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
.wms-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.wms-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* === ФОРМИ === */
.wms-form-group {
    margin-bottom: 16px;
}
.wms-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--shop-muted, #94a3b8);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wms-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--shop-text, #e2e8f0);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wms-input:focus {
    outline: none;
    border-color: var(--shop-primary, #1e3a5f);
}
.wms-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--shop-surface, #1e293b);
    color: var(--shop-text, #e2e8f0);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

/* === QR-КОД ЗАПРОШЕННЯ === */
.qr-invite-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}
.qr-invite-container .qr-box {
    background: #fff;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 16px;
}
.qr-invite-timer {
    font-size: 0.85rem;
    color: #facc15;
    font-weight: 500;
}
.qr-invite-name {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

/* === ФІЛЬТРИ ЗАМОВЛЕНЬ === */
.order-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 12px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}
.order-filters.active {
    cursor: grabbing;
}
.order-filters::-webkit-scrollbar { display: none; }

.order-filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: var(--shop-muted, #94a3b8);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}
.order-filter-btn.active {
    background: var(--shop-primary, #1e3a5f);
    border-color: var(--shop-primary, #1e3a5f);
    color: #fff;
}

/* === ЗАСТАВКА БЛОКУВАННЯ === */
.staff-blocked-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 28, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 20px;
    text-align: center;
    color: var(--shop-text, #e2e8f0);
}
.staff-blocked-overlay .block-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}
.staff-blocked-overlay h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}
.staff-blocked-overlay p {
    color: var(--shop-muted, #94a3b8);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.5;
}

/* === КНОПКА АДМІН-ПАНЕЛІ В ШАПЦІ === */
.admin-panel-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--shop-text, #e2e8f0);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.admin-panel-toggle:hover {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
}
.admin-panel-toggle .admin-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #22c55e;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--shop-surface);
}

/* === ІНФО-БЛОК МАГАЗИНУ === */
.shop-info-block {
    background: var(--shop-surface, #1e293b);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.shop-info-block h4 {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #fff;
}
.shop-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--shop-muted, #94a3b8);
}
.shop-info-row i {
    width: 20px;
    text-align: center;
    color: var(--shop-primary, #1e3a5f);
}

/* === АНІМАЦІЇ === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* === МЕДІА-ЗАПИТИ (Мобільна адаптивність) === */
@media (max-width: 480px) {
    .admin-tab {
        padding: 8px 12px;
        font-size: 0.65rem;
    }
    .admin-tab .tab-icon {
        font-size: 1rem;
    }
    .admin-tab-content {
        padding: 12px;
    }
    .order-card {
        padding: 12px;
    }
    .assembly-checklist li {
        padding: 10px 12px;
    }
    .wms-modal {
        max-height: 95vh;
    }
}

@media (min-width: 768px) {
    .staff-admin-panel {
        width: 480px;
        max-width: 480px;
        left: auto;
        right: 0;
        border-left: 1px solid rgba(255,255,255,0.06);
    }
    .wms-modal-overlay {
        align-items: center;
    }
    .wms-modal {
        border-radius: 20px;
        max-height: 80vh;
    }
}

/* === KPI ДАШБОРД (owner) === */
.kpi-dashboard {
    background: var(--shop-surface, #1e293b);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
}
.kpi-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kpi-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.kpi-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.kpi-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 2px;
}
.kpi-card-label {
    font-size: 0.65rem;
    color: #94a3b8;
}
.kpi-staff-list {
    font-size: 0.75rem;
    color: #e2e8f0;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 8px;
}
.kpi-staff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.kpi-staff-item:last-child {
    margin-bottom: 0;
}
.kpi-staff-name {
    font-weight: 500;
}
.kpi-staff-metrics {
    color: #94a3b8;
}

/* === WMS ІТЕРАЦІЯ 3: ОФФЛАЙН ТА ШЕРИНГ === */
.wms-offline-indicator {
    background: #ea580c;
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 8px 12px 0 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    animation: pulseOffline 2s infinite ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
@keyframes pulseOffline {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.7; }
}

.btn-share {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}
.btn-share:hover {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* Анімація потрійної пульсації рядка товару для WMS збирача */
@keyframes wms-row-pulse {
    0% {
        background-color: rgba(22, 163, 74, 0.05);
    }
    50% {
        background-color: rgba(22, 163, 74, 0.25);
        box-shadow: inset 0 0 10px rgba(22, 163, 74, 0.15);
    }
    100% {
        background-color: rgba(22, 163, 74, 0.05);
    }
}

.wms-row-pulsate {
    animation: wms-row-pulse 0.8s ease-in-out 3 !important; /* 3 пульсації */
}

/* ============================================================
   РЕЖИМ ПРИЙМАННЯ ТОВАРУ (Inventory Mode)
   ============================================================ */

/* Жовта рамка чату коли режим активний */
.inventory-mode-active {
    border: 2px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Активний банер */
.inventory-active-banner {
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(217,119,6,0.08));
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #fbbf24;
    margin-bottom: 12px;
    animation: inventoryPulse 3s infinite;
}

@keyframes inventoryPulse {
    0%, 100% { border-color: rgba(245,158,11,0.25); }
    50% { border-color: rgba(245,158,11,0.5); }
}

/* Картка підтвердження операції */
.inventory-confirm-card {
    background: rgba(16, 24, 40, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    backdrop-filter: blur(10px);
}
.inv-card-header {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.inv-card-body {
    margin-bottom: 12px;
}
.inv-card-body div {
    padding: 4px 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
}
.inv-card-body div b {
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin-right: 4px;
}
.inv-card-actions {
    display: flex;
    gap: 8px;
}
.inv-card-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* WMS плаваючий банер під шапкою */
.wms-chat-active-banner {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: bannerPulse 3s infinite;
}
.wms-chat-active-banner.hidden {
    display: none !important;
}
@keyframes bannerPulse {
    0%, 100% { background-color: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }
    50% { background-color: rgba(245, 158, 11, 0.22); border-color: rgba(245, 158, 11, 0.5); }
}

/* Золотиста підсвітка інпуту */
.chat-input-area.wms-input-active {
    border-top: 1px solid rgba(245, 158, 11, 0.4) !important;
    background: rgba(245, 158, 11, 0.03) !important;
    box-shadow: 0 -4px 15px rgba(245, 158, 11, 0.08) !important;
}
.chat-input-area.wms-input-active textarea {
    border-color: rgba(245, 158, 11, 0.3) !important;
}
.chat-input-area.wms-input-active textarea:focus {
    border-color: rgba(245, 158, 11, 0.7) !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15) !important;
}
.chat-input-area.wms-input-active #send-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}

/* Пульсація та підсвічування картки товару при швидкому скануванні */
@keyframes wmsHighlightPulseAnim {
    0% {
        border-color: rgba(251, 191, 36, 0.35);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
        background: rgba(251, 191, 36, 0.02);
    }
    50% {
        border-color: #fbbf24;
        box-shadow: 0 0 15px 5px rgba(251, 191, 36, 0.6);
        background: rgba(251, 191, 36, 0.15);
    }
    100% {
        border-color: rgba(251, 191, 36, 0.35);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
        background: rgba(251, 191, 36, 0.02);
    }
}
.wms-highlight-pulse {
    animation: wmsHighlightPulseAnim 1.2s ease-in-out 3 !important;
    border-color: #fbbf24 !important;
}

/* Панель швидкого пошуку та автоматичного відмічання товарів */
.wms-quick-scanner-bar {
    position: relative;
    background: rgba(26, 36, 56, 0.96);
    border-bottom: 1px solid rgba(251, 191, 36, 0.25);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Стан прилипання (sticky) */
.wms-quick-scanner-bar.pinned {
    position: sticky !important;
    top: 0px !important; /* Впритул до верхнього банера */
    z-index: 9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(45, 60, 90, 0.98) !important; /* Світліший колір */
    border-bottom: 1px solid rgba(251, 191, 36, 0.45) !important;
}

/* Додаткові обгортки для контенту */
.wms-scanner-text-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e5e7eb;
}

.wms-scanner-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 480px) {
    .wms-quick-scanner-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 14px !important;
    }
    
    .wms-scanner-buttons-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .wms-scanner-buttons-wrapper button:first-child {
        flex: 1 !important;
        height: 28px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
    }
    
    .wms-scanner-buttons-wrapper button:last-child {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Стан відключеної кнопки авто-націнки */
.wms-markup-apply-btn:disabled {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

