/* Dashboard Wrapper */
.cm-dashboard-wrapper {
    max-width: 1000px;
    width: 95%;
    margin: 20px auto;
    clear: both;
}

/* Table styling */
.cm-dashboard-table {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: auto !important;
    margin-bottom: 20px;
}

.cm-dashboard-table th,
.cm-dashboard-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.cm-dashboard-table th {
    background-color: #f7f7f7;
    font-weight: 600;
}

.cm-dashboard-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.cm-dashboard-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Inputs and select styling */
.cm-dashboard-table input,
.cm-dashboard-table select {
    width: 100%;
    padding: 4px 6px;
    box-sizing: border-box;
}

/* Action buttons inline */
.cm-dashboard-table td .cm-action-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.cm-dashboard-table td .cm-action-buttons button {
    display: inline-block !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 6px 10px !important;
    cursor: pointer !important;
}

/* Footer placement */
.cm-dashboard-wrapper {
    display: block !important;
    clear: both !important;
    margin-bottom: 50px;
}

footer,
.site-footer {
    clear: both !important;
    margin-top: 20px !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .cm-dashboard-table td,
    .cm-dashboard-table th {
        padding: 8px 10px;
    }
    .cm-dashboard-table td .cm-action-buttons {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }
}
