/* Dashboard Wrapper */
.mauk-dashboard-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Summary Cards */
.mauk-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mauk-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.mauk-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mauk-amount {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #2271b1;
}

/* Buttons */
.mauk-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.mauk-btn-primary {
    background: #2271b1;
    color: #fff;
}

.mauk-btn-primary:hover {
    background: #135e96;
}

.mauk-btn-secondary {
    background: #f0f0f1;
    color: #3c434a;
    border: 1px solid #c3c4c7;
}

.mauk-btn-secondary:hover {
    background: #e0e0e1;
}

.mauk-actions {
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.mauk-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mauk-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mauk-form-group {
    display: flex;
    flex-direction: column;
}

.mauk-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
}

.mauk-form-group input,
.mauk-form-group select,
.mauk-form-group textarea {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
}

.mauk-form-group input:focus,
.mauk-form-group select:focus,
.mauk-form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.mauk-form-actions {
    margin-top: 20px;
    text-align: right;
}

/* Message */
.mauk-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.mauk-message.success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.mauk-message.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Reports */
.mauk-reports-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mauk-tabs {
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.mauk-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.mauk-tab-btn.active {
    color: #2271b1;
    border-bottom: 2px solid #2271b1;
    margin-bottom: -2px;
}

/* Table Styles */
.mauk-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    display: block;
}

.mauk-table thead {
    background: #f0f0f1;
}

.mauk-table th,
.mauk-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mauk-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mauk-table tr:hover {
    background: #f9f9f9;
}

/* DataTables Customization */
.dataTables_wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

.dataTables_length select {
    padding: 5px;
    margin: 0 5px;
}

.dataTables_filter input {
    padding: 6px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-left: 10px;
}

.dataTables_paginate {
    margin-top: 20px;
}

.dataTables_info {
    margin-top: 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .mauk-summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .mauk-card {
        padding: 15px;
    }
    
    .mauk-amount {
        font-size: 18px;
    }
    
    .mauk-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mauk-table {
        font-size: 12px;
    }
    
    .mauk-table th,
    .mauk-table td {
        padding: 8px;
    }
    
    .dataTables_wrapper {
        font-size: 12px;
    }
    
    .dataTables_filter input {
        width: 200px;
    }

    /* DataTables Responsive Fixes */
.dataTables_wrapper {
    margin-top: 20px;
    padding: 10px 0;
    overflow-x: auto;
}

.dataTables_wrapper .row {
    margin: 10px 0;
}

.dataTables_wrapper .col-sm-6 {
    width: 50%;
    float: left;
}

.dataTables_wrapper .col-sm-12 {
    width: 100%;
    float: left;
}

.dataTables_wrapper .col-sm-5 {
    width: 41.666%;
    float: left;
}

.dataTables_wrapper .col-sm-7 {
    width: 58.333%;
    float: left;
}

.dataTables_length select {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
}

.dataTables_filter {
    text-align: right;
}

.dataTables_filter input {
    padding: 6px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-left: 10px;
    width: 250px;
}

.dataTables_filter input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.dataTables_paginate {
    margin-top: 20px;
    text-align: right;
}

.dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.dataTables_paginate .paginate_button.current {
    background: #2271b1;
    color: #fff !important;
    border-color: #2271b1;
}

.dataTables_paginate .paginate_button:hover {
    background: #f0f0f1;
}

.dataTables_info {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

/* Column search boxes */
.column-search {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 12px;
    box-sizing: border-box;
}

.column-search:focus {
    border-color: #2271b1;
    outline: none;
}

/* Table header styles */
.mauk-table th {
    position: relative;
    cursor: pointer;
}

.mauk-table th.sorting:after {
    content: "↕";
    margin-left: 5px;
    opacity: 0.5;
}

.mauk-table th.sorting_asc:after {
    content: "↑";
    margin-left: 5px;
}

.mauk-table th.sorting_desc:after {
    content: "↓";
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .dataTables_wrapper .col-sm-6,
    .dataTables_wrapper .col-sm-5,
    .dataTables_wrapper .col-sm-7 {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .dataTables_filter {
        text-align: center;
    }
    
    .dataTables_filter input {
        width: 90%;
        margin: 10px 0;
    }
    
    .dataTables_paginate {
        text-align: center;
    }
}
}