:root {
    /* Solid Colors */
    --dark-green: #046115;
    --dark-red: #a41a1c;
    --blue: #2b4cd0;
    --gray: #5e5e5e;
    --body-bg: #ebebeb;
    --white: #ffffff;
    --black: #000000;

    /* Gradients */
    --blue-gradient: linear-gradient(100.409deg,
            #2b4cd0 0%,
            #7189ed 48%,
            #2b4cd0 100%);
    --green-gradient: linear-gradient(104.495deg, #047215 0%, #2bd03e 100%);
    --red-gradient: linear-gradient(100.967deg, #720406 0%, #d02b2e 100%);
}

* {
    margin: 0;
    padding: 0;
}

.logo {
    height: auto;
    width: 110px;
}

body {
    background: var(--body-bg);
    padding-top: 61px;
}

.header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 12 !important;
}

footer {
    background: var(--white);
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 10px 0px;
}

.footer-tabs {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-tabs span {
    font-weight: 600;
}

.footer-tabs.active {
    color: var(--blue);
}

.footer-tabs svg path {
    fill: var(--gray);
}

.footer-tabs.active svg path {
    fill: var(--blue);
}

.main-slider .slider-img {
    width: 100%;
    max-height: 115px;
    object-fit: cover;
}

.common-div-with-shadow {
    background: var(--white);
    border: 1px solid #d0d3ff;
    border-radius: 10px;
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin: 10px 0;
}

.home-get-give-cards {
    border-radius: 10px;
    border: 1px solid #0e3894;
    position: relative;
    padding: 10px;
    min-height: 103px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-get-give-cards-n {
    min-height: 80px;
}

.home-get-give-cards-n span {
    font-size: 18px !important;
}

.home-give-cards {
    background: transparent;
}

.home-give-cards span {
    color: #434343 !important;
}

.home-give-cards h2 {
    color: #fefe8a !important;
}

.home-get-give-cards span {
    /* text-transform: capitalize; */
}

.home-get-give-cards h2 {
    margin: 0;
    font-size: 33px;
    font-weight: 600;
    color: #ffc1fd;
}

.home-get-give-cards .arrow-circle {
    position: absolute;
    top: -16px;
    right: -15px;
}

.home-give-cards .arrow-circle {
    position: absolute;
    top: -2px !important;
    right: -2px !important;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    /* extra space on right for icon */
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
}

.search-box input:focus {
    border-color: #888;
}

.search-box .icon {
    position: absolute;
    right: 12px;
    top: 45%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #777;
    pointer-events: none;
    /* prevents blocking input clicks */
    background: transparent;
    border: none;
}

.breadcrumbs .breadcrumbs-inner img {
    height: 50px;
    min-width: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.breadcrumbs {
    padding-bottom: 10px;
}

.breadcrumbs .breadcrumbs-inner span {
    font-size: 20px;
    color: var(--gray);
    font-weight: 500;
}

.transaction-list {
    padding: 10px 6px;
    border-bottom: 1px solid #eaeaea;
    text-decoration: none;
}

.transaction-list .transaction-list-img {
    height: 50px;
    min-width: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.transaction-list .left-content span {
    font-size: 19px;
    color: #050505;
    font-weight: 600;
}

.transaction-list .left-content p,
.transaction-list .right-content p {
    margin: 0;
    font-size: 13px;
    color: #8d8d8d;
    line-height: 10px;
}

.transaction-list .right-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.get-balance {
    color: #ffc1fd;
}

.give-balance {
    color: #fefe8a;
}

.green-color {
    color: #0a4203;
}

.red-color {
    color: #a30606;
}

.scroll-div-home {
    margin: 10px 0 0;
    max-height: 45vh;
    min-height: 45vh;
    overflow-y: scroll;
}

.scroll-div-cashbook {
    margin: 10px 0 0;
    max-height: 36vh;
    min-height: 36vh;
    overflow-y: scroll;
}

.pending {
    background-color: #ffc107;
    padding: 2px 5px;
    border-radius: 6px;
    color: #000;
}
.success {
    background-color: green;
    padding: 2px 5px;
    border-radius: 6px;
    color: #fff;
}
.partner-list{
    margin-bottom: 4px;
}
.partner-list p{
    margin: 0;
}

.scroll-div-trade {
    margin: 10px 0 0;
    max-height: 57vh;
    min-height: 57vh;
    overflow-y: scroll;
}

.scroll-div-trade-details {
    margin: 10px 0 0;
    max-height: 49vh;
    min-height: 49vh;
    overflow-y: scroll;
}

.scroll-div-detailed {
    margin: 10px 0 0;
    max-height: 46vh;
    min-height: 46vh;
    overflow-y: scroll;
}

.get-report button {
    background: transparent;
    border: none;
    color: var(--gray);
    margin-top: 6px;
}

.cashbook-dashboard-line {
    position: relative;
}

.cashbook-dashboard-line::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 0;
    background: #a8a8a842;
    width: 2px;
    height: 100%;
}

.cashbook-dashboard .cash-hand {
    position: relative;
}

.cashbook-dashboard .cash-hand::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    background: #a8a8a842;
    width: 2px;
    height: 100%;
}

.cashbook-dashboard .top-details span {
    font-size: 16px;
    color: rgba(69, 69, 69, 0.7);
}

.cashbook-dashboard .cash-online {
    width: 170px;
}

.cashbook-dashboard .cash-online span {
    font-size: 13px;
}

.cashbook-list-header p {
    color: #000000;
    font-weight: 500;
}

.cashbook-list-header h6 {
    color: #7b7b7b;
    margin: 0;
}

.cashbook-list-header span {
    color: #7b7b7b;
    margin: 0;
    font-weight: 500;
    font-size: 14px;
}

.cashbook-div {
    border-bottom: 1px solid #cacaca;
    padding-bottom: 7px;
}

.cashbook-list {
    background: #f8f8f8;
}

.cashbook-list .left-content span {
    font-size: 16px !important;
}

.cashbook-list .give-bal {
    background: #fefe8a;
    padding: 15px 0;
}

.cashbook-list .got-bal {
    background: #ffc1fd;
    padding: 15px 0;
}

.cashbook-list .got-bal span {
    color: black;
    font-size: 16px;
    font-weight: 500;
}

.cashbook-list .give-bal span {
    color: black;
    font-size: 16px;
    font-weight: 500;
}

.btn-new-entry {
    position: fixed;
    bottom: 80px;
    z-index: 999;
    left: calc(50% - 170px);
}

.btn-new-entry .you-gave-btn,
.btn-new-entry .you-got-btn {
    padding: 10px 50px;
    border-radius: 7px;
    border: none;
    color: #000;
    font-size: 18px;
}

.btn-new-entry .you-gave-btn {
    background: #fefe8a;
}

.btn-new-entry .you-got-btn {
    background: #ffc1fd;
}

.download-pdf-sec {
    min-width: 105px;
    background: transparent;
    border: none;
}

.download-pdf-sec span {
    color: var(--gray);
}

.download-pdf-sec:focus {
    background: transparent;
    border: none;
}

.download-pdf-sec:focus span {
    color: var(--blue);
}

.download-pdf-sec:focus svg path {
    fill: var(--blue);
}

.trade-tabs {
    background: transparent;
    color: var(--gray);
}

.trade-tabs.active {
    background: var(--blue-gradient);
}

.trade-list-inner .trade-list-left span {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

.trade-list-inner .trade-list-left h3 {
    font-size: 20px;
    color: #1d1d1d;
}

.trade-list-inner {
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
}

.trade-list-inner .trade-list-right .my-account-tah-red {
    font-size: 13px;
    color: var(--white);
    background: var(--red-gradient);
    text-align: center;
    font-weight: 600;
    padding: 2px 7px;
    width: fit-content;
}

.trade-list-right {
    align-items: end !important;
}

.limit-add-btn {
    border: 0;
    background: transparent;
    padding: 8px;
}

.trade-list-inner .trade-list-right .my-account-tah-green {
    font-size: 13px;
    color: var(--white);
    background: var(--green-gradient);
    text-align: center;
    font-weight: 600;
    padding: 2px 7px;
    width: fit-content;
}

.trade-list-inner .trade-list-right .my-account-tah-dark-red {
    font-size: 13px;
    color: var(--white);
    background: var(--dark-red);
    text-align: center;
    font-weight: 600;
    padding: 2px 10px;
    width: fit-content;
}

.trade-list-inner .trade-list-right .my-account-tah-dark-green {
    font-size: 13px;
    color: var(--white);
    background: var(--dark-green);
    text-align: center;
    font-weight: 600;
    padding: 2px 10px;
    width: fit-content;
}

.trade-list-inner .trade-list-right h2 span {
    font-size: 16px;
    color: var(--gray);
}

.add-trade-btn {
    position: absolute;
    left: calc(12% - 88px);
    bottom: 80px;
    padding: 12px 40px;
    border-radius: 50px;
    background: var(--blue-gradient);
    border: 1px solid rgba(89, 84, 233, 0.7);
    font-size: 15px;

    /* Glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Light + depth */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.deposit-settlement-btn {
    position: absolute;
    left: calc(50% - 117px);
    bottom: 80px;
    padding: 12px 40px;
    border-radius: 50px;
    background: var(--green-gradient);
    border: 1px solid rgba(114, 233, 84, 0.7);
    font-size: 15px;

    /* Glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Light + depth */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.withdrawal-settlement-btn {
    position: absolute;
    left: calc(50% - 129px);
    bottom: 80px;
    padding: 12px 40px;
    border-radius: 50px;
    background: var(--red-gradient);
    border: 1px solid rgba(234, 84, 86, 0.7);
    font-size: 15px;

    /* Glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Light + depth */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.add-trade-model .modal-content {
    height: 100vh;
    border-radius: 0;
}

.add-trade-model .modal-content .modal-header,
.add-trade-model .modal-content .modal-body,
.add-trade-model .modal-content .modal-footer {
    padding: 12px !important;
}

.add-trade-model .modal-content .modal-header button {
    background: transparent;
    border: navajowhite;
    font-size: 18px;
    display: contents;
    font-weight: 500;
    color: var(--gray);
}

.add-trade-model .modal-content .modal-body {
    background: var(--body-bg);
}

.add-trade-model .modal-content .modal-body label {
    display: block;
    margin: 10px 0 5px;
    font-size: 16px;
    color: var(--gray);
    font-weight: 500;
}

.add-trade-model .modal-content .modal-body select,
input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #9f9f9f;
    border-radius: 7px;
    font-size: 14px;
}

.add-trade-model .modal-content .modal-body select {
    color: var(--gray) !important;
}

.add-trade-model .modal-content .modal-body .row input {
    flex: 1;
}

/* Toggle Switch */
.add-trade-model .modal-content .modal-body .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-bottom: 10px;
}

.add-trade-model .modal-content .modal-body .switch input {
    display: none;
}

.add-trade-model .modal-content .modal-body .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.3s;
}

.add-trade-model .modal-content .modal-body .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.add-trade-model .modal-content .modal-body input:checked+.slider {
    background-color: #007bff;
}

.add-trade-model .modal-content .modal-body input:checked+.slider:before {
    transform: translateX(20px);
}

.add-trade-model .modal-content .modal-body .partner-section {
    display: none;
    margin-bottom: 15px;
    background: #fbfbfb;
    border: 1px solid #cdcdcd;
    border-radius: 7px;
}

.add-trade-model .modal-content .modal-body .partner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d8d8d8;
    padding: 8px;
    border-radius: 0;
}

.add-trade-model .modal-content .modal-body .partner input[type="checkbox"] {
    margin-right: 8px;
    height: 18px;
    width: 18px;
    margin-top: 4px;
}

.add-trade-model .modal-content .modal-body .partner input[type="number"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: right;
}

.add-trade-model .modal-content .modal-body .btn {
    width: 100%;
    padding: 12px 40px;
    border-radius: 10px;
    background: var(--blue-gradient);
    border: 1px solid rgba(89, 84, 233, 0.7);
    font-size: 15px;
    color: var(--white);

    /* Glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Light + depth */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.add-trade-model .modal-content .modal-body .btn:hover {
    opacity: 0.9;
}

.settlement-tabs {
    background: var(--white);
    border: 1px solid #d3d3d3;
    border-radius: 37px;
    padding: 5px;
}

.settlement-tabs .settlement-inner-tabs {
    width: 100%;
    border-radius: 40px;
    padding: 12px 0;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.settlement-tabs .settlement-inner-tabs-green.active {
    color: var(--white);
    background: var(--green-gradient);
}

.settlement-tabs .settlement-inner-tabs-red.active {
    color: var(--white);
    background: var(--red-gradient);
}

.add-trade-model .modal-content {
    margin: 0 !important;
    border: none !important;
}

/* .date-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.calendar-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.date-box {
    padding: 10px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    border: 1px solid #9F9F9F;
    font-size: 14px;
}

#calendarInput {
    display: none;
} */
.date-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.calendar-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.date-box {
    padding: 10px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    border: 1px solid #9f9f9f;
    font-size: 14px;
}

/* Calendar popup */
.calendar-popup {
    position: absolute;
    bottom: 100%;
    /* 👈 always above */
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
    width: 240px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.calendar-nav {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f0f0f0;
}

.calendar-nav:hover {
    /* background: #4caf50; */
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 30px);
    gap: 1px;
    text-align: center;
}

.calendar-day {
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
}

.calendar-day:hover {
    /* background: #4caf50; */
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 30px);
    text-align: center;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: bold;
}

@media (max-width: 400px) {

    .trade-list-inner .trade-list-right .my-account-tah-green,
    .trade-list-inner .trade-list-right .my-account-tah-red {
        font-size: 11px;
    }

    .trade-list-inner .trade-list-left span {
        font-size: 12px;
    }

    body {
        padding-top: 55px;
    }

    .download-pdf-sec {
        min-width: 65px;
    }

    .download-pdf-sec span {
        font-size: 14px;
    }

    .logo {
        height: auto;
        width: 130px;
    }

    .btn-new-entry .you-gave-btn,
    .btn-new-entry .you-got-btn {
        padding: 10px 30px;
        font-size: 15px;
    }

    .btn-new-entry {
        left: calc(50% - 120px);
    }

    .cashbook-list-header h5 {
        font-size: 16px;
    }

    .cashbook-list-header p,
    .cashbook-list-header h6 {
        font-size: 14px;
    }

    .cashbook-dashboard .cash-online span {
        font-size: 11px;
    }

    .cashbook-dashboard .cash-online h5 {
        font-size: 16px;
    }

    .transaction-list .transaction-list-img {
        height: 40px;
        min-width: 40px;
    }

    .transaction-list .left-content span {
        font-size: 16px;
    }

    .transaction-list .right-content h3 {
        font-size: 18px;
    }

    .home-get-give-cards h2 {
        font-size: 26px;
    }

    .cashbook-list .left-content span {
        font-size: 14px !important;
    }

    .cashbook-list .left-content p {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .breadcrumbs .breadcrumbs-inner span {
        font-size: 16px;
    }

    .breadcrumbs .breadcrumbs-inner img {
        height: 35px;
        min-width: 35px;
    }

    .logo {
        height: auto;
        width: 110px;
    }

    .cashbook-list .give-bal span,
    .cashbook-list .got-bal span {
        font-size: 14px;
    }

    .get-report button {
        margin-top: 10px;
        font-size: 12px;
    }

    .cashbook-dashboard .cash-online {
        width: 150px;
    }

    .transaction-list .transaction-list-img {
        height: 35px;
        min-width: 35px;
    }

    .footer-tabs span {
        font-size: 14px;
    }

    .transaction-list .right-content h3 {
        font-size: 17px;
    }

    .home-get-give-cards h2 {
        font-size: 22px;
    }

    .home-get-give-cards {
        min-height: 90px;
    }

    .home-get-give-cards-n {
        min-height: 65px;
    }
}

@media (max-height: 1120px) {
    .scroll-div-home {
        max-height: 47vh;
        min-height: 47vh;
    }

    .scroll-div-cashbook {
        max-height: 42vh;
        min-height: 42vh;
    }
}

@media (max-height: 1000px) {
    .scroll-div-trade-details {
        max-height: 45vh;
        min-height: 45vh;
    }

    .scroll-div-cashbook {
        max-height: 38vh;
        min-height: 38vh;
    }
}

@media (max-height: 950px) {
    .scroll-div-home {
        max-height: 45vh;
        min-height: 45vh;
    }

    .scroll-div-cashbook {
        max-height: 35vh;
        min-height: 35vh;
    }
}

@media (max-height: 900px) {
    .scroll-div-trade-details {
        max-height: 41vh;
        min-height: 41vh;
    }

    .scroll-div-home {
        max-height: 41vh;
        min-height: 41vh;
    }

    .scroll-div-cashbook {
        max-height: 31vh;
        min-height: 31vh;
    }
}

@media (max-height: 850px) {
    .scroll-div-detailed {
        max-height: 45vh;
        min-height: 45vh;
    }

    .scroll-div-trade-details {
        max-height: 38vh;
        min-height: 38vh;
    }

    .scroll-div-trade {
        max-height: 54vh;
        min-height: 54vh;
    }

    .scroll-div-home {
        max-height: 38vh;
        min-height: 38vh;
    }

    .scroll-div-cashbook {
        max-height: 28vh;
        min-height: 28vh;
    }
}

@media (max-height: 810px) {
    .scroll-div-detailed {
        max-height: 40vh;
        min-height: 40vh;
    }

    .scroll-div-trade-details {
        max-height: 35vh;
        min-height: 35vh;
    }

    .scroll-div-home {
        max-height: 35vh;
        min-height: 35vh;
    }

    .scroll-div-cashbook {
        max-height: 25vh;
        min-height: 25vh;
    }

    .scroll-div-trade {
        max-height: 50vh;
        min-height: 50vh;
    }
}