.container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2 {
    color: #2c3e50;
}

form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    max-width: 500px;
}

input, select, button {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
}

.error {
    color: red;
    font-weight: bold;
}

.success {
    color: green;
    font-weight: bold;
}

/* New Styles */
.sort-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
}

.sort-indicator.asc::after {
    content: "↑";
    color: #3498db;
}

.sort-indicator.desc::after {
    content: "↓";
    color: #3498db;
}

.sort-indicator.none::after {
    content: "";
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.button-pagination {
    background: #3498db;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-pagination:hover {
    background-color: #2980b9;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 70%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.payment-entry {
    display: block;
    margin-bottom: 15px;
}
.payment-entry input,
.payment-entry select {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
    padding: 10px;
}

.payment-date, .payment-amount, .payment-currency, .payment-ex-rate {
    flex: 1;
}

textarea.form-input {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    #sidebar {
        width: 100%;
        padding: 10px;
    }
    .main-content {
        padding: 10px;
    }
    .modal-content {
        width: 95%;
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* USERS PAGE */
.permissions-table {
    background-color: #2c3e50;
    color: white;
    border-collapse: collapse;
    width: 100%;
}

.permissions-table th, .permissions-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #34495e;
}

.permissions-table th {
    background-color: #34495e;
}

.permissions-table .check { color: #2ecc71; }
.permissions-table .cross { color: #e74c3c; }
.permissions-table .warning { color: #f1c40f; }

.permissions-table input[type="checkbox"] {
    display: none;
    cursor: pointer;
}

.permissions-table .checkbox-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.permissions-table .checkbox-label::before {
    content: attr(data-icon);
    margin-right: 5px;
    font-size: 1.2em;
}

.permissions-table input[type="checkbox"]:checked + .checkbox-label::before {
    content: '✅';
}

.permissions-table input[type="checkbox"]:not(:checked) + .checkbox-label::before {
    content: '⭕';
}
.btn-filters {
    background-color: #489542;
}
#tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2000px;
}
.tab-btn {
    padding: 10px 20px;
    height: 50px;
    border: none;
    border-radius: 4px;
    background-color: #ddd;
    cursor: pointer;
    font-size: 16px;
    color: #5f4545;
}
.tab-btn.active {
    background-color: #2196F3;
    color: white;
}
.tab-btn:hover {
    background-color: #124f8b;
    color: white;
}
.section {
    display: none;
}
.section.active {
    display: block;
}

#requests-table, #orders-table {
    display: table !important;
}

.go-to-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #166910;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}