/* ===== DASHBOARD CARDS ===== */
.dash-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.dash-card-wrapper {
    flex: 1 1 calc(20% - 16px);
    min-width: 280px;
}

.dash .card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
    padding: 18px 24px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
}

.dash .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, transparent);
    transition: all 0.3s ease;
}

.dash .card:hover {
    transform: translateY(-4px);
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dash .card .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dash .card .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash .card .icon-wrapper {
       width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash .card .icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.dash .card .card-content {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
       margin-top: 7px;
       justify-content: end;
}

.dash .card h5 {
    font-size: 20px;
    font-weight: 600;
    color: #424242;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.dash .card .card-label {
    font-size: 14px;
    font-weight: 700;
    color: #575d68;
    margin: 0;
    line-height: 1;
}

.dash .card .card-percentage {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.dash .card .card-percentage svg {
    width: 14px;
    height: 14px;
}



.dash .active_card .icon-wrapper {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}



.dash .active_card .icon-wrapper svg {
    stroke: #f59e0b;
}

.dash .success_card .icon-wrapper {
    background: linear-gradient(135deg, #cdfec7 0%, #a1fd8a 100%);
}
.dash .success_card .icon-wrapper svg {
    stroke: #2ea50a;
}

.dash .active_card .card-percentage {
    background: #dcfce7;
    color: #16a34a;
}





.dash .loss_card .icon-wrapper {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.dash .loss_card .icon-wrapper svg {
    stroke: #ef4444;
}

.dash .loss_card .card-percentage {
    background: #fee2e2;
    color: #dc2626;
}




.dash .profit_card .icon-wrapper {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.dash .profit_card .icon-wrapper svg {
    stroke: #3b82f6;
}

.dash .profit_card .card-percentage {
    background: #dcfce7;
    color: #16a34a;
}





.dash .revenue_card .icon-wrapper {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.dash .revenue_card .icon-wrapper svg {
    stroke: #a855f7;
}

.dash .revenue_card .card-percentage {
    background: #dbeafe;
    color: #2563eb;
}





.dash .success_card .icon-wrapper {
    background: linear-gradient(135deg, #d1fad1 0%, #b0f3a7 100%);
}

.dash .success_card .icon-wrapper svg {
    stroke: #10b981;
}

.dash .success_card .card-percentage {
    background: #dcfce7;
    color: #16a34a;
}


/* ===== GRAPH SECTION ===== */
.graph_div {
    margin-top: 15px;
    /* width: 100%; */
}

.graph_div h4 {
    margin-bottom: 16px;
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter';
    color: #1f2937;
}

.graphical-representation {
    height: 100%;
    min-height: 320px;
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    transition: all 0.3s ease;
}

.graphical-representation:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.d-chart-main,
.d-chart-main1 {
    width: 100%;
    height: 100%;
}

.d-chart {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

canvas {
    max-height: 280px !important;
    width: 100% !important;
}

canvas#myDChart2 {
    max-height: 280px !important;
    width: 100% !important;
}

/* ===== CALENDAR ===== */
#calendar {
    box-shadow: none;
    border: 1px solid #e5e7eb;
    padding: 21px;
    border-radius: 12px;
    background: #fff;
}

.fc .fc-toolbar-title {
    font-size: 18px;
    margin: 0px;
    font-family: 'Inter';
    font-weight: 500;
}

.fc .fc-button-group,
.fc .fc-button,
.fc .fc-scrollgrid {
    font-size: 13px;
}

.fc-col-header {
    font-size: 14px;
}

.fc .fc-col-header-cell-cushion {
    display: inline-block;
    padding: 2px 4px;
    color: #434346;
    text-decoration: none;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgb(249 115 22 / 43%);
}

.fc .fc-daygrid-day-number {
    padding: 4px;
    position: relative;
    z-index: 4;
    color: #43434c;
    text-decoration: none;
}

.fc .fc-button-primary {
    background-color: #343437;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .dash-card-wrapper {
        flex: 1 1 calc(33.333% - 14px);
    }
}

@media (max-width: 1200px) {
    .dash-card-wrapper {
        flex: 1 1 calc(33.333% - 14px);
    }
}

@media (max-width: 991px) {
    .dash-card-wrapper {
        flex: 1 1 calc(50% - 10px);
        min-width: 250px;
    }
    
    .dash-cards-container {
        gap: 15px;
    }
    
    .graphical-representation {
        min-height: 280px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .dash-card-wrapper {
        flex: 1 1 100%;
        min-width: auto;
    }
    
    .dash-cards-container {
        gap: 15px;
    }
    
    .dash .card {
        padding: 20px;
    }
    
    .dash .card h5 {
        font-size: 28px;
    }
    
    .dash .card .icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .dash .card .icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
    
    .graphical-representation {
        min-height: 260px;
        padding: 16px;
    }
    
    .graph_div h4 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .dash-card-wrapper {
        min-width: auto;
    }
    
    .dash .card {
        padding: 16px;
    }
    
    .dash .card h5 {
        font-size: 24px;
    }
}
.graph-wrapper{
    margin-bottom: 20px;
}

