:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --info-color: #1abc9c;
    --purple-color: #9b59b6;
}

* {

 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f6fa;
    color: #333;
}

.container {
    /* padding: 20px;
    max-width: 1400px; */
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;

}


.main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.Transactions-status {
    padding: 4px 8px;
    border-radius: 5px;
}

.status-green {
    background: #2ecc71;
    color: white;
}

.tracn_amt {
    background: #d0fff6;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
    color: #008089;
    width: fit-content;
}

.card-70 {
    width: 60% !important;
}

.card-30 {
    width: 40% !important;
}

.status-red {background: #e74c3c;color: white;}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.card-title {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.total-shipment {
    background-color: var(--primary-color);
}

.total-receivable {
    background-color: var(--secondary-color);
}

.total-payable {
    background-color: var(--danger-color);
}

.cash-in-hand {
    background-color: var(--warning-color);
}

.bank-balance {
    background-color: var(--dark-color);
}

.total-debit {
    background-color: var(--info-color);
}

.total-credit {
    background-color: var(--purple-color);
}

.analytics-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.chart-container {
    height: 300px;
    margin-top: 20px;
    position: relative;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #999;
}

.history-section {
    display: flex;
    gap: 22px;
    justify-content: space-between;
}




.table-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 100%;
    height: 350px;
    overflow: scroll;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 10px 0;
    font-weight: 500;
    color: #7f8c8d;
    border-bottom: 1px solid #eee;
}

td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.status {
    padding: 7px 8px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    display: block;
    text-align: center;
}

.status-paid {
    background-color: #d5f5e3;
    color: #27ae60;
}

.status-pending {
    background-color: #fdebd0;
    color: #f39c12;
}

.status-overdue {
    background-color: #fadbd8;
    color: #e74c3c;
}

.status-completed {
    background-color: #d6eaf8;
    color: #2980b9;
}




.time-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.time-filter button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.time-filter button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.transaction-type {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    text-align: center;
    line-height: 24px;
    margin-right: 8px;
    color: white;
    font-size: 12px;
}

.card-footer > small {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: center;
}

.mini_value_amt {
    font-size: 15px;
    font-weight: bold;
}


.date_grp {
    display: flex;
    align-items: center;
    gap: 5px;
}

.type-income {
    background-color: var(--secondary-color);
}

.type-expense {
    background-color: var(--danger-color);
}

.type-transfer {
    background-color: var(--primary-color);
}


.item_title {
    font-size: 18px;
    font-weight: bold;
}

.item_code {
    margin: 3px 0px;
}



.amount_badge {
    background: #fad7d7;
    width: fit-content;
    padding: 9px 10px;
    font-size: 19px;
    border-radius: 6px;
    color: red;
}

.badge_green {
    background: #d5f5e3;
    color: #27ae60;
}

.date_submit_btn > button {
    white-space: nowrap;
}


.date_inp_box {

    display: flex;
    gap: 6px;
}


.content-menu {
    color: black !important;
}





.account_flex {
    display: flex;
    align-items: center;
}

small.vocher_code {
    display: block;
    color: #ff4900;
    font-weight: 500;
}

a.voucher_link {
    font-size: 14px;
    font-weight: bold;
    color: #282828;
}

td {
    white-space: nowrap;
}


.value-sm {
    font-size: 17px;
}

.value-danger {
    color: red;
}

.value-success {
    color: #1abc9c;
}

a.pos_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #ff2f2f;
    height: 36px;
    padding: 0px 13px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: bold;

}

.value-info {
    color: #00b2b2;
}


@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .analytics-section, .history-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .titel_row{
        flex-direction: column;
    }

    .main-content {
    flex-direction: column;
    }

    .table-card {

    width: -webkit-fill-available;
    }

    .history-section {
    flex-direction: column;
}





}

@media (max-width: 480px) {
.analytics-card {

          padding: 20px 1px;
    width: -webkit-fill-available;
}

.table-header {
    padding: 0px 7px 7px 7px;

}
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .date_submit_btn > button {
    white-space: nowrap;
}

.flex_form {
    flex-direction: column;
    width: 100%;
}

select#branch_data {
    width: 100%;
}

.date_inp_box {
    width: 100%;
}

.filter_form {
    width: 100%;
}

input#From_date {
    width: -webkit-fill-available;
}

.date_grp {
    width: 100%;
}

input#To_date {
    width: -webkit-fill-available;
}


.pos_window_btn {
    width: 100%;
}

}



.flex_form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0px;
    justify-content: end;
}

.date_inp_box > input {
    height: 38px;
    border: none;
    border-radius: 4px;
    padding: 0px 6px;
}

.date_submit_btn > button {
    background: var(--web_color_var);
    border: none;
    color: white;
    height: 37px;
    border-radius: 3px;
    cursor: pointer;
    padding: 0px 14px;
}

.titel_row {
    border-bottom: 1px solid #b6b6b6;
    margin: 10px 0px;
    padding: 0px 0px 5px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.titel_row > h1 {
    margin: 0px 0px;
    font-size: 20px;
}

