/* ============================================
   Mediso India — Admin Dashboard Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --mediso-blue: #0a2463;
    --mediso-blue-light: #1e3a8a;
    --mediso-blue-dark: #061640;
    --mediso-accent: #3b82f6;
    --mediso-accent-light: #60a5fa;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --green: #10b981;
    --green-light: #d1fae5;
    --red: #ef4444;
    --red-light: #fee2e2;
    --orange: #f59e0b;
    --orange-light: #fef3c7;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mediso-blue) 0%, var(--mediso-blue-light) 50%, var(--mediso-accent) 100%);
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--mediso-blue);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.login-logo span {
    color: var(--mediso-accent);
}

.login-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.login-field {
    text-align: left;
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.login-field input:focus {
    outline: none;
    border-color: var(--mediso-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--mediso-blue), var(--mediso-blue-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.3);
}

.login-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.login-btn.loading .btn-text {
    display: none;
}

.login-btn.loading .login-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-error {
    color: var(--red);
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

.login-error.show {
    display: block;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--mediso-blue-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo span {
    color: var(--mediso-accent-light);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.nav-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-icon {
    display: flex;
    align-items: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: var(--white);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 0;
}

/* Top Bar */
.topbar {
    background: var(--white);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-700);
}

.page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-800);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.new-order-alert {
    background: var(--red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.admin-badge {
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 28px 0;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Filters */
.filters-bar {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--mediso-accent);
    color: var(--mediso-accent);
}

.filter-tab.active {
    background: var(--mediso-blue);
    color: var(--white);
    border-color: var(--mediso-blue);
}

.search-input {
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    width: 300px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--mediso-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Orders List */
.orders-list {
    padding: 0 28px 28px;
}

.loading-orders {
    text-align: center;
    padding: 60px;
    color: var(--gray-400);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--mediso-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--gray-400);
}

.empty-state .empty-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Order Card */
.order-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.order-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.order-item.status-placed {
    border-left-color: var(--orange);
}

.order-item.status-verified {
    border-left-color: var(--mediso-accent);
}

.order-item.status-packed {
    border-left-color: #7c3aed;
}

.order-item.status-dispatched {
    border-left-color: #d97706;
}

.order-item.status-delivered {
    border-left-color: var(--green);
}

.order-item.status-cancelled {
    border-left-color: var(--red);
}

.order-item.new-order {
    animation: highlightNew 2s ease;
}

@keyframes highlightNew {
    0% {
        background: #fef3c7;
    }

    100% {
        background: var(--white);
    }
}

.order-info {
    flex: 1;
    min-width: 0;
}

.order-id {
    font-size: 14px;
    font-weight: 800;
    color: var(--mediso-blue);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.order-customer {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 600;
    margin-top: 4px;
}

.order-meta {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.order-meta svg {
    flex-shrink: 0;
}

.order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.placed {
    background: var(--orange-light);
    color: var(--orange);
}

.status-badge.verified {
    background: #dbeafe;
    color: var(--mediso-accent);
}

.status-badge.packed {
    background: #ede9fe;
    color: #7c3aed;
}

.status-badge.dispatched {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.delivered {
    background: var(--green-light);
    color: var(--green);
}

.status-badge.cancelled {
    background: var(--red-light);
    color: var(--red);
}

.order-type-icon {
    display: flex;
    align-items: center;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-body {
    padding: 24px;
}

/* Modal Detail Sections */
.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--mediso-blue);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-detail-item {
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.modal-detail-item.full {
    grid-column: 1 / -1;
}

.modal-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.modal-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    word-break: break-word;
}

/* Prescription preview in modal */
.prescription-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.prescription-thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
}

.prescription-thumb:hover {
    border-color: var(--mediso-accent);
    transform: scale(1.05);
}

/* Action buttons in modal */
.modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-btn.verify {
    background: #dbeafe;
    color: var(--mediso-accent);
}

.action-btn.pack {
    background: #ede9fe;
    color: #7c3aed;
}

.action-btn.dispatch {
    background: #fef3c7;
    color: #d97706;
}

.action-btn.deliver {
    background: var(--green-light);
    color: var(--green);
}

.action-btn.cancel {
    background: var(--red-light);
    color: var(--red);
}

/* Amount input in modal */
.amount-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.amount-input {
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    width: 140px;
    transition: var(--transition);
}

.amount-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.amount-save-btn {
    padding: 8px 16px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.amount-save-btn:hover {
    background: #059669;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    font-family: 'Inter', sans-serif;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: var(--green);
    color: var(--white);
}

.toast.error {
    background: var(--red);
    color: var(--white);
}

.toast.info {
    background: var(--mediso-blue);
    color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-input {
        width: 100%;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        padding: 16px;
    }

    .filters-bar {
        padding: 16px;
    }

    .orders-list {
        padding: 0 16px 16px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-actions {
        width: 100%;
        justify-content: space-between;
    }

    .modal-detail-grid {
        grid-template-columns: 1fr;
    }
}




/* ===== BILLING BREAKDOWN ===== */
.billing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.billing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.billing-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.billing-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    width: 140px;
    transition: border-color 0.2s;
}

.billing-input-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.billing-currency {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
}

.billing-input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    width: 80px;
    outline: none;
    color: #111827;
}

.billing-input::-webkit-inner-spin-button,
.billing-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.discount-row .billing-currency {
    color: #ef4444;
}

.discount-row .billing-input {
    color: #ef4444;
}

.custom-fee-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.billing-fee-name {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #f9fafb;
    transition: border-color 0.2s;
}

.billing-fee-name:focus {
    outline: none;
    border-color: #3b82f6;
}

.remove-fee-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-fee-btn:hover {
    background: #ef4444;
    color: white;
}

.add-fee-btn {
    padding: 8px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.add-fee-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.billing-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.billing-row.total-row {
    padding: 8px 0;
}

.billing-row.total-row .billing-label {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.billing-total {
    font-size: 20px;
    font-weight: 800;
    color: #059669;
}

/* ===== PAYMENT UI ===== */
.payment-link-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-link-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.payment-link-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-link-btn {
    padding: 10px 18px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
}

.payment-link-btn:hover {
    background: #d97706;
}

.payment-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

.payment-status-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.payment-badge.pending {
    background: #fef3c7;
    color: #b45309;
}

.payment-badge.received {
    background: #d1fae5;
    color: #059669;
}

.payment-link-view {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.payment-link-view:hover {
    text-decoration: underline;
}

/* Payment status badges in order list */
.status-badge.paymentPending {
    background: #fef3c7;
    color: #b45309;
}

.status-badge.paymentReceived {
    background: #d1fae5;
    color: #059669;
}

/* Payment action buttons */
.action-btn.payment {
    background: #f59e0b;
}

.action-btn.payment:hover {
    background: #d97706;
}

.action-btn.payment-received {
    background: #10b981;
}

.action-btn.payment-received:hover {
    background: #059669;
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .filter-tab {
        white-space: nowrap;
    }
}