/* TRIDEV LOGISTICS - Custom Stylesheet with Dark & Light Mode */

/* Status Badge Styles */
.status-hold { background-color: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.status-godown { background-color: #fef3c7; color: #92400e; border: 1px solid #fbbf24; }
.status-delivered { background-color: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.status-in-transit { background-color: #dbeafe; color: #1e40af; border: 1px solid #60a5fa; }
.status-ofd { background-color: #e0f2fe; color: #0369a1; border: 1px solid #38bdf8; }
.status-failed { background-color: #fce7f3; color: #9d174d; border: 1px solid #f472b6; }

.dark .status-hold { background-color: rgba(239, 68, 68, 0.2); color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }
.dark .status-godown { background-color: rgba(245, 158, 11, 0.2); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.dark .status-delivered { background-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
.dark .status-in-transit { background-color: rgba(59, 130, 246, 0.2); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
.dark .status-ofd { background-color: rgba(14, 165, 233, 0.2); color: #7dd3fc; border-color: rgba(14, 165, 233, 0.4); }
.dark .status-failed { background-color: rgba(236, 72, 153, 0.2); color: #f472b6; border-color: rgba(236, 72, 153, 0.4); }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #0f172a;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Sticky Action & POD Columns in Tables */
.sticky-action-col {
    position: sticky;
    right: 0;
    z-index: 20;
    background-color: white;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.05);
}
.sticky-pod-col {
    position: sticky;
    right: 120px;
    z-index: 20;
    background-color: white;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.05);
}
tr:hover .sticky-action-col, tr:hover .sticky-pod-col {
    background-color: #f8fafc;
}

.dark .sticky-action-col, .dark .sticky-pod-col {
    background-color: #1e293b;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.4);
}
.dark tr:hover .sticky-action-col, .dark tr:hover .sticky-pod-col {
    background-color: #334155;
}

/* Interactive States */
.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing; }

/* Print Media Rules */
@media print {
    body * {
        visibility: hidden !important;
    }
    #printableInvoice, #printableInvoice * {
        visibility: visible !important;
    }
    #printableInvoice {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .no-print {
        display: none !important;
    }
}
