.dashboardCard{
    width: 100%;
    min-width: 0;
   box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.dashboardCard > div{
    width: 100%;
    min-width: 0;
}

/* Chart wrapper keeps the MUI chart from overflowing its card */
.orderGraphChart{
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.orderGraphChart .MuiChartsSurface-root,
.orderGraphChart svg{
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .dashboardCard {
        margin-bottom: 16px;
    }
}

.orderHeaderCss{
   display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
    padding: 10px 10px 0 10px;
        margin-bottom: 20px;
}

.orderHeaderCss > *{
    min-width: 0;
}


.orderFilter {
    position: relative;
    display: inline-block;
    /* width: 180px; */
    max-width: 100%;
    font-family: inherit;
    z-index: 10;
}
.dashboardCardHeading{
        font-size: 18px;
    font-weight: 600;
}
/* Dropdown button */
.orderFilterButton {
    /* width: 100%;  */
    min-height: 36px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.orderFilterButton:hover,
.orderFilterButton.active {
    border-color: #71c212;
}

.orderFilterButton.active {
    box-shadow: 0 0 0 3px rgba(113, 194, 18, 0.10);
}

/* Arrow animation */
.orderFilterArrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.orderFilterArrow.rotate {
    transform: rotate(180deg);
}

/* Dropdown menu */
.orderFilterMenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max-content;
    max-width: min(240px, calc(100vw - 48px));
    box-sizing: border-box;

    padding: 5px;
    background: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.orderFilterMenu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
}

/* Dropdown options */
.orderFilterOption {
    width: 100%;
    padding: 11px 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    background: transparent;
    border: none;
    border-radius: 6px;

    color: #475467;
    font-size: 14px;
    font-weight: 400;
    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.orderFilterOption:hover {
    background: #f4fce9;
    color: #008a2f;
}

.orderFilterOption.selected {
    background: #f4fce9;
    color: #008a2f;
    font-weight: 600;
}

.orderFilterOption:focus-visible {
    outline: 2px solid #71c212;
    outline-offset: -2px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .orderFilterButton,
    .orderFilterArrow,
    .orderFilterMenu,
    .orderFilterOption {
        transition: none;
    }
}


.orderGraphEmpty{
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.orderGraphEmpty .p1{
        font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

.orderGraphEmpty .p2{
    color: #536A8E;
    font-size: 13px;
}

.errorCss,.shipmentMapError,.recentOrdersError,.paymentOverviewError,.partnerserror{
        color: red;
    font-size: .9rem;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}