/* Scoped dashboard refinements layered on the existing Trezo theme. */
.sidebar-area {
    background: #fff;
    border-right: 1px solid #e9edf4;
    border-radius: 0 14px 14px 0;
    box-shadow: 4px 0 22px rgba(28, 44, 73, .045);
}

.sidebar-area .logo {
    display: flex;
    height: 74px;
    align-items: center;
    padding: 10px 17px !important;
    background: rgba(255, 255, 255, .97);
    border-bottom-color: #edf0f5;
}

.sidebar-area .logo a {
    width: 100%;
}

.sidebar-area .logo img {
    display: block;
    max-width: calc(100% - 34px);
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-area > div[data-simplebar] {
    padding: 96px 17px 20px !important;
}

.sidebar-area .accordion > span {
    margin: 0 10px 12px;
    color: #929db0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-area .accordion-item {
    margin-bottom: 5px;
}

.sidebar-area .accordion-button {
    min-height: 42px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    color: #39465c;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 550;
}

.sidebar-area .accordion-button > i {
    color: #71809a;
}

.sidebar-area .accordion-button:hover,
.sidebar-area .accordion-button.open {
    color: #465fc1;
    background: #f2f5ff;
}

.sidebar-area .accordion-button:hover > i,
.sidebar-area .accordion-button.open > i {
    color: #5368c9;
}

.sidebar-area .sidemenu-link {
    border-radius: 8px;
    font-size: 12px;
}

.header-area {
    min-height: 70px;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e9edf4;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 5px 20px rgba(28, 44, 73, .055);
    backdrop-filter: blur(12px);
}

.header-area input[type="text"] {
    background: #f5f7fb;
    border-color: #edf0f5;
    border-radius: 9px;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-area input[type="text"]:focus {
    background: #fff;
    border-color: #aebcf0;
    box-shadow: 0 0 0 3px rgba(83, 104, 201, .10);
}

.header-area #hide-sidebar-toggle,
.header-area #light-dark-toggle,
.header-area #fullscreenBtn,
.header-area .settings-menu > button {
    color: #61708a;
}

.header-area #hide-sidebar-toggle:hover,
.header-area #light-dark-toggle:hover,
.header-area #fullscreenBtn:hover,
.header-area .settings-menu > button:hover {
    color: #5368c9;
}

.header-area #dropdownToggleBtn img {
    border-color: #e1e7f4;
}

.merchant-dashboard-layout {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.merchant-dashboard {
    padding-top: 108px;
    padding-bottom: 36px;
    background:
        radial-gradient(ellipse at 7% 0%, rgba(93, 112, 255, .11), transparent 31%),
        radial-gradient(ellipse at 97% 15%, rgba(45, 183, 161, .08), transparent 28%),
        linear-gradient(145deg, #f5f7fc 0%, #eff3f9 54%, #f8fafc 100%);
}

.merchant-dashboard .welcome-card {
    position: relative;
    min-height: 164px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: linear-gradient(115deg, #344f9d 0%, #5368c9 54%, #7757bf 100%);
    box-shadow: 0 14px 30px rgba(55, 71, 142, .18);
}

.merchant-dashboard .welcome-card::after {
    position: absolute;
    top: -100px;
    right: -35px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .035), 0 0 0 70px rgba(255, 255, 255, .025);
    content: "";
    pointer-events: none;
}

.merchant-dashboard .welcome-card .trezo-card-content {
    z-index: 1;
}

.merchant-dashboard .welcome-card h5 {
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 600;
    letter-spacing: -.35px;
}

.merchant-dashboard .welcome-card p {
    margin-top: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.merchant-dashboard-metrics {
    gap: 16px;
    margin-top: 20px;
}

.merchant-dashboard-metrics > div {
    min-width: 0;
}

.merchant-dashboard .merchant-metric-card {
    height: calc(100% - 18px);
    min-height: 124px;
    margin-bottom: 18px;
    padding: 22px !important;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(31, 48, 79, .055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.merchant-dashboard .merchant-metric-card:hover {
    transform: translateY(-3px);
    border-color: #d8e0f0;
    box-shadow: 0 12px 25px rgba(31, 48, 79, .10);
}

.merchant-dashboard .merchant-metric-card .trezo-card-content > span {
    color: #77849a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .25px;
    text-transform: uppercase;
}

.merchant-dashboard .merchant-metric-card h5 {
    margin-top: 9px !important;
    color: #1c2a45;
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 700;
    letter-spacing: -.65px;
}

.merchant-dashboard .merchant-metric-card .absolute > div {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #eef2ff;
    color: #5368c9;
}

.merchant-dashboard .merchant-metric-card .material-symbols-outlined {
    font-size: 23px;
}

.merchant-dashboard-metrics > div:nth-child(2) .merchant-metric-card .absolute > div {
    background: #e9f7f3;
    color: #188d78;
}

.merchant-dashboard-metrics > div:nth-child(3) .merchant-metric-card .absolute > div {
    background: #f3edfb;
    color: #8057b8;
}

.merchant-dashboard-metrics > div:nth-child(4) .merchant-metric-card .absolute > div {
    background: #fff4e5;
    color: #c18427;
}

.merchant-dashboard .merchant-report-card {
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e5eaf2;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(31, 48, 79, .06);
}

.merchant-dashboard .merchant-report-card .trezo-card-header {
    margin: 0 !important;
    padding: 21px 24px;
    border-bottom: 1px solid #edf0f5;
}

.merchant-dashboard .merchant-report-card .trezo-card-title h5 {
    color: #1d2b46;
    font-size: 17px;
    font-weight: 650;
}

.merchant-dashboard .merchant-report-card .trezo-card-content {
    padding: 0 20px 20px;
}

.merchant-dashboard .merchant-report-card table {
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.merchant-dashboard .merchant-report-card thead th {
    padding: 13px 15px !important;
    color: #64728a;
    background: #f6f8fb !important;
    border-bottom: 1px solid #e8edf4;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .35px;
    text-transform: uppercase;
}

.merchant-dashboard .merchant-report-card tbody td {
    padding: 13px 15px;
    color: #4d5c73;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
}

.merchant-dashboard .merchant-report-card tbody tr:hover td {
    background: #fafbfe;
}

.merchant-dashboard .merchant-report-card .View_detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    color: #465fc1;
    background: #eef2ff;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.merchant-dashboard .merchant-report-card .View_detail:hover {
    color: #fff;
    background: #5368c9;
}

.dark .sidebar-area,
.dark .sidebar-area .logo,
.dark .header-area {
    background: #0c1427;
    border-color: #172036;
}

.dark .sidebar-area .accordion-button {
    color: #d2d8e5;
}

.dark .sidebar-area .accordion-button:hover,
.dark .sidebar-area .accordion-button.open {
    color: #b9c5ff;
    background: #15203c;
}

.dark .merchant-dashboard {
    background:
        radial-gradient(ellipse at 6% 0%, rgba(83, 104, 201, .17), transparent 34%),
        linear-gradient(145deg, #0d1528 0%, #111b30 55%, #0d1528 100%);
}

.dark .merchant-dashboard .merchant-metric-card h5,
.dark .merchant-dashboard .merchant-report-card .trezo-card-title h5 {
    color: #e4eaf5;
}

.dark .merchant-dashboard .merchant-metric-card .trezo-card-content > span,
.dark .merchant-dashboard .merchant-report-card tbody td {
    color: #aab6ca;
}

.dark .merchant-dashboard .merchant-report-card .trezo-card-header,
.dark .merchant-dashboard .merchant-report-card tbody td {
    border-color: #202b41;
}

.dark .merchant-dashboard .merchant-report-card thead th {
    color: #c1cada;
    background: #15203c !important;
    border-color: #202b41;
}

.dark .merchant-dashboard .merchant-report-card tbody tr:hover td {
    background: #111c32;
}

@media (max-width: 767px) {
    .header-area {
        min-height: 64px;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .sidebar-area .logo {
        height: 68px;
    }

    .merchant-dashboard {
        padding-top: 142px;
        padding-bottom: 24px;
    }

    .merchant-dashboard .welcome-card {
        min-height: 140px;
        margin-bottom: 16px;
        padding: 18px !important;
    }

    .merchant-dashboard-metrics {
        gap: 0 12px;
        margin-top: 10px;
    }

    .merchant-dashboard .merchant-metric-card {
        min-height: 112px;
        padding: 17px !important;
    }

    .merchant-dashboard .merchant-report-card .trezo-card-content {
        padding: 0 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .merchant-dashboard .merchant-metric-card {
        transition: none;
    }
}
