/* MyCoinvoice - Custom styles */

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Mobile-friendly touch targets */
@media (max-width: 600px) {
    .mud-nav-link {
        min-height: 48px !important;
    }

    .mud-table-cell {
        padding: 8px 12px !important;
    }

    .mud-card {
        margin-bottom: 12px;
    }

    /* Stack cards on mobile */
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Full-width buttons on mobile */
    .mobile-full-width {
        width: 100% !important;
    }

    /* Hide non-essential table columns on mobile */
    .hide-on-mobile {
        display: none !important;
    }
}

/* Better card hover effect */
.mud-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Status badge styles */
.status-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft { background: #e3f2fd; color: #1565c0; }
.status-sent { background: #fff3e0; color: #e65100; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-overdue { background: #fce4ec; color: #c62828; }

/* Print styles */
@media print {
    .mud-appbar, .mud-drawer, .no-print {
        display: none !important;
    }

    .mud-main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Responsive data grid improvements */
.mud-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Better form layout on mobile */
@media (max-width: 960px) {
    .form-row {
        flex-direction: column !important;
    }

    .form-row > * {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Floating action button for mobile */
.fab-mobile {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

@media (min-width: 960px) {
    .fab-mobile {
        display: none !important;
    }
}

/* Amount emphasis */
.amount-due {
    font-weight: 700;
    font-size: 1.1em;
}

.amount-overdue {
    color: #c62828;
    font-weight: 700;
}
