/* Kanban Board Custom Styles */

/* Fix for double scrollbar issue */
.fi-main {
    overflow: visible !important;
}

.fi-main .fi-main-ctn {
    overflow: visible !important;
}

/* Kanban board container adjustments */
.kanban-board-container {
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Main kanban container - remove fixed height and overflow */
[x-data][wire\:ignore\.self] {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}

/* Status columns container */
[x-data][wire\:ignore\.self].md\:flex {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
}

/* Individual status column containers */
.flex.flex-col.flex-1.gap-2.p-3 {
    max-height: none !important;
    overflow-y: visible !important;
    height: auto !important;
}

/* Remove any scrollbars from status columns */
[data-status-id] {
    overflow: visible !important;
    max-height: none !important;
}

/* Ensure page uses only main scroll */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Kanban page specific styles */
[data-page="kanban"] .fi-main,
[data-page="kanban"] .fi-main .fi-main-ctn {
    overflow: visible !important;
    height: auto !important;
}

/* Remove scrollbars from kanban columns completely */
.kanban-column::-webkit-scrollbar,
[data-status-id]::-webkit-scrollbar {
    display: none;
}

.kanban-column,
[data-status-id] {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Status column headers */
.kanban-status-header {
    @apply bg-gray-50 dark:bg-gray-800 rounded-lg p-3 mb-4 border border-gray-200 dark:border-gray-700;
}

.kanban-status-title {
    @apply font-semibold text-gray-900 dark:text-gray-100 text-sm uppercase tracking-wide;
}

.kanban-status-count {
    @apply text-xs text-gray-500 dark:text-gray-400 ml-2 px-2 py-1 bg-gray-100 dark:bg-gray-700 rounded-full;
}

/* Kanban columns */
.kanban-column {
    @apply p-2 bg-gray-50/30 dark:bg-gray-900/30;
    min-width: 400px;
    min-height: auto;
}

/* Card animations and transitions */
.kanban-record {
    transition: all 0.2s ease-in-out;
}

.kanban-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Status-specific colors */
.status-new {
    @apply border-l-4 border-gray-400;
}

.status-price_approval {
    @apply border-l-4 border-yellow-400;
}

.status-received {
    @apply border-l-4 border-blue-400;
}

.status-shipping_movement {
    @apply border-l-4 border-indigo-400;
}

.status-service_check {
    @apply border-l-4 border-orange-400;
}

.status-approved_by_client {
    @apply border-l-4 border-green-400;
}

.status-completed_grading {
    @apply border-l-4 border-emerald-400;
}

.status-returned_to_client {
    @apply border-l-4 border-red-400;
}

/* Дозволяємо нормальну взаємодію з картками */
.neumorphic-card,
.kanban-record {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Дозволяємо всі події для інтерактивних елементів */
.neumorphic-card button,
.neumorphic-card [wire\:click],
.neumorphic-card .load-more-btn,
.neumorphic-card .kanban-load-more-container,
.neumorphic-card a,
.neumorphic-card input,
.neumorphic-card select,
.load-more-btn,
.kanban-load-more-container,
.kanban-load-more-debug {
    pointer-events: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    user-select: auto !important;
    position: relative;
    z-index: 999;
    cursor: pointer !important;
}

/* Дозволяємо hover ефекти для карток */
.neumorphic-card:hover {
    transform: translateY(-2px) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* КРИТИЧНЕ: Мобільний горизонтальний скрол канбан дошки */
    html {
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Основний контейнер канбан - ОБОВ'ЯЗКОВО touch scroll */
    .fi-main,
    [data-page="kanban"] .fi-main {
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;

    }

    .fi-main .fi-main-ctn,
    [data-page="kanban"] .fi-main .fi-main-ctn {
        overflow: hidden !important;

        display: flex !important;
        flex-direction: column !important;
    }

    /* Канбан контейнер з горизонтальним скролом */
    [x-data][wire\:ignore\.self] {
        height: calc(100vh - 60px) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* ОСНОВНЕ: горизонтальний скрол колонок */
    [x-data][wire\:ignore\.self].md\:flex {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        scroll-behavior: smooth !important;
        gap: 8px !important;
        padding: 8px 4px !important;
        flex: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Стилі колонок */
    .kanban-column,
    [data-status-id] {
        flex-shrink: 0 !important;
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        background: rgba(248, 250, 252, 0.9) !important;
        border-radius: 12px !important;
        padding: 8px !important;
        margin: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(229, 231, 235, 0.5) !important;
    }

    /* Прибираємо скролбар з колонок (але залишаємо функціональність) */
    .kanban-column::-webkit-scrollbar,
    [data-status-id]::-webkit-scrollbar {
        width: 2px;
        background: transparent;
    }

    .kanban-column::-webkit-scrollbar-thumb,
    [data-status-id]::-webkit-scrollbar-thumb {
        background: rgba(156, 163, 175, 0.5);
        border-radius: 1px;
    }

    .kanban-column::-webkit-scrollbar-track,
    [data-status-id]::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Стилі для touch взаємодії */
    .kanban-record {
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        cursor: pointer !important;
    }

    /* Фото стилі */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .photo-item {
        width: 60px !important;
        height: 60px !important;
        touch-action: manipulation !important;
    }

    .photo-item:hover {
        transform: scale(1.1) !important;
    }

    /* Забезпечуємо що body не має горизонтального скролу */
    body.fi-body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Приховуємо горизонтальний скрол на головному рівні */
    .fi-topbar + div {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
}

/* Load More Button Styles */
.kanban-load-more-container {
    margin: 12px 8px 8px 8px;
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
}

.load-more-card {
    background: var(--neumorphic-bg, #f0f2f5);
    border-radius: 12px;
    padding: 16px;
    box-shadow:
        var(--neumorphic-shadow-inset, inset 2px 2px 5px rgba(0,0,0,0.1)),
        var(--neumorphic-shadow-outset, 2px 2px 8px rgba(0,0,0,0.15));
    border: 1px solid var(--neumorphic-border, rgba(255,255,255,0.8));
    transition: all 0.3s ease;
}

.load-more-card:hover {
    box-shadow:
        var(--neumorphic-shadow-inset, inset 1px 1px 3px rgba(0,0,0,0.1)),
        var(--neumorphic-shadow-outset, 3px 3px 12px rgba(0,0,0,0.2));
}

.load-more-info {
    margin-bottom: 12px;
}

.count-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 8px;
}

.current-count {
    font-weight: 600;
    color: var(--primary-color, #3b82f6);
}

.total-count {
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--bg-secondary, rgba(0,0,0,0.1));
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #3b82f6), var(--primary-light, #60a5fa));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.load-more-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color, #3b82f6), var(--primary-dark, #2563eb));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 4px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark, #2563eb), var(--primary-darker, #1d4ed8));
    box-shadow:
        0 4px 8px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.load-more-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow:
        0 1px 2px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn.loading {
    pointer-events: none;
}

.load-more-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.load-more-icon.spinning {
    animation: spin 1s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Dark mode support for load more */
@media (prefers-color-scheme: dark) {
    .load-more-card {
        --neumorphic-bg: #2d3748;
        --neumorphic-border: rgba(255,255,255,0.1);
        --neumorphic-shadow-inset: inset 2px 2px 5px rgba(0,0,0,0.3);
        --neumorphic-shadow-outset: 2px 2px 8px rgba(0,0,0,0.4);
        --text-primary: #f7fafc;
        --text-secondary: #a0aec0;
        --bg-secondary: rgba(255,255,255,0.1);
    }

    .load-more-card:hover {
        --neumorphic-shadow-inset: inset 1px 1px 3px rgba(0,0,0,0.3);
        --neumorphic-shadow-outset: 3px 3px 12px rgba(0,0,0,0.5);
    }
}

/* Responsive design for load more */
@media (max-width: 768px) {
    .kanban-load-more-container {
        margin: 8px 4px 4px 4px;
    }

    .load-more-card {
        padding: 12px;
    }

    .load-more-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .count-info {
        font-size: 13px;
    }
}

/* Priority indicators */
.priority-high {
    @apply bg-red-100 border-red-300 text-red-800 dark:bg-red-900 dark:border-red-700 dark:text-red-100;
}

.priority-medium {
    @apply bg-yellow-100 border-yellow-300 text-yellow-800 dark:bg-yellow-900 dark:border-yellow-700 dark:text-yellow-100;
}

.priority-low {
    @apply bg-green-100 border-green-300 text-green-800 dark:bg-green-900 dark:border-green-700 dark:text-green-100;
}

/* Photo thumbnails in cards */
.kanban-photo-preview {
    @apply w-8 h-8 rounded object-cover border border-gray-200 dark:border-gray-600;
}

/* Photo grid styles */
.photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
}

.photo-item {
    width: 80px !important;
    height: 80px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
}

.photo-item:hover {
    transform: scale(4) !important;
    z-index: 100 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
}

.photo-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: all 0.4s ease !important;
}

.photo-item:hover img {
    filter: brightness(1.2) contrast(1.1) !important;
}

/* Device condition grid */
.device-condition-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    font-size: 0.75rem;
}

/* Communication channel badges */
.communication-badge {
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
}

/* IMEI/Serial display */
.imei-display {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Manager avatar styles */
.manager-avatar {
    @apply w-6 h-6 rounded-full border border-gray-200 dark:border-gray-600;
}

/* Take to work button */
.take-to-work-btn {
    @apply px-4 py-2 text-sm bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition-all duration-200 font-semibold shadow-md;
    border: none;
    cursor: pointer;
    outline: none;
    min-width: 80px;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.take-to-work-btn:hover {
    @apply bg-blue-600 shadow-lg;
    transform: translateY(-2px) scale(1.05);
}

.take-to-work-btn:active {
    @apply bg-blue-700;
    transform: translateY(0);
}

.take-to-work-btn:disabled {
    @apply bg-gray-400 cursor-not-allowed;
    transform: none;
}

.take-to-work-btn:focus {
    @apply ring-2 ring-blue-300 ring-opacity-50;
}

/* Custom scrollbar for kanban columns */
.kanban-column::-webkit-scrollbar {
    width: 4px;
}

.kanban-column::-webkit-scrollbar-track {
    @apply bg-gray-100 dark:bg-gray-800;
}

.kanban-column::-webkit-scrollbar-thumb {
    @apply bg-gray-300 dark:bg-gray-600 rounded;
}

.kanban-column::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-400 dark:bg-gray-500;
}

/* Edit price button */
.edit-price-btn {
    @apply px-4 py-2 text-sm bg-pink-500 hover:bg-pink-600 text-white rounded-lg transition-all duration-200 font-semibold shadow-md;
    border: none;
    cursor: pointer;
    outline: none;
    min-width: 80px;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.edit-price-btn:hover {
    @apply bg-pink-600 shadow-lg;
    transform: translateY(-2px) scale(1.05);
}

.edit-price-btn:active {
    @apply bg-pink-700;
    transform: translateY(0);
}

.edit-price-btn:disabled {
    @apply bg-gray-400 cursor-not-allowed;
    transform: none;
}

.edit-price-btn:focus {
    @apply ring-2 ring-pink-300 ring-opacity-50;
}

/* Modal improvements */
.modal-overlay {
    z-index: 9999 !important;
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(2px);
    pointer-events: auto !important;
}

.modal-content {
    z-index: 10000 !important;
    position: relative !important;
    pointer-events: auto !important;
}

.modal-content input,
.modal-content select,
.modal-content textarea,
.modal-content button {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10001 !important;
    user-select: auto !important;
}

.modal-content form {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10001 !important;
}

.modal-content .space-y-4 > * {
    pointer-events: auto !important;
    position: relative !important;
}

/* Prevent interactions with background when modal is open */
body.modal-open {
    overflow: hidden;
}

body.modal-open .kanban-record {
    pointer-events: none !important;
}

body.modal-open .kanban-column {
    pointer-events: none !important;
}

/* Ensure modal elements are always interactive */
body.modal-open [class*="modal"],
body.modal-open .modal-overlay,
body.modal-open .modal-content,
body.modal-open .modal-content * {
    pointer-events: auto !important;
}

/* =============================================== */
/* NEUMORPHIC KANBAN CARD STYLES */
/* =============================================== */

/* Neumorphic Kanban Card Styles */
:root {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --accent-green: #48bb78;
    --accent-red: #f56565;
    --accent-blue: #4299e1;
    --accent-purple: #9f7aea;
    --accent-yellow: #ed8936;
    --border-radius: 16px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
}

/* Dark mode variables */
[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --shadow-light: #374151;
    --shadow-dark: #111827;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
}

/* Main card container */
.neumorphic-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin: var(--spacing-sm);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.neumorphic-card:hover {
    transform: translateY(-2px);
    box-shadow:
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
}

.neumorphic-card:active {
    cursor: grabbing;
    transform: translateY(0);
    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

/* Card header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 16px;
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

/* Header main row */
.neumorphic-card .header-main-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Request ID styling */
.neumorphic-card .request-id {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    flex-shrink: 0;
}

.neumorphic-card .id-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.neumorphic-card .id-number {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Flexible badges container with wrapping */
.neumorphic-card .badges-flex-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    line-height: 1;
    align-content: flex-start;
}

/* Ensure badges have consistent height */
.neumorphic-card .badges-flex-container > * {
    align-self: center;
    margin: 1px 0;
}

/* On mobile, stack badges with better wrapping */
@media (max-width: 768px) {
    .neumorphic-card .header-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .neumorphic-card .request-id {
        min-width: 50px;
    }

    .neumorphic-card .id-number {
        font-size: 14px;
    }

    .neumorphic-card .badges-flex-container {
        justify-content: flex-start;
        width: 100%;
        gap: 4px;
    }

    .neumorphic-card .status-badge,
    .neumorphic-card .grade-badge,
    .neumorphic-card .request-type-badge {
        font-size: 8px;
        padding: 4px 6px;
        min-width: unset;
        gap: 2px;
        border-radius: 14px;
    }

    .neumorphic-card .status-icon,
    .neumorphic-card .grade-icon,
    .neumorphic-card .type-icon {
        font-size: 9px;
    }

    .neumorphic-card .status-text,
    .neumorphic-card .grade-text,
    .neumorphic-card .type-text {
        font-size: 7px;
    }
}

.card-id {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-badge {
    padding: 8px 12px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.2),
        -2px -2px 4px rgba(255, 255, 255, 0.8);
}

/* Enhanced status badge styling */
.neumorphic-card .status-badge {
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    min-width: 65px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(145deg, #e5e7eb, #f9fafb);
    box-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.12),
        -1px -1px 4px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorphic-card .status-badge:hover {
    transform: translateY(-1px);
    box-shadow:
        4px 4px 12px rgba(0, 0, 0, 0.2),
        -3px -3px 8px rgba(255, 255, 255, 0.95);
}

.neumorphic-card .status-icon {
    font-size: 12px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

.neumorphic-card .status-text {
    font-size: 10px;
    font-weight: 800;
}

.status-approved {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow:
        2px 2px 4px rgba(72, 187, 120, 0.3),
        -2px -2px 4px rgba(255, 255, 255, 0.8);
}

.status-pending {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    box-shadow:
        2px 2px 4px rgba(245, 101, 101, 0.3),
        -2px -2px 4px rgba(255, 255, 255, 0.8);
}

/* Grade badges */
.grade-badge {
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced grade badge styling */
.neumorphic-card .grade-badge {
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    min-width: 42px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorphic-card .grade-badge:hover {
    transform: translateY(-1px) scale(1.05);
}

.neumorphic-card .grade-icon {
    font-size: 12px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.neumorphic-card .grade-text {
    font-size: 10px;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.grade-a-plus {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow:
        2px 2px 6px rgba(72, 187, 120, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.grade-a {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    box-shadow:
        2px 2px 6px rgba(66, 153, 225, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.grade-b {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    box-shadow:
        2px 2px 6px rgba(237, 137, 54, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.grade-c {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    box-shadow:
        2px 2px 6px rgba(245, 101, 101, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.9);
}

/* Content sections */
.content-section {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow:
        inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

.customer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.device-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.device-icon {
    font-size: 1.125rem;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

/* IMEI display */
.imei-container {
    padding: var(--spacing-md);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.imei-editable {
    background: linear-gradient(135deg, #e6fffa, #b2f5ea);
    border: 2px solid #4fd1c7;
    box-shadow:
        4px 4px 8px rgba(79, 209, 199, 0.2),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.imei-missing {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border: 2px solid #fc8181;
    box-shadow:
        4px 4px 8px rgba(252, 129, 129, 0.2),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.imei-normal {
    background: var(--bg-primary);
    box-shadow:
        inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
}

/* Price display */
.price-container {
    padding: var(--spacing-md);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #f59e0b;
    box-shadow:
        4px 4px 8px rgba(245, 158, 11, 0.2),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Override existing photo grid styles for neumorphic cards */
.neumorphic-card .photo-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--spacing-sm) !important;
    margin-bottom: var(--spacing-md) !important;
}

.neumorphic-card .photo-item {
    aspect-ratio: 1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow:
        3px 3px 6px var(--shadow-dark),
        -3px -3px 6px var(--shadow-light) !important;
    transition: transform 0.2s ease !important;
    width: auto !important;
    height: auto !important;
    cursor: pointer !important;
}

.neumorphic-card .photo-item:hover {
    transform: scale(1.05) !important;
    box-shadow:
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light) !important;
    z-index: 10 !important;
}

.neumorphic-card .photo-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.neumorphic-card .photo-item:hover img {
    transform: scale(1.1) !important;
    filter: brightness(1.1) contrast(1.05) !important;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Device condition */
.condition-container {
    padding: var(--spacing-md);
    border-radius: 12px;
    background: var(--bg-primary);
    box-shadow:
        inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.condition-bar {
    height: 8px;
    border-radius: 20px;
    background: var(--bg-secondary);
    overflow: hidden;
    margin: var(--spacing-sm) 0;
    box-shadow:
        inset 1px 1px 2px var(--shadow-dark),
        inset -1px -1px 2px var(--shadow-light);
}

.condition-progress {
    height: 100%;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
}

.condition-good {
    background: linear-gradient(90deg, #48bb78, #38a169);
}

.condition-ok {
    background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.condition-bad {
    background: linear-gradient(90deg, #f56565, #e53e3e);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.action-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.action-btn:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.action-btn:hover:before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    box-shadow:
        3px 3px 6px rgba(66, 153, 225, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        4px 4px 8px rgba(66, 153, 225, 0.4),
        -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    box-shadow:
        3px 3px 6px rgba(72, 187, 120, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
    box-shadow:
        3px 3px 6px rgba(237, 137, 54, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: white;
    box-shadow:
        3px 3px 6px rgba(113, 128, 150, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.btn-purple {
    background: linear-gradient(135deg, #9f7aea, #805ad5);
    color: white;
    box-shadow:
        3px 3px 6px rgba(159, 122, 234, 0.3),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

/* Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(113, 128, 150, 0.1);
    margin-top: var(--spacing-md);
}

.created-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.view-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.neumorphic-card:hover .view-hint {
    opacity: 1;
}

/* Override communication badge for neumorphic cards */
.neumorphic-card .communication-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #e6fffa, #b2f5ea);
    color: #047857;
    box-shadow:
        2px 2px 4px rgba(79, 209, 199, 0.2),
        -2px -2px 4px rgba(255, 255, 255, 0.8);
}

/* Request type badge */
.request-type-badge {
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 85px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced request type badge styling */
.neumorphic-card .request-type-badge {
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorphic-card .request-type-badge:hover {
    transform: translateY(-1px) scale(1.05);
}

.neumorphic-card .type-icon {
    font-size: 11px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

.neumorphic-card .type-text {
    font-size: 9px;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.request-trade-in {
    background: linear-gradient(135deg, #bee3f8, #90cdf4);
    color: #1e40af;
    box-shadow:
        3px 3px 8px rgba(66, 153, 225, 0.25),
        -2px -2px 6px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.request-buyout {
    background: linear-gradient(135deg, #e9d8fd, #d6bcfa);
    color: #6b46c1;
    box-shadow:
        3px 3px 8px rgba(159, 122, 234, 0.25),
        -2px -2px 6px rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(107, 70, 193, 0.1);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.3s ease-out;
}

/* Responsive overrides for neumorphic cards */
@media (max-width: 768px) {
    .neumorphic-card {
        padding: var(--spacing-md);
        margin: var(--spacing-xs);
    }

    .card-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .action-buttons {
        justify-content: center;
    }

    .neumorphic-card .photo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Special status styling for neumorphic cards */
.neumorphic-card.status-new {
    border-left: 4px solid #a0aec0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.neumorphic-card.status-price-approval {
    border-left: 4px solid #ed8936;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.neumorphic-card.status-received {
    border-left: 4px solid #4299e1;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.neumorphic-card.status-shipping-movement {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.neumorphic-card.status-service-check {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.neumorphic-card.status-approved-by-client {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.neumorphic-card.status-completed-grading {
    border-left: 4px solid #48bb78;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.neumorphic-card.status-returned-to-client {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.neumorphic-card.status-completed {
    border-left: 4px solid #48bb78;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.neumorphic-card.status-archived {
    border-left: 4px solid #9ca3af;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    opacity: 0.8;
}

/* Дозволяємо нормальне відображення для drag станів */
.kanban-record.sortable-ghost,
.sortable-ghost {
    opacity: 0.8 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.kanban-record.sortable-chosen,
.sortable-chosen {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Device Condition Styles */
.pixo-score-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    box-shadow:
        inset 2px 2px 4px rgba(163, 177, 198, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.8);
    font-size: 10px;
    font-weight: 600;
}

.pixo-label {
    color: #64748b;
    font-size: 9px;
}

.pixo-value {
    color: #1e293b;
    font-weight: 700;
}

.condition-params-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.condition-param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fafbfc, #f1f5f9);
    box-shadow:
        inset 1px 1px 3px rgba(163, 177, 198, 0.15),
        inset -1px -1px 3px rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.condition-param-item:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 1px 1px 3px rgba(163, 177, 198, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.95),
        0 2px 4px rgba(163, 177, 198, 0.1);
}

.param-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.param-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.param-name {
    font-size: 10px;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.param-result {
    display: flex;
    align-items: center;
    gap: 6px;
}

.param-label {
    font-size: 9px;
    color: #64748b;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.param-pixo {
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    text-align: right;
}

.condition-more-params {
    text-align: center;
    padding: 4px;
    border-top: 1px solid rgba(163, 177, 198, 0.1);
    margin-top: 2px;
}

.condition-grade-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-top: 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    box-shadow:
        inset 2px 2px 4px rgba(56, 189, 248, 0.1),
        inset -2px -2px 4px rgba(255, 255, 255, 0.9);
}

.grade-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grade-label {
    font-size: 10px;
    color: #0369a1;
    font-weight: 600;
}

.grade-value {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
}

.grade-a\+ {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    box-shadow: inset 1px 1px 2px rgba(34, 197, 94, 0.2);
}

.grade-a {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    box-shadow: inset 1px 1px 2px rgba(245, 158, 11, 0.2);
}

.grade-b {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #9a3412;
    box-shadow: inset 1px 1px 2px rgba(249, 115, 22, 0.2);
}

.grade-c, .grade-d {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #991b1b;
    box-shadow: inset 1px 1px 2px rgba(239, 68, 68, 0.2);
}

.grade-description {
    font-size: 9px;
    color: #0369a1;
    font-style: italic;
}

/* Mobile Responsive for Condition */
@media (max-width: 768px) {
    .param-name {
        max-width: 80px;
        font-size: 9px;
    }

    .param-label {
        max-width: 60px;
        font-size: 8px;
    }

    .param-pixo {
        font-size: 9px;
    }

    .condition-grade-summary {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
        text-align: center;
    }
}

/* Розширена мобільна адаптація канбан дошки Trade-In */
@media (max-width: 1024px) {
    /* Tablet styles */
    .kanban-board-container {
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .neumorphic-card {
        margin: 6px;
        padding: 16px;
        min-height: auto;
    }

    .card-header {
        padding: 12px;
        margin-bottom: 12px;
    }

    .action-buttons {
        gap: 6px;
        margin-bottom: 12px;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
        border-radius: 16px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .photo-item {
        height: 60px;
    }
}

@media (max-width: 768px) {
    /* Enhanced mobile tablet styles */
    .fi-main,
    [data-page="kanban"] .fi-main {
        padding: 0 !important;
        margin: 0 !important;
    }

    .kanban-board-container {
        padding: 4px;
        height: calc(100vh - 60px);
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        gap: 8px;
    }

    /* Kanban columns horizontal scroll on mobile */
    [x-data][wire\:ignore\.self].md\:flex {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: max-content;
        min-height: calc(100vh - 80px);
        padding: 8px 4px;
    }

    .kanban-column {
        height: calc(100vh - 100px);
        overflow-y: auto;
        overflow-x: hidden;
        flex-shrink: 0;
        background: rgba(248, 250, 252, 0.95);
        border-radius: 8px;
        padding: 6px;
        margin: 0;
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(229, 231, 235, 0.6);
    }

    /* Kanban status header */
    .kanban-status-header {
        padding: 8px 12px;
        margin-bottom: 8px;
        background: linear-gradient(135deg, #f0f2f5, #ffffff);
        border-radius: 8px;
        box-shadow: 2px 2px 4px rgba(209, 217, 230, 0.4),
                    -2px -2px 4px rgba(255, 255, 255, 0.6);
    }

    .kanban-status-title {
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .kanban-status-count {
        font-size: 0.7rem;
        opacity: 0.8;
    }

    /* Card mobile optimization - БЕЗ обмеження висоти */
    .neumorphic-card {
        margin: 3px 0 6px 0 !important;
        padding: 8px !important;
        border-radius: 8px !important;
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        transition: all 0.2s ease !important;
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        font-size: 13px !important;
    }

    .neumorphic-card:hover {
        transform: translateY(-1px) scale(1.01);
        box-shadow:
            6px 6px 12px rgba(209, 217, 230, 0.8),
            -6px -6px 12px rgba(255, 255, 255, 0.95);
    }

    .neumorphic-card:active {
        transform: translateY(1px) scale(0.99);
        box-shadow:
            2px 2px 4px rgba(209, 217, 230, 0.6),
            -2px -2px 4px rgba(255, 255, 255, 0.8);
    }

    /* Enhanced action buttons mobile */
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px !important;
        margin: 6px 0;
        justify-content: space-between;
    }

    .action-btn {
        padding: 6px 10px !important;
        font-size: 0.6rem !important;
        border-radius: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        min-height: 28px;
        min-width: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        max-width: calc(50% - 2px);
        touch-action: manipulation;
        transition: all 0.2s ease;
    }

    .action-btn:active {
        transform: scale(0.95);
    }

    /* Enhanced photo grid mobile */
    .neumorphic-card .photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
        margin: 8px 0;
    }

    .neumorphic-card .photo-item {
        height: 50px !important;
        border-radius: 6px;
        overflow: hidden;
        position: relative;
        box-shadow: 2px 2px 4px rgba(209, 217, 230, 0.5),
                    -2px -2px 4px rgba(255, 255, 255, 0.7);
    }

    .neumorphic-card .photo-item:hover {
        transform: none; /* Disable hover transform on mobile */
    }

    .neumorphic-card .photo-item img {
        transition: none; /* Disable transitions on mobile */
    }

    /* Card footer mobile */
    .card-footer {
        padding-top: 8px;
        margin-top: 8px;
        border-top: 1px solid rgba(113, 128, 150, 0.1);
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .created-date {
        font-size: 0.65rem;
        color: #718096;
        width: 100%;
    }

    .view-hint {
        font-size: 0.6rem;
        color: #4299e1;
        font-weight: 600;
        width: 100%;
        text-align: center;
        background: rgba(66, 153, 225, 0.1);
        padding: 4px 8px;
        border-radius: 6px;
        margin-top: 4px;
    }

    /* Load more mobile enhancement */
    .kanban-load-more-container {
        margin: 8px 0;
    }

    .load-more-card {
        padding: 8px;
        margin: 4px 0;
        border-radius: 8px;
        background: rgba(248, 250, 252, 0.8);
        box-shadow: 2px 2px 4px rgba(209, 217, 230, 0.5),
                    -2px -2px 4px rgba(255, 255, 255, 0.7);
    }

    .load-more-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
        border-radius: 10px;
        width: 100%;
        min-height: 36px;
        touch-action: manipulation;
    }

    .count-info {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .progress-bar {
        height: 4px;
        margin: 4px 0;
        border-radius: 2px;
    }
}

@media (max-width: 480px) {
    /* Small mobile styles */
    .kanban-column {
    }

    .neumorphic-card {
        padding: 10px;
        margin: 3px 0 6px 0;
    }

    .header-main-row {
        gap: 6px !important;
    }

    .request-id {
        font-size: 0.9rem !important;
    }

    .id-number {
        font-size: 1rem !important;
    }

    .badges-flex-container {
        gap: 3px !important;
    }

    .status-badge,
    .grade-badge,
    .request-type-badge {
        padding: 3px 6px !important;
        font-size: 0.6rem !important;
        min-height: 20px;
    }

    .status-icon,
    .grade-icon,
    .type-icon {
        font-size: 0.65rem !important;
    }

    .status-text,
    .grade-text,
    .type-text {
        font-size: 0.55rem !important;
    }

    .customer-name {
        font-size: 0.85rem !important;
    }

    .device-info {
        font-size: 0.7rem !important;
    }

    .price-value {
        font-size: 0.9rem !important;
    }

    .action-btn {
        padding: 6px 10px !important;
        font-size: 0.6rem !important;
        min-height: 28px;
        border-radius: 10px;
    }

    .neumorphic-card .photo-item {
        height: 45px !important;
    }

    .view-hint {
        font-size: 0.55rem;
        padding: 3px 6px;
    }

    .created-date {
        font-size: 0.6rem;
    }
}

@media (max-width: 360px) {
    /* Extra small mobile styles */
    .kanban-column {
    }

    .neumorphic-card {
        padding: 8px;
        border-radius: 10px;
    }

    .badges-flex-container {
        gap: 2px !important;
    }

    .neumorphic-card .photo-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3px !important;
    }

    .neumorphic-card .photo-item {
        height: 40px !important;
    }

    .action-buttons {
        gap: 4px !important;
        flex-direction: column;
    }

    .action-btn {
        flex: 1;
        max-width: 100%;
        margin-bottom: 4px;
        font-size: 0.55rem !important;
        padding: 5px 8px !important;
        min-height: 26px;
    }
}
