/* ==========================================================================
   PickTrace ERP – custom layer on top of Tailwind
   ========================================================================== */

:root {
    --brand-600: #4f46e5;
    --brand-500: #6366f1;
    --ink-900: #080c1c;
}

/* Barcode logo mark – vertical bars, used in the sidebar and on auth pages */
.barcode-mark {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background:
        repeating-linear-gradient(90deg,
            #fff 0 2px, transparent 2px 4px,
            #fff 4px 5px, transparent 5px 8px,
            #fff 8px 11px, transparent 11px 13px);
    background-color: var(--brand-600);
    background-position: center;
    background-size: 22px 18px;
    background-repeat: no-repeat;
    box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .8);
}

.barcode-mark--dark {
    background-color: var(--ink-900);
}

/* Skeleton loading blocks */
.skeleton {
    background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Dropzone states */
.dropzone.is-dragging {
    border-color: var(--brand-500);
    background-color: #eef2ff;
}

.dropzone.has-file {
    border-style: solid;
    border-color: var(--brand-500);
    background-color: #fff;
}

/* Grid rows */
#orders-table tbody tr {
    cursor: pointer;
    transition: background-color .15s ease;
}

#orders-table tbody tr:hover {
    background-color: #f8fafc;
}

#orders-table tbody td {
    padding: .75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

#orders-table tbody tr.is-selected {
    background-color: #eef2ff;
}

/* DataTables controls */
.dataTables_wrapper .dataTables_filter { display: none; }

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 1rem 1.5rem;
    font-size: .8125rem;
    color: #64748b;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: .625rem !important;
    margin: 0 .125rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--brand-600) !important;
    color: #fff !important;
    border-color: var(--brand-600) !important;
}

table.dataTable thead th {
    border-bottom: 1px solid #e2e8f0;
}

/* Drawer */
#drawer-panel.is-open { transform: translateX(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* Focus visibility */
:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}
