
            .chat-back-btn { display: flex; align-items: center; }
            .chat-input-area { padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
            .chat-input-row { gap: 4px; }
            .chat-btn-attach { width: 30px; height: 30px; font-size: 12px; }
            .chat-btn-send { height: 38px; min-width: 38px; padding: 0 10px; font-size: 15px; }
            .chat-textarea-input { font-size: 16px; min-height: 44px; flex: 1; min-width: 0; } /* 16px prevents iOS zoom */
        }
        @media (max-width: 480px) {
            .chat-messages { padding: 12px 10px; }
        }

        /* ===== CHAT BUBBLE DELETE BUTTON ===== */
        .chat-bubble-wrap { position: relative; }
        .chat-delete-btn {
            position: absolute;
            top: -10px;
            width: 22px; height: 22px;
            border-radius: 50%;
            background: rgba(220,53,69,0.92);
            border: 1.5px solid rgba(255,255,255,0.28);
            color: #fff;
            font-size: 11px; font-weight: 700;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            opacity: 0;
            transform: scale(0.6);
            transition: opacity 0.18s ease, transform 0.18s ease;
            z-index: 30;
            box-shadow: 0 2px 10px rgba(0,0,0,0.45);
            line-height: 1; padding: 0;
            touch-action: manipulation;
            -webkit-user-select: none; user-select: none;
            pointer-events: none;
        }
        .chat-bubble-wrap:hover .chat-delete-btn,
        .chat-bubble-wrap.show-delete .chat-delete-btn {
            opacity: 1; transform: scale(1); pointer-events: auto;
        }
        .chat-delete-right { right: -10px; }
        .chat-delete-left  { left:  -10px; }
        @media (max-width: 768px) {
            .chat-delete-btn { width: 28px; height: 28px; font-size: 12px; top: -12px; }
            .chat-delete-right { right: -12px; }
            .chat-delete-left  { left:  -12px; }
        }

        .card { background: rgba(8, 20, 55, 0.52); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(0, 200, 255, 0.1); border-radius: 14px; padding: 18px; position: relative; transition: all 0.28s ease; cursor: pointer; box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); }
        .card:hover { background: rgba(0, 50, 120, 0.42); transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 24px rgba(0,200,255,0.1), inset 0 1px 0 rgba(0,240,255,0.08); border-color: rgba(0, 200, 255, 0.22); }
        .card-status-dot { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor, 0 0 16px currentColor; }
        .card-number { font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, 0.95); margin-bottom: 4px; }
        .card-date { font-size: 11px; color: rgba(0, 200, 255, 0.4); margin-bottom: 12px; }
        .card-client { font-size: 13px; color: rgba(255, 255, 255, 0.68); margin-bottom: 4px; }
        .card-amount { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.92); margin-bottom: 10px; }
        .kanban-order-location { display: none; }

        /* ===== VOLUMETRIC BADGES ===== */
        .badge { display: inline-block; border-radius: 12px; padding: 4px 12px; font-size: 11px; font-weight: 700; color: white; margin-right: 6px; letter-spacing: 0.2px; }
        .badge-processing { background: linear-gradient(135deg, #F0C040 0%, #C49A1C 100%); box-shadow: 0 2px 10px rgba(212,160,23,0.45), 0 0 18px rgba(212,160,23,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-completed { background: linear-gradient(135deg, #00E676 0%, #00A855 100%); box-shadow: 0 2px 10px rgba(0,200,100,0.45), 0 0 18px rgba(0,200,100,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-pending { background: linear-gradient(135deg, #00D4FF 0%, #0088CC 100%); box-shadow: 0 2px 10px rgba(0,180,240,0.45), 0 0 18px rgba(0,180,240,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-rejected { background: linear-gradient(135deg, #FF453A 0%, #C42D3C 100%); box-shadow: 0 2px 10px rgba(220,53,69,0.45), 0 0 18px rgba(220,53,69,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
        .badge-urgent { background: linear-gradient(135deg, #FF9F0A 0%, #CC6600 100%); box-shadow: 0 2px 10px rgba(255,149,0,0.45), 0 0 18px rgba(255,149,0,0.15), inset 0 1px 0 rgba(255,255,255,0.22); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

        /* ===== MODALS ===== */
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,5,20,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 1000; }
        .modal { background: rgba(6, 14, 40, 0.88); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); border: 1px solid rgba(0, 200, 255, 0.14); border-radius: 18px; padding: 28px; width: 90%; max-width: 560px; max-height: 85vh; overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,255,0.05), inset 0 1px 0 rgba(0,240,255,0.08); }
        .modal-title { font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, 0.95); margin-bottom: 20px; letter-spacing: -0.2px; }
        .form-group { margin-bottom: 16px; }
        .form-label { display: block; font-size: 11px; font-weight: 600; color: rgba(0, 200, 255, 0.6); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.6px; }
        .form-input, .form-select, .form-textarea { width: 100%; background: rgba(0, 30, 80, 0.4); border: 1px solid rgba(0, 200, 255, 0.12); padding: 10px 12px; border-radius: 9px; color: rgba(255, 255, 255, 0.9); font-size: 13px; transition: all 0.22s ease; outline: none; font-family: inherit; }
        .form-textarea { resize: vertical; min-height: 60px; }
        .form-input:focus, .form-select:focus, .form-textarea:focus { background: rgba(0, 50, 120, 0.35); border-color: rgba(0, 220, 255, 0.4); box-shadow: 0 0 0 3px rgba(0,220,255,0.08), 0 0 20px rgba(0,200,255,0.06); }
        .form-input::placeholder, .form-textarea::placeholder { color: rgba(255, 255, 255, 0.22); }
        .form-select option { background: #060E2A; color: #fff; }
        .modal-buttons { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; }
        .photo-gallery { margin-top: 16px; }
        .photo-gallery-label { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
        .photo-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
        .photo-thumbnail { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; position: relative; }
        .photo-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
        .photo-thumbnail:hover::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); }
        .photo-thumbnail-delete { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(220, 53, 69, 0.85); border: none; border-radius: 4px; color: white; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; z-index: 3; touch-action: manipulation; }
        .photo-thumbnail:hover .photo-thumbnail-delete { opacity: 1; }
        /* #17 — admin: delete always visible (no hover needed on touch) */
        .photo-thumb-admin .photo-thumbnail-delete { opacity: 1 !important; background: rgba(220, 53, 69, 0.92) !important; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }