.mkm-bank {
    font-size: 14px;
    line-height: 1.5;
    color: #111;
    --muted: #6b7280;
}
.mkm-bank .muted {
    color: #2787db;
    font-size:12px;
}

/* CARDS: Use Flexbox for content-width and left alignment */
.mkm-cards, .mkm-credit-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 18px;
}
.mkm-card {
    /* Flex settings for content-width and left alignment */
    flex: 0 0 auto; 
    min-width: 180px; /* Base minimum width for cards */
    
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mkm-card h4 {
    margin: 0 0 4px;
    font-size: 12px !important;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 400;
}
.mkm-card .val {
    font-size: 18px;
    font-weight: 400;
}

/* Updated styling for section headers */
.mkm-section {
    margin: 30px 0 10px; /* INCREASED TOP MARGIN */
    font-weight: 400;
}


/* Monthly header style for clickability */
.mkm-month {
    cursor: pointer; /* Indicate clickability */
    padding: 10px 0;
    font-weight: 500;
    font-size:.7rem;
	color:#000000;
    position: relative;
    border-bottom: 1px solid #eee;
}
.mkm-month:hover {
    color: #0073aa; /* Standard WP hover color */
}
/* Collapse icon */
.mkm-month::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
}
.mkm-month.active::after {
    content: '-';
}

/* Month header with cash-out requested badge */
.mkm-month-requested {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mkm-month-requested .mkm-month-label {
    flex: 1;
}
.mkm-month-badge {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 24px; /* Space for the +/- icon */
    background: #fef3c7;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 4px;
    letter-spacing: 0.02em;
}
.mkm-month-badge--processing { background:#dbeafe; color:#1e40af; }
.mkm-month-badge--paid { background:#d1fae5; color:#065f46; }

/* Cashout button - Pill design */
.mkm-btn-cashout-month {
    display: inline-block;
    padding: 8px 20px !important;
    background: #2687DB !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 50px !important; /* Pill shape */
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(38, 135, 219, 0.25);
}
.mkm-btn-cashout-month:hover {
    background: #1a6fc2 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(38, 135, 219, 0.3);
}
.mkm-btn-cashout-month:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(38, 135, 219, 0.2);
}
.mkm-btn-cashout-month:disabled {
    background: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.mkm-btn-cashout-month--missing {
    background: #fef3c7 !important;
    color: #92400e !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
.mkm-btn-cashout-month--missing:hover {
    background: #fde68a !important;
    color: #78350f !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Missing-bank-details banner */
.mkm-bank-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #78350f;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}
.mkm-bank-alert-body { display: flex; flex-direction: column; gap: 2px; }
.mkm-bank-alert-body strong { color: #92400e; }
.mkm-bank-alert-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #92400e;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none !important;
    white-space: nowrap;
}
.mkm-bank-alert-cta:hover { background: #78350f; }


/* Monthly content wrapper (table) that will be toggled */
.mkm-month-content {
    display: none; /* Hidden by default */
    overflow: hidden;
}


/* ===== Table styles (rest of table CSS remains the same) ===== */
.mkm-table-wrap, .mkm-table-wrap * { box-shadow: none !important; }
.mkm-table-wrap { border: 0 !important; outline: 0 !important; background: transparent !important; }
.mkm-table-wrap::before, .mkm-table-wrap::after { content: none !important; display: none !important; }

.mkm-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
}
.mkm-table::before, .mkm-table::after { content:none !important; display:none !important; }

.mkm-table th, .mkm-table td {
    border: none !important;
    font-weight: 400 !important;
    font-size: 0.7rem;
    padding: 10px 10px;
    vertical-align: middle;
    text-align: left;
    color: #111;
    background: transparent !important;
    box-shadow: none !important;
}

.mkm-table thead, .mkm-table tfoot {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.mkm-table thead th {
    letter-spacing: 0.03em;
    color: var(--muted);
    font-weight: 400 !important;
}

.mkm-table tbody tr {
    border: 0 !important;
    background: transparent !important;
    box-shadow: inset 0 1px 0 #e5e7eb !important;
}

.mkm-table tfoot td {
    border: 0 !important;
    padding: 12px 10px 0;
    background: transparent !important;
}
.mkm-table tfoot td:last-child {
    text-align: left;
}

.mkm-chip-total {
    font-size: 0.8rem;
    font-weight:600;
    color:black;
}


/* Responsive tweaks: FORCE 2 CARDS PER ROW on mobile */
@media (max-width: 580px) {
    .mkm-card { 
        /* Override min-width and force flex basis to 50% minus the gap, ensuring 2 columns */
        min-width: 0 !important;
        flex: 0 0 calc(50% - 6px) !important; 
    }
}