* {
    -webkit-tap-highlight-color: transparent;
}

.btn-neon {
    background: linear-gradient(135deg, #ff2d95, #b026ff);
    color: white;
    transition: all 0.2s;
}
.btn-neon:hover {
    opacity: 0.85;
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.3);
}

.nav-btn {
    color: #6b7280;
    transition: color 0.2s;
    position: relative;
    min-width: 44px;
}
.nav-btn.active {
    color: #00d4ff;
}
.nav-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: #00d4ff;
    border-radius: 0 0 2px 2px;
}

.stat-card {
    transition: transform 0.15s;
}
.stat-card:active {
    transform: scale(0.97);
}

input[type="text"], input[type="number"], input[type="date"], select, textarea {
    background-color: #1a1a25;
    color: #f3f4f6;
}

.check-item {
    transition: background-color 0.15s;
}
.check-item:active {
    background-color: #222230;
}
.check-item.checked {
    opacity: 0.6;
}
.check-item.checked .item-name {
    text-decoration: line-through;
}

.barcode-container {
    background: white;
    padding: 8px;
    border-radius: 8px;
    display: inline-block;
}
.barcode-container svg {
    display: block;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #222230;
    border: 1px solid #333;
    color: #f3f4f6;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success {
    border-color: #39ff14;
    color: #39ff14;
}
.toast.error {
    border-color: #ff2d95;
    color: #ff2d95;
}

/* A6 Label Print Styles: 105mm x 148mm */
@media print {
    body * {
        visibility: hidden !important;
    }
    #print-area,
    #print-area * {
        visibility: visible !important;
    }
    #print-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: block !important;
    }

    #view-contract-preview,
    #view-contract-preview * {
        visibility: visible !important;
    }
    #view-contract-preview {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    .label-a6 {
        width: 105mm;
        height: 148mm;
        padding: 8mm;
        box-sizing: border-box;
        page-break-after: always;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        background: white;
        color: black;
        font-family: 'Helvetica Neue', Arial, sans-serif;
    }
    .label-a6 .label-title {
        font-size: 16pt;
        font-weight: bold;
        margin-bottom: 4mm;
        text-align: center;
        width: 100%;
    }
    .label-a6 .label-subtitle {
        font-size: 10pt;
        color: #555;
        margin-bottom: 3mm;
        text-align: center;
    }
    .label-a6 .label-barcode {
        margin: 4mm 0;
    }
    .label-a6 .label-barcode svg {
        max-width: 80mm;
        height: auto;
    }
    .label-a6 .label-info {
        font-size: 9pt;
        color: #333;
        text-align: center;
        margin-top: 2mm;
    }
    .label-a6 .label-contents {
        width: 100%;
        margin-top: 4mm;
        font-size: 8pt;
        border-top: 0.5pt solid #ccc;
        padding-top: 2mm;
    }
    .label-a6 .label-contents li {
        padding: 1mm 0;
        border-bottom: 0.5pt solid #eee;
        list-style: none;
    }
    .label-a6 .label-qty {
        font-weight: bold;
    }

    @page {
        size: A4;
        margin: 10mm;
    }

    .no-print {
        display: none !important;
    }

    .contract-page {
        page-break-after: always;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    /* A6 label uses @page override via print-area context */
    #print-area .label-a6 {
        width: 105mm;
        height: 148mm;
    }
}

/* On-screen label preview */
.label-preview {
    width: 105mm;
    min-height: 148mm;
    padding: 8mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: white;
    color: black;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    border-radius: 8px;
    margin: 0 auto;
}
.label-preview .label-title {
    font-size: 16pt;
    font-weight: bold;
    margin-bottom: 4mm;
    text-align: center;
    width: 100%;
}
.label-preview .label-subtitle {
    font-size: 10pt;
    color: #555;
    margin-bottom: 3mm;
    text-align: center;
}
.label-preview .label-barcode {
    margin: 4mm 0;
}
.label-preview .label-barcode svg {
    max-width: 80mm;
    height: auto;
}
.label-preview .label-info {
    font-size: 9pt;
    color: #333;
    text-align: center;
    margin-top: 2mm;
}
.label-preview .label-contents {
    width: 100%;
    margin-top: 4mm;
    font-size: 8pt;
    border-top: 0.5pt solid #ccc;
    padding-top: 2mm;
}
.label-preview .label-contents li {
    padding: 1mm 0;
    border-bottom: 0.5pt solid #eee;
    list-style: none;
}

/* Contract preview styles */
.contract-page {
    background: white;
    color: #1a1a1a;
    padding: 8mm;
    border-radius: 8px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.5;
    max-width: 210mm;
    margin: 0 auto;
}

.contract-page table {
    border-collapse: collapse;
}

.contract-page table td {
    vertical-align: top;
}

.contract-terms {
    font-size: 8.5pt;
    line-height: 1.6;
}

.no-print {
    /* no-op on screen */
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.slide-up-enter {
    animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.packing-tab, .sales-tab {
    color: #6b7280;
    background: transparent;
}
.packing-tab.active, .sales-tab.active {
    color: #00d4ff;
    background: #1a1a25;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}
.photo-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #222230;
    transition: border-color 0.2s;
}
.photo-grid img:hover {
    border-color: #00d4ff;
}

.photo-capture-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    border: 2px dashed #333;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    background: #12121a;
}
.photo-capture-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #0a0a0f;
    flex-shrink: 0;
}

.checkin-step {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.3s;
}
.checkin-step.active {
    opacity: 1;
    pointer-events: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.photo-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
