.mmm-front-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
}
.mmm-front-header h2 {
    margin-bottom: 5px;
}
.mmm-front-subtitle {
    margin-top: 0;
    color: #555;
}
.mmm-filters {
    margin: 15px 0 20px;
    background: #f5f7f9;
    padding: 10px 12px;
    border-radius: 6px;
}
.mmm-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.mmm-filter-field {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    flex: 1 1 160px;
}
.mmm-filter-field label {
    font-size: 13px;
    margin-bottom: 3px;
}
.mmm-filter-field select,
.mmm-filter-field input[type="date"] {
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #ccd0d4;
}
.mmm-filter-actions {
    display: flex;
    align-items: flex-end;
}
.mmm-btn {
    border-radius: 4px;
    padding: 6px 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}
.mmm-btn-primary {
    background: #003d6b;
    color: #fff;
}
.mmm-btn-link {
    background: #0073aa;
    color: #fff;
}
.mmm-table-wrapper {
    overflow-x: auto;
}
.mmm-front-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}
.mmm-front-table thead th {
    background: #003d6b;
    color: #fff;
    padding: 8px 6px;
    font-weight: 600;
    white-space: nowrap;
}
.mmm-front-table tbody td {
    padding: 6px 6px;
    border: 1px solid #e1e1e1;
    background-color: #f9fbfd;
}
.mmm-front-table tbody tr:nth-child(even) td {
    background-color: #edf3f8;
}
.mmm-icon-btn {
    background: #005a8c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 15px;
    cursor: pointer;
    margin-inline: 2px;
}
.mmm-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

/* Modal */
.mmm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.mmm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.mmm-modal-dialog {
    position: relative;
    margin: 40px auto;
    max-width: 900px;
    height: calc(100vh - 80px);
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mmm-modal-close {
    position: absolute;
    top: 8px;
    left: 8px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
}
.mmm-modal-body {
    flex: 1;
    position: relative;
}
#mmm-modal-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
@media (max-width: 768px) {
    .mmm-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    .mmm-modal-dialog {
        margin: 10px;
        height: calc(100vh - 20px);
    }
}
