.dmw-tabs {
    padding: 58px;
    width: 100%;
    margin: 0 auto;
    background: #f0f8ff;
    min-height: 100vh;
}

.dmw-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

    .dmw-controls label {
        font-weight: 500;
    }

    .dmw-controls select {
        padding: 6px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
    }

.dmw-tab-buttons {
    white-space: nowrap;
}

    .dmw-tab-buttons > input {
        display: none;
    }

    .dmw-tab-buttons .tab-button {
        cursor: pointer;
        padding: 8px 12px;
        border: 1px solid #bdbdbd;
        margin-right: -1px;
        background: #f0f8ff;
        display: inline-block;
    }

    .dmw-tab-buttons label.tab-button:first-of-type {
        border-radius: 6px 0 0 0;
    }

    .dmw-tab-buttons label.tab-button:not(:first-of-type):not(:last-of-type) {
        border-radius: 0;
    }

    .dmw-tab-buttons label.tab-button:last-of-type {
        border-radius: 0 6px 0 0;
    }

    .dmw-tab-buttons input:checked + label {
        cursor: default;
        background: #5671ff;
        color: white;
        border-color: #5671ff;
    }

.tabs-content {
    padding: 10px;
    border: 1px solid #000;
    background: #f0f8ff;
}

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.filters-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.dmw-table img {
    max-width: 60px;
    max-height: 40px;
}

.dmw-loading {
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

    .dmw-loading img {
        width: 80px;
    }

.dmw-table thead th {
    background-color: #000;
    color: #fff;
}

.table-responsive .dataTables_length,
.table-responsive .dataTables_filter {
    margin-bottom: 12px;
}

/* Action buttons */
.btn-action {
    padding: 4px 8px;
    margin: 0 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

    .btn-action:hover {
        transform: scale(1.2);
    }

.btn-edit {
    color: #2196F3;
}

.btn-delete {
    color: #f44336;
}

/* Primary button */
.btn-primary {
    background-color: #5671ff;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

    .btn-primary:hover {
        background-color: #3d5ae6;
    }

.btn-secondary {
    background-color: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

    .btn-secondary:hover {
        background-color: #555;
    }

/* Modal styles */
.dmw-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dmw-modal-content {
    background-color: #fefefe;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dmw-modal-header {
    padding: 16px 20px;
    background-color: #5671ff;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .dmw-modal-header h3 {
        margin: 0;
        font-size: 18px;
    }

.dmw-modal-close {
    color: white;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

    .dmw-modal-close:hover,
    .dmw-modal-close:focus {
        opacity: 0.8;
    }

.dmw-modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        color: #333;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        box-sizing: border-box;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #5671ff;
            box-shadow: 0 0 0 2px rgba(86, 113, 255, 0.1);
        }

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .dmw-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .dmw-tab-buttons .tab-button {
        padding: 8px 10px;
        font-size: 14px;
    }

    .dmw-modal-content {
        width: 95%;
        margin: 10px;
    }
}
