/* ===== Cash Management — Modern Tabs & Merchants ===== */

.cm-section {
    padding-top: 10px;
}

/* --- Tab pills --- */
.cm-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.cm-tabs {
    display: inline-flex;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #ece7e2;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(26, 23, 20, 0.08);
    flex-wrap: wrap;
    justify-content: center;
}

.cm-tabs .nav-item {
    display: flex;
}

.cm-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: #4a4540;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cm-tabs .nav-link i {
    font-size: 15px;
    opacity: 0.8;
}

.cm-tabs .nav-link:hover {
    color: #ad1f26;
    background: #f7ece9;
}

.cm-tabs .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ad1f26 0%, #8a1820 100%);
    box-shadow: 0 8px 18px rgba(173, 31, 38, 0.28);
}

.cm-tabs .nav-link.active i {
    opacity: 1;
}

/* --- Panel card --- */
.cm-panel {
    background: #ffffff;
    border: 1px solid #f0ece7;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(26, 23, 20, 0.06);
    padding: 40px;
}

@media (max-width: 575px) {
    .cm-panel {
        padding: 24px 18px;
        border-radius: 14px;
    }
}

/* --- Merchant accordion --- */
.cm-merchant-accordion .accordion-item {
    border: 1px solid #ece7e2;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fdfbf9;
    box-shadow: 0 4px 14px rgba(26, 23, 20, 0.04);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.cm-merchant-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

.cm-merchant-accordion .accordion-item:hover {
    border-color: #e3c9a8;
    box-shadow: 0 10px 26px rgba(173, 31, 38, 0.08);
}

.cm-merchant-accordion .accordion-header {
    box-shadow: none;
}

.cm-merchant-accordion .accordion-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #1a1714;
    box-shadow: none !important;
}

.cm-merchant-accordion .accordion-button:not(.collapsed) {
    color: #ad1f26;
    background: #fbf3ef;
}

.cm-merchant-accordion .accordion-button::after {
    margin-left: auto;
    background-image: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f078";
    font-size: 13px;
    color: #9a9490;
    transition: transform 0.3s ease;
}

.cm-merchant-accordion .accordion-button:not(.collapsed)::after {
    content: "\f078";
    color: #ad1f26;
    transform: rotate(180deg);
}

.cm-merchant-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ad1f26 0%, #c89b63 100%);
    color: #fff;
    font-size: 16px;
}

.cm-merchant-accordion .accordion-body {
    padding: 6px 22px 26px;
    color: #4a4540;
    font-size: 14.5px;
    line-height: 1.8;
}

/* --- Merchant card grid --- */
.cm-merchant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

@media (max-width: 575px) {
    .cm-merchant-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.cm-merchant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 16px;
    background: #ffffff;
    border: 1px solid #ece7e2;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(26, 23, 20, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.cm-merchant-card:hover {
    transform: translateY(-6px);
    border-color: #e3c9a8;
    box-shadow: 0 16px 32px rgba(173, 31, 38, 0.14);
}

.cm-merchant-card-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ad1f26 0%, #c89b63 100%);
    color: #fff;
    font-size: 26px;
    overflow: hidden;
    flex-shrink: 0;
}

.cm-merchant-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.cm-merchant-card-title {
    text-align: center;
    font-size: 14.5px;
    font-weight: 700;
    color: #1a1714;
    transition: color 0.3s ease;
}

.cm-merchant-card:hover .cm-merchant-card-title {
    color: #ad1f26;
}

@media (max-width: 575px) {
    .cm-merchant-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }

    .cm-merchant-card {
        padding: 20px 12px;
    }

    .cm-merchant-card-logo {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
}
