/**
 * Custom Stylesheet for Mobile Shop Management System
 */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .sidebar,
    .top-navbar,
    .page-header {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Invoice styles */
.invoice {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
}

.invoice-header {
    text-align: center;
    margin-bottom: 30px;
}

.invoice-details {
    margin-bottom: 30px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.invoice-table th {
    background: #f8f9fa;
}

.invoice-footer {
    margin-top: 30px;
    text-align: right;
}

/* Utility classes */
.text-wrap {
    word-wrap: break-word;
}

.hover-shadow {
    transition: box-shadow 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cursor-pointer {
    cursor: pointer;
}
