.ml-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.ml-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ml-card h2,
.ml-report h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 28px;
}

.ml-report-range {
    margin-top: 0;
    color: #666;
}

.ml-form p,
.ml-report-filters p {
    margin-bottom: 18px;
}

.ml-form label,
.ml-report-filters label {
    font-weight: 700;
    display: inline-block;
    margin-bottom: 6px;
}

.ml-form input[type="text"],
.ml-form input[type="date"],
.ml-form input[type="number"],
.ml-form select,
.ml-form textarea,
.ml-report-filters input,
.ml-report-filters select {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

.ml-form textarea {
    min-height: 100px;
}

.ml-form input[type="submit"],
.ml-report-filters button,
.ml-button,
.ml-report a {
    display: inline-block;
    background: #8b1e1e;
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ml-form input[type="submit"]:hover,
.ml-report-filters button:hover,
.ml-button:hover,
.ml-report a:hover {
    background: #641515;
}

.ml-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ml-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #d8d8d8;
}

.ml-table th {
    background: #f7f1eb;
    color: #2b2b2b;
    text-align: left;
    font-weight: 700;
    padding: 12px;
    border: 1px solid #d8d8d8;
}

.ml-table td {
    padding: 12px;
    border: 1px solid #d8d8d8;
    vertical-align: top;
}

.ml-table td a {
    display: inline-block;
    margin-right: 10px;
}

.ml-table tr:nth-child(even) td {
    background: #fbfbfb;
}

.ml-table tr:hover td {
    background: #fff8ef;
}

.ml-table a {
    font-weight: 700;
    text-decoration: none;
}

.ml-table a:hover {
    text-decoration: underline;
}

.ml-empty {
    padding: 18px;
    background: #fff8ef;
    border-radius: 12px;
    color: #555;
}

.ml-report-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: end;
    background: #f9f6f2;
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .ml-wrapper {
        padding: 12px;
    }

    .ml-card {
        padding: 18px;
    }

    .ml-table th,
    .ml-table td {
        padding: 10px;
        font-size: 14px;
    }
}

.ml-table th:last-child,
.ml-table td:last-child {
    min-width: 140px;
    white-space: nowrap;
}

.ml-table td .ml-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ml-table td .ml-actions a {
    display: inline-block !important;
    margin: 0 !important;
    white-space: nowrap;
}
.ml-table td.ml-actions-cell {
    white-space: nowrap !important;
    min-width: 160px !important;
    vertical-align: middle !important;
}

.ml-table td.ml-actions-cell a.ml-action-link {
    display: inline-block !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.ml-table td.ml-actions-cell a.ml-delete-link {
    color: #b3261e !important;
}