/*
 * sm-style.css
 * Styles for the Session Manager module frontend components.
 */
 
 .lmspro-credits-dashboard {
    background: #253343;
    padding: 20px;
}

.lmspro-credits-table th:first-child,
.lmspro-credits-table td:first-child {
    width: 30%; /* Adjusted width for Product Name */
}

/* Action Column Width */
.lmspro-credits-table th:last-child,
.lmspro-credits-table td:last-child {
    width: 20%; /* Ensure enough space for buttons */
    min-width: 160px; /* Prevent squishing on smaller screens */
}

/* Action Buttons Layout - Force side-by-side */
.lmspro-action-row {
    display: flex;
    gap: 8px; /* Space between buttons */
    align-items: center;
    justify-content: flex-start; /* Align left */
    white-space: nowrap; /* Prevent wrapping */
}

/* Ensure buttons don't grow too large or break layout */
.lmspro-action-row .button {
    margin: 0; /* Override default margins */
    flex-shrink: 0;       /* Prevent shrinking */
}

.lmspro-credits-balance {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.lmspro-credits-balance h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #555;
}

.lmspro-credits-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.lmspro-credits-history h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #555;
}

.lmspro-credits-table th,
.lmspro-credits-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.lmspro-credit-row td:last-child {
    color: #27ae60; /* Green for credits */
}

.lmspro-debit-row td:last-child {
    color: #c0392b; /* Red for debits */
}

/* Modal Styles - High contrast for visibility */

.lsmm-modal-content {
    margin: 40px auto;
    padding: 20px;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    position: relative;
    background: #444f6c;
}

/* Modal Details Table */
.lmspro-details-table {
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.lmspro-details-table th,
.lmspro-details-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.lmspro-details-table th {
    font-weight: 600;
    width: 40%;
}

.lmspro-details-table .amount {
    color: #fff; 
}
