:root {
    --font-mono: "Poppins", sans-serif;

    --text-2xs: 10px;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-md: 18px;
    --text-lg: 20px;
    --text-xl: 22px;
    --text-2xl: 24px;
    --text-mid: 28px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-6xl: 60px;
    --text-7xl: 72px;


    --color-base: #000;
    --color-dark: #333333;
    --color-dark-chocolate: #212B36;
    --color-white: #fff;
    --color-green: #6DCB6C;
    --color-red: #FF3D00;
    --color-oxford-blue: #263238;
    --color-silver-gray: #666666;
    --color-sleep-black: #111111;
    --color-theme-blue: #00274D;
    --color-blue-smoke: #274167;
    --color-echo-blue: #A3AED0;
    --color-azure-light: #E9EDF7;
    --color-gray-light: #A3A1A1;
    --color-white-smoke: #EFEFEF;
    --color-light: #F2F2F2;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    outline: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background 0.3s ease, text-decoration 0.3s ease !important;
}

button {
    border: none;
    box-shadow: none;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background 0.3s ease, text-decoration 0.3s ease;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

body {
    font-family: var(--font-mono);
}


.container {
    width: 100%;
    max-width: 90%;
    margin: auto;
}

section {
    overflow: hidden;
}



/* ----------------------------- Login Page -------------------------------- */




.login__page--container {
    max-width: 570px;
    margin: 70px auto;
}

.login__page--container h1 {
    font-size: var(--text-mid);
    line-height: 1.2;
    font-weight: 500;
    color: var(--color-dark);
    margin: 0 0 30px;
    text-align: center;
}

.login__page--form label {
    font-size: var(--text-base);
    color: var(--color-silver-gray);
    line-height: 1;
    margin: 0 0 10px;
}

.login__page--form .form-group {
    margin-bottom: 20px;
}

.login__page--form .form-group:nth-child(2) {
    margin-bottom: 0;
}

.login__page--form .form-control {
    height: 48px;
    line-height: 48px;
}

.forget__pass {
    float: right;
    font-size: var(--text-base);
    line-height: 1;
    color: var(--color-sleep-black);
    text-decoration: underline;
    padding-top: 10px;
}

.forget__pass:hover {
    text-decoration-color: transparent;
}


.label__checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.login__page--form label.label__checkbox {
    margin: 50px 0 40px;
    color: var(--color-dark);
}

/* Hide the browser's default checkbox */
.label__checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid var(--color-sleep-black);
    border-radius: 4px;
    transition: all 0.3s ease;
}


.label__checkbox:hover input~.checkmark {
    background-color: rgba(17, 17, 17, .5);
    border-color: transparent;
}

.label__checkbox input:checked~.checkmark {
    background-color: var(--color-sleep-black);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.label__checkbox input:checked~.checkmark:after {
    display: block;
}

.label__checkbox .checkmark:after {
    left: 5px;
    top: -1px;
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.btn__theme {
    display: block;
    border-radius: 8px;
    color: var(--color-white);
    width: 100%;
    margin-top: 30px !important;
    padding: 12px;
    border: none;
    font-size: var(--text-lg);
    font-weight: 500;
    -webkit-transition: 0.3s linear;
    -moz-transition: 0.3s linear;
    -ms-transition: 0.3s linear;
    -o-transition: 0.3s linear;
    transition: 0.3s linear;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.btn__theme:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00274d;
    transition: all .3s;
    border-radius: 8px;
    z-index: -2;
}

.btn__theme:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #FF6600;
    transition: all .3s;
    border-radius: 8px;
    z-index: -1;
}

.btn__theme:hover::after,
.btn__theme:focus::after {
    width: 100%;
}

/*--------------------------Dashboard------------------------------*/
.body__wrapper {
    background-color: #F2F2F2;
    color: var(--color-base);
    padding: 40px 25px 40px 17px;
    min-height: 100vh;
    /* overflow: hidden; */
}

.dashboard__container {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 220px;
    padding: 15px 0px 15px 8px;
    z-index: 10;
    position: fixed;
    height: 100%;
    left: 17px;
    top: 40px;
    bottom: 0;
    padding-bottom: 90px;
}

.sidebar .dashboard__logo {
    margin-bottom: 20px;
    text-align: center;
}

.sidebar .dashboard__logo img {
    height: 54px;
}

.sidebar .nav-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 0px 13px 15px;
    border-radius: 10px 0 0 10px;
    margin-bottom: 5px;
    color: var(--color-base);
    cursor: pointer;
    text-decoration: none;
    font-size: var(--text-sm);
    line-height: 1;
    font-weight: 500;
    box-shadow: 8px 4px 8px transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-item:hover {
    background-color: var(--color-white);
    box-shadow: 8px 4px 8px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
}

.sidebar .nav-item.active {
    background-color: var(--color-white);
}

.sidebar .nav-item img {
    max-width: 20px;
}

.sidebar__top {
    height: calc(100% - 145px);
    overflow-y: auto;
}

.sidebar__bottom {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    padding-left: 8px;
}

.sidebar__bottom .nav-item:hover {
    box-shadow: 8px 4px 8px transparent;
}

/* ===== Submenu Integration ===== */

.sidebar .has-submenu {
    display: flex;
    flex-direction: column;
    border-radius: 10px 0 0 10px;
    position: relative;
}

.sidebar .has-submenu .submenu-parent {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 0px 13px 15px;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 10px 0 0 10px;
    color: var(--color-base);
    transition: all 0.3s ease;
    z-index: 1;
}

.sidebar .has-submenu:hover .submenu-parent,
.sidebar .has-submenu .submenu-parent:hover {
    background-color: var(--color-white);
    box-shadow: 8px 4px 8px rgba(0, 0, 0, .1);
}

.sidebar .has-submenu.active .submenu-parent {
    background-color: var(--color-white);
}

.sidebar .has-submenu .submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height .5s ease;
    margin-top: -5px;
    margin-left: 6px;
    z-index: 0;
    background: #f0eaea;
    box-shadow: 0px 0 10px rgba(0, 0, 0, .05) inset;
    border-radius: 0 0 10px 10px;
}

.sidebar .has-submenu:hover .submenu {
    transition: max-height .5s ease;
    max-height: 500px;
}

.sidebar .has-submenu .submenu a {
    font-size: 0.88rem;
    color: var(--color-base);
    padding: 8px 10px;
    text-decoration: transparent;
    border-radius: 0;
    transition: background 0.3s;
}

.sidebar .has-submenu .submenu a:not(:last-child) {
    margin-bottom: 4px;
}

.sidebar .has-submenu .submenu a:hover {
    background-color: #faf5f5;
    /* background: rgba(250, 245, 245, .8); */
}

.sidebar .has-submenu .submenu a.active {
    background-color: #faf5f5;
    font-weight: 500;
}

.sidebar .submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.sidebar .has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}



.main-content {
    width: calc(100% - 220px);
    margin-left: 220px;
    background: var(--color-white);
    padding: 20px 15px 15px;
    border-radius: 30px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding: 0 20px;
}

/* .heading__main {
    font-size: var(--text-mid);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-base);
}*/

.heading__wrapper {
    position: relative;
    display: inline-block;
}

.heading__main {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    position: relative;
}

/* .heading__main::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    filter: blur(3px);
    border-radius: 4px;
    pointer-events: none;
} */

.heading__tagline {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: -0.8rem;
    text-align: right;
}

.dashboard__user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 100%;
    overflow: hidden;
    background-color: #374151;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.dashboard__user span {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    color: var(--color-base);
}

.stats-grid {
    font-family: 'Segoe UI', sans-serif;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #f8efef;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 0 2px transparent;
    position: relative;
    z-index: 1;
    height: 100%;
}

.stat-card .title {
    margin-bottom: 15px;
}

.stat-card .title img {
    max-width: 26px;
}

.stat-card .title h5 {
    font-size: var(--text-md);
    font-weight: 500;
    line-height: 1;
    color: var(--color-silver-gray);
    margin: 25px 0 0;
}

.stat-card strong {
    font-size: var(--text-4xl);
    line-height: .8;
    font-weight: 500;
    margin: 0;
}

.stat-card .indicator-badge {
    position: absolute;
    right: 15px;
    top: 15px;
    height: 12px;
    width: 12px;
    border-radius: 100%;
    animation: blink 1.5s infinite;
}

.badge-due {
    background: #dc3545;
}

.badge-pending {
    background: #fd7e14;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .75;
        transform: scale(0.88);
    }
}


.charts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.charts-row .chart-card:first-child {
    grid-column: span 3;
}

.chart-card {
    background-color: var(--color-white);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.chart-card .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* for Firefox */
    overflow-x: auto !important;
    overflow: scroll !important;
    display: block;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.chart-card .chart-title,
.table-title {
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--color-silver-gray);
    margin: 0 0 15px;
}

.chart-card .chart-value {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-card .chart-value strong {
    font-size: var(--text-4xl);
    font-weight: 500;
    line-height: 1;
}

.chart-card .chart-change {
    font-size: var(--text-xs);
    color: var(--color-silver-gray);
}

.time-filter {
    display: flex;
    gap: 4px;
    background: var(--color-light);
    border-radius: 10px;
    padding: 4px;
}

.time-filter button {
    border: transparent;
    border-radius: 6px;
    padding: 8px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-silver-gray);
    cursor: pointer;
}

.time-filter button.active,
.time-filter button:hover {
    background-color: var(--color-white);
    color: var(--color-base);
}

.time-filter button.active {
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .17);
}

#currency {
    border-radius: 10px;
    padding: 10px 30px 10px 12px;
    font-size: var(--text-xs);
    font-weight: 500;
    line-height: 1;
}


.filter-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-silver-gray);
}

.charts-row .chart-card:last-child .filter-btn {
    padding: 6px 8px;
    gap: 4px;
}

.charts-row .chart-card:last-child .chart-header {
    align-items: center;
    margin-bottom: 50px;
}

.charts-row .chart-card:last-child .change {
    margin-top: 30px !important;
}

.charts-row .chart-card:last-child .chart-title {
    margin: 0;
}

.charts-row .chart-card:last-child {
    padding: 10px;
}

.revenue-chart {
    width: 100%;
    margin-top: 20px;
}

#dashboard_linechart {
    width: 100%;
    height: 280px;
    margin: 0;
    padding: 0;
}

.conversion-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 200px;
}

#dashboard_piechart {
    width: 100%;
    height: 240px;
}

.chart-legend {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

span.dot {
    height: 8px;
    width: 8px;
    display: inline-block;
    border-radius: 100%;
}

.percent {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-base);
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
}

.chart-legend .item {
    position: relative;
    padding-top: 30px;
    font-size: var(--text-xs);
    color: var(--color-dark-chocolate);
}

.legend-item {
    font-size: var(--text-xs);
    line-height: 1;
    color: var(--color-dark-chocolate);
    text-align: center;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 100%;
}

.legend-color.green {
    background-color: var(--color-green);
}

.legend-color.red {
    background-color: var(--color-red);
}

.legend-color.gray {
    background-color: var(--color-oxford-blue);
}

.legend-percent {
    font-weight: 500;
    margin-bottom: 12px;
}

.clients-table {
    background-color: var(--color-white);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.table-header {
    padding: 20px;
}

.table-title {
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.view-all-btn {
    background-color: var(--color-theme-blue);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: var(--text-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}


.clients-table .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    padding-inline: 20px;
}

.clients-table .table th,
.clients-table .table td {
    text-align: left;
    padding: 12px 20px;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    vertical-align: middle;
}

.clients-table .table th {
    font-size: var(--text-sm);
}

.clients-table .table td {
    font-size: var(--text-sm);
}

.clients-table .table td:nth-child(6) {
    font-size: var(--text-2xs);
}

.clients-table .table th {
    color: var(--color-echo-blue);
}

.clients-table .table thead tr {
    border-bottom: 1px solid var(--color-azure-light);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.status-converted {
    background-color: rgba(135, 215, 142, 0.302);
    border: 1px solid rgba(116, 210, 126, 1);
    color: var(--color-green);
}

.status-sent {
    background-color: rgba(190, 188, 182, 0.2);
    border: 1px solid rgba(113, 113, 111, 1);
    color: var(--color-dark);
}

.status-dropped {
    background-color: rgba(238, 93, 80, 0.2);
    border: 1px solid rgba(238, 93, 80, 1);
    color: rgba(238, 93, 80, 1);
}

.status-active {
    background-color: rgba(239, 201, 81, 0.2);
    border: 1px solid rgba(255, 206, 32, 1);
    color: rgba(255, 206, 32, 1);
}

.border__box {
    background-color: var(--color-white);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn__back {
    background: var(--color-light);
    color: var(--color-base);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 11px;
    padding: 0px 15px 0px 5px;
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
}


.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.mobile-nav-menu {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 12px;
}

.mobile-nav-item img {
    max-width: 24px;
}

.mobile-nav-item.active {
    background: var(--color-light);
    border-radius: 100%;
    height: 50px;
    width: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.inverted-img {
    filter: invert(1) brightness(2);
}

.dropdown-item svg {
    margin-right: 8px;
    max-width: 14px;
    max-height: 14px;
}


/*--------------------Proposal page------------------*/
.proposal__main-content {
    background-color: var(--color-white);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 35px;
}

.heading__secondary {
    font-size: var(--text-lg);
    font-weight: 500;
}

.proposal__form .heading__secondary {
    margin: 0 0 20px;
}

.field__title {
    font-size: var(--text-sm);
    line-height: 1;
    margin: 0 0 10px;
}

.proposal__form .form-control {
    border: 1px solid #B5B5B5;
    border-radius: 10px;
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    margin-bottom: 15px;
    font-size: var(--text-sm);
}

.proposal__form .form-control::placeholder {
    color: rgba(75, 74, 74, 0.55);
}

.proposal__project {
    border: 1px solid #B5B5B5;
    border-radius: 10px;
    /* overflow: hidden; */
}

.proposal__project .row .project__brief--col:not(:last-child) {
    border-right: 1px solid #B5B5B5;
}

.proposal__project .service-row-header {
    position: relative;
}

.project__brief--col {
    padding-top: 14px;
    padding-bottom: 14px;
}

.proposal__project .proposal__table-wrapper .row {
    position: relative;
}

.proposal__project .service-row-header:after,
.proposal__project .proposal__table-wrapper .row:not(:last-child)::after {
    content: "";
    height: 1px;
    background: #B5B5B5;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
}

.proposal__project .service-row .form-control,
.proposal__project .project__timeline-row .form-control,
.proposal__project .project__cost-row .form-control,
.proposal__project .payment__schedule-row .form-control {
    border: none;
    border-radius: 0;
    height: 100%;
    line-height: 1.2;
    padding: 0;
    box-shadow: none !important;
    margin: 0;
    font-size: var(--text-sm);
}

.proposal__project .row .project__brief--col:first-child .form-control,
.proposal__project .row .project__brief--col:first-child span {
    padding-left: 15px;
}

.proposal__form textarea.form-control {
    padding: 8px 16px;
    line-height: 1.1;
    height: 80px;
}

.proposal__project {
    font-size: var(--text-sm);
    line-height: 1.2;
}

.proposal__project .row .project__brief--col span,
.proposal__project .row .project__brief--col label,
.proposal__project .row .project__brief--col select {
    font-weight: 500;
    color: rgba(75, 74, 74, 0.549);
    font-size: var(--text-sm);
}

.proposal__project .row .project__brief--col select {
    margin-right: 15px;
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 1;
}

.add__table-row,
#edit-terms-btn,
#edit_assumptions_btn,
#edit_supports_btn,
#edit_scopes_btn {
    background: var(--color-light);
    color: var(--color-base);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 7px;
    padding: 10px 15px;
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add__table-row span:first-child,
#edit-terms-btn span:first-child {
    height: 18px;
    line-height: 18px;
    width: 18px;
    border: 1px solid var(--color-base);
    border-radius: 4px;
    display: inline-block;
    text-align: center;
}

.service-row,
.project__timeline-row,
.project__cost-row,
.payment__schedule-row {
    position: relative;
    transition: background-color 0.3s;
}

.delete-btn {
    display: inline-flex;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: var(--color-red);
    height: 28px;
    width: 28px;
    border-radius: 100%;
    justify-content: center;
    align-items: center;
    font-size: var(--text-base) !important;
    font-weight: 500;
    color: var(--color-white) !important;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.service-row.deletable:hover .delete-btn,
.project__timeline-row.deletable:hover .delete-btn,
.project__cost-row.deletable:hover .delete-btn,
.payment__schedule-row.deletable:hover .delete-btn {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
}

.terms__content {
    border: 1px solid #B5B5B5;
    padding: 25px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.terms__content[contenteditable="true"] {
    border: 1px solid #ced4da;
    background: white;
}

.terms__content p strong {
    font-size: var(--text-md);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-base);
}

.terms__content p:has(strong) {
    margin: 0 0 10px;
    padding: 0;
}

.terms__content p {
    margin: 0 0 20px;
    padding-left: 18px;
    font-size: var(--text-sm);
    color: var(--color-silver-gray);
}

.terms__content ul {
    padding-left: 35px;
    margin-bottom: 20px;
}

.terms__content ul li {
    margin: 0 0 3px;
    font-size: var(--text-sm);
    color: var(--color-silver-gray);
    list-style-type: disc;
}

/*
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
}
*/

.btn__primary {
    background: var(--color-theme-blue);
    color: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn__secondary {
    background: var(--color-light);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--color-silver-gray);
}

.btn__primary:hover,
.btn__secondary:hover {
    background: var(--color-theme-blue);
    color: var(--color-white);
}

input[type="date"] {
    padding-right: 10px !important;
}


/*-------------------------------User management page---------------------------*/
/* .clients-table .table-responsive{
    overflow-y: hidden;
} */
.bdm__table tr td:last-child,
.bdm__table tr th:last-child {
    text-align: center;
}

.sts__active {
    background: rgba(135, 215, 142, 0.302);
    border: 1px solid #74D27E;
    color: #74D27E;
}

.sts__inactive {
    background: rgba(190, 188, 182, 0.2);
    border: 1px solid #71716F;
    color: #5A5A5A;
}

.bdm__table .status-badge {
    width: 74px;
    text-align: center;
}

.tr__action {
    cursor: pointer;
}

.bdm__table tr,
.bdm__table td {
    position: relative;
}

.tr__action--menu {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.11);
    border-radius: 14px;
    overflow: hidden;
    position: absolute;
    right: 15px;
    top: 40px;
    z-index: 1;
    width: 175px;
    transition: all 0.3s ease;
    display: none;
}

.bdm__table tr td:last-child:hover .tr__action+.tr__action--menu {
    display: block;
}

.tr__action--menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.tr__action--menu li:hover {
    background: rgba(233, 237, 247, .81);
}

.tr__action--menu li:last-child {
    border: none;
}

.tr__action--menu li a {
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tr__action--icon {
    width: 22px;
    display: inline-flex;
}

.tr__action--icon img {
    max-width: 100%;
}

.tr__action--icon .switch {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 12px;
}

.tr__action--icon .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tr__action--icon .slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    border: 1.5px solid #000000;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.tr__action--icon .slider-round:before {
    position: absolute;
    content: "";
    height: 6px;
    width: 6px;
    right: 2px;
    bottom: 2.5px;
    border: 1.5px solid #000000;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.tr__action--icon input:checked+.slider-round {
    background-color: rgba(190, 188, 182, 0.4);
    border-color: #bcbbb9;
}

.tr__action--icon input:checked+.slider-round:before {
    -webkit-transform: translateX(-10px);
    -ms-transform: translateX(-10px);
    transform: translateX(-10px);
}


/*----------------------------Add user page----------------------*/
select.form-control {
    appearance: auto;
}

select.form-control option:disabled {
    color: rgba(75, 74, 74, 0.55);
}

.proposal__form select:has(option[value=""]:checked) {
    color: rgba(75, 74, 74, 0.55);
}

/*------------------------------Proposal Composer Admin-------------------------------------*/
.proposal__view-table td a {
    color: var(--color-base);
    text-decoration: underline;

}

.proposal__view-table td a:hover {
    text-decoration-color: transparent;
}

.sts__sent {
    background: rgba(239, 201, 81, 0.2);
    border: 1px solid #FFCE20;
    color: #FFCE20;
}

/*-----------------------------Project Proposal------------------------------*/
.heading__big {
    font-size: var(--text-4xl);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 30px;
}

.proposal__date {
    font-size: var(--text-base);
    font-weight: 500;
    margin: 0 0 20px;
}

.project__proposal h2 {
    margin-bottom: 20px;
}

.project__proposal--block {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    margin: 30px auto;
    max-width: 800px;
    padding: 30px 15px;
}

.project__proposal--block p {
    color: var(--color-dark);
    line-height: 1.9;
    margin: 0 0 15px;
}

.proposal__point--head {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-dark-chocolate);
}

.project__proposal h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-dark-chocolate);
    margin: 25px 0 20px;
}

.project__proposal--block p b {
    display: inline-block;
}

.project__proposal--block ul {
    margin: 15px 0;
    padding-left: 25px;
}

.project__proposal--block ul li {
    margin: 0 0 10px;
    position: relative;
    color: var(--color-dark);
    list-style-type: disc;
}

.project__proposal--block table {
    width: 100%;
}

.project__proposal--block th {
    background-color: #75a5af;
    font-weight: bold;
    color: #3f3f3f;
}

.project__proposal--block th,
.project__proposal--block td {
    border: 1px solid #3f3f3f;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}


/*--------------------------Settings page-------------------------*/
.profile__header {
    padding-bottom: 0 !important;
}

#revenue_graph {
    width: 100%;
    height: 330px;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 450px;
    margin: 35px 0;
}

.profile-image-wrapper {
    position: relative;
    display: flex;
    width: 110px;
    height: 110px;
    flex: none;
    border-radius: 100%;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e0e0e0;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.profile-image-wrapper:hover .camera-overlay {
    opacity: 1;
}

.camera-icon {
    color: white;
    font-size: 24px;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-weight: 500;
    font-size: 16px;
    margin: 0;
}

.profile-id,
.profile-email {
    font-size: 14px;
    color: var(--color-dark);
    color: var(--color-silver-gray);
    font-weight: 500;
    margin: 2px 0;
}

#image_upload {
    display: none;
}

#profile_form input:read-only {
    opacity: 0.6;
}


/*-----------------------------------Proposals---------------------------------*/
.proposals__header {
    justify-content: flex-end;
}

.proposals__block .nav-tabs {
    border: none;
    gap: 15px;
    margin-left: 15px;
}

.proposals__block .nav-link {
    font-size: var(--text-base);
    font-weight: 600;
    color: #B3B3B3;
    padding: 14px 16px;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.proposals__block .nav-link svg path {
    stroke: #B3B3B3;
}

.proposals__block .nav-link.active {
    color: var(--color-blue-smoke);
    border-color: rgba(0, 0, 0, 0.25);
}

.proposals__block .nav-link.active svg path {
    stroke: var(--color-blue-smoke);
}

.proposal-delete {
    display: inline-block;
    margin-left: 15px;
    font-size: var(--text-base);
}

.td_link {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.td_link a {
    height: 30px;
    width: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 100%;
    transition: all 0.3s ease;
}

.td_link a:hover,
.td_link a:focus,
.td_link a:active {
    background: rgba(0, 39, 77, .18);
}

.clients-table .table td .badge {
    font-size: var(--text-sm);
    font-weight: 500;
}

.badge-overdue {
    background: #f4cc52;
}

.badge-draft {
    background: #6c757d;
}

.badge-sent {
    background: #007bff;
}

.badge-paid {
    background: #218d3a;
}

.badge-finalize {
    background: #003d79;
}

.badge-cancel {
    background: #dc3545;
}

/* a[title="Download Invoice"], a[title="View"] {
    color: var(--color-base);
    text-decoration: underline;
} */
 .create-service-invoice table th:first-child, .create-service-invoice table td:first-child {
    width: 38%;
    min-width: 250px;
 }
 .create-service-invoice table th:nth-child(2), .create-service-invoice table td:nth-child(2) {
    width: 12%;
    min-width: 110px;
 }
 .create-service-invoice table th:nth-child(3), .create-service-invoice table td:nth-child(3) {
    width: 15%;
    min-width: 130px;
 }
 .create-service-invoice table th:nth-child(4), .create-service-invoice table td:nth-child(4) {
    width: 10%;
    min-width: 90px;
 }
 .create-service-invoice table th:nth-child(5), .create-service-invoice table td:nth-child(5) {
    min-width: 130px;
 }



@media (max-width: 1400px) {

    /*-----------------------------Dashboard page-------------------------*/
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 1200px) {

    /*-----------------------------Dashboard page-------------------------*/
    .sidebar {
        width: 180px;
        left: 14px;
        padding-left: 0;
    }

    .main-content {
        margin-left: 180px;
        width: calc(100% - 180px);
    }

    .body__wrapper {
        padding-left: 14px;
    }

    .sidebar .nav-item img {
        width: 17px;
    }

    .sidebar .nav-item {
        gap: 4px;
        font-size: var(--text-sm);
    }

    .charts-row {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .stat-card .title h5 {
        font-size: var(--text-base);
        line-height: 1.3;
    }
}


.sidebar-overlay {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
    transition: opacity 0.3s ease;
}



body.no-scroll {
    overflow: hidden;
}

.hamburger-menu {
    display: none;
}


@media (max-width: 991.98px) {

    /*---------------------------Login page----------------------*/
    .login__page--container h1 {
        font-size: var(--text-2xl);
    }

    /*-----------------------------Dashboard page-------------------------*/

    /* .sidebar {
        display: none;
    } */

    .body__wrapper {
        padding: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding-bottom: 30px;
        border-radius: 0;
        height: auto
    }

    /* .mobile-nav {
        display: block;
    } */

    .search-bar input {
        width: 250px;
        font-size: var(--text-base);
        padding: 0 10px 0 30px;
        height: 48px;
        line-height: 48px;
    }

    .search-bar svg {
        left: 10px;
        width: 15px;
        height: 15px;
    }

    .user-menu {
        gap: 10px;
    }

    .notification-btn {
        width: 40px;
        height: 40px;
    }

    .notification-btn img {
        max-width: 20px;
    }

    .dashboard__user {
        gap: 5px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .dashboard__user span {
        font-size: var(--text-xs);
    }

    .heading__main {
        font-size: var(--text-4xl);
    }

    .stat-card strong {
        font-size: var(--text-4xl);
    }


    /*-------------------sidebar responsive--------------------------*/
    .sidebar {
        /* width: 60px; */
        padding: 15px 0px;
        transition: width 0.3s ease;
        background: var(--color-white);
        left: 0;
        top: 90px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 230px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .sidebar .nav-item span {
        display: none;
    }

    .sidebar .has-submenu .submenu-parent span {
        display: none;
    }

    .sidebar .has-submenu .submenu-arrow {
        display: none;
    }

    /* .sidebar .nav-item img {
        margin: 0 auto;
    } */

    /* .sidebar .has-submenu .submenu {
        display: none;
    } */

    /* .sidebar.active {
        width: 220px;
    } */

    .sidebar.active .nav-item span {
        display: inline;
    }

    .sidebar.active .has-submenu .submenu-parent span {
        display: inline;
    }

    .sidebar.active .has-submenu .submenu-arrow {
        display: inline;
    }

    /* .sidebar.active .has-submenu .submenu {
        max-height: 500px;
        display: flex;
        flex-direction: column;
    } */

    /* .main-content {
        padding-left: 60px;
    } */

    .main-content .dashboard__header {
        padding: 0 10px;
    }

    .sidebar__top {
        height: calc(100% - 200px);
    }

    .sidebar__bottom {
        bottom: 90px;
    }

    .hamburger-menu {
        display: block !important;
        /* position: fixed;
        top: 20px;
        left: 20px; */
        position: relative;
        z-index: 1000;
        cursor: pointer;
        font-size: 24px;
        color: var(--color-base);
        margin-top: 8px;
    }

    .hamburger-menu span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--color-base);
        border-radius: 25%;
        transition: all 0.3s ease;
    }

    .hamburger-menu span:nth-child(2) {
        margin: 5px auto;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* .hamburger-menu.active + .sidebar {
        width: 220px;
    } */

    .hamburger-menu.active+.sidebar .nav-item span {
        display: inline;
    }

    .hamburger-menu.active+.sidebar .has-submenu .submenu-parent span {
        display: inline;
    }

    .hamburger-menu.active+.sidebar .has-submenu .submenu-arrow {
        display: inline;
    }

    .hamburger-menu.active+.sidebar .has-submenu .submenu {
        max-height: 500px;
        display: flex;
        flex-direction: column;
    }

    .sidebar .has-submenu:hover .submenu {
        max-height: 0;
    }

    .has-submenu .submenu-parent.active+.submenu {
        transition: max-height .5s ease;
        max-height: 500px;
    }


    .sidebar .has-submenu:hover .submenu-arrow {
        transform: inherit;
    }

    .has-submenu .submenu-parent.active .submenu-arrow {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    .sidebar .nav-item.active {
        background-color: #F2F2F2;
    }


    /*-----------------------settings page--------------------------*/
    .profile-image-wrapper {
        width: 80px;
        height: 80px;
    }


}


@media (max-width: 767.98px) {
    .container {
        max-width: 92%;
        padding: 0;
    }
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu span {
        width: 22px;
        height: 2.5px;
    }

    /*---------------------------Login page----------------------*/
    .login__page--container h1 {
        font-size: var(--text-xl);
    }

    .forget__pass,
    .login__page--form label.label__checkbox {
        font-size: var(--text-sm);
    }

    .btn__theme {
        font-size: var(--text-md);
    }

    /*-----------------------------Dashboard page-------------------------*/
    .hamburger-menu{
        margin-top: 6px;
    }
    .dashboard__header {
        align-items: flex-start;
    }

    .search-bar {
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .dashboard__user span {
        display: none;
    }

    .heading__main {
        font-size: var(--text-2xl);
    }

    .heading__tagline {
        font-size: var(--text-xs);
        margin-top: -6px;
    }

    .dashboard__header {
        position: relative;
        padding: 0 0 70px;
    }

    .search-bar input {
        width: 100%;
    }

    .stat-card strong {
        font-size: var(--text-3xl);
    }

    .charts-row .chart-card:last-child .chart-header {
        align-items: flex-start;
    }

    /*-------------------Proposal page--------------------------*/
    .proposal__main-content {
        padding: 35px 10px;
    }

    /*-------------------------------Project Proposal---------------------------------*/
    .heading__big {
        font-size: var(--text-2xl);
    }

    .heading__secondary {
        font-size: var(--text-md);
    }


    /*-----------------------------------Create invoice------------------------------*/
    /* .create-service-invoice thead{
        display: none;
    }
    .create-service-invoice td{
        display: block;
        padding-left: 130px;
        position: relative;
    }
    .create-service-invoice td::before{
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 15px;
        font-weight: bold;
        color: var(--color-dark);
        font-size: var(--text-sm);
    } */
     .create-service-invoice table .form-control{
        font-size: var(--text-sm);
     }
}


@media (max-width: 576px) {
    
    .container {
        max-width: 96%;
    }

    /*-----------------------------Dashboard page-------------------------*/
    .hamburger-menu{
        margin-top: 4px;
    }
    .heading__main {
        font-size: var(--text-lg);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card .indicator-badge {
        height: 9px;
        width: 9px;
    }

    .chart-card .chart-header {
        flex-direction: column;
        gap: 10px;
    }

    .time-filter {
        overflow-x: auto;
        padding-bottom: 10px;
        width: 100%;
    }

    .stat-card strong {
        font-size: var(--text-mid);
    }

    .filter-btn {
        width: max-content;
    }

    .chart-card .chart-value {
        flex-direction: column;
    }

    .chart-card .chart-header {
        flex-direction: column;
        row-gap: 20px;
    }

    /*----------------------Proposal page------------------*/
    .proposal__project {
        font-size: var(--text-xs);
        line-height: 1.2;
    }

    /*-----------------------settings page--------------------------*/
    .profile-image-wrapper {
        width: 70px;
        height: 70px;
    }

    .clients-table .dropdown-item {
        font-size: var(--text-sm);
    }

    .clients-table .dropdown-item svg {
        margin-right: 5px;
        max-width: 12px;
        max-height: 12px;
    }

    .clients-table .dropdown-menu {
        padding: 5px 0;
        min-width: 135px;
    }

}

@media (max-width: 480px) {

    /*-----------------------------Dashboard page-------------------------*/
    .heading__main {
        font-size: var(--text-base);
    }
    .heading__tagline {
        margin-top: -4px;
        text-align: left;
    }
    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 15px 8px;
    }

    .stat-card .title h5 {
        font-size: var(--text-sm);
    }

    .stat-card strong {
        font-size: var(--text-2xl);
    }

    .search-bar input {
        width: 100%;
        padding: 0 10px 0 30px;
        height: 40px;
        line-height: 40px;
    }

    .search-bar svg {
        left: 10px;
        width: 15px;
        height: 15px;
    }
}



/* .header__main {
    background: transparent;
    padding: 40px 0;
    position: fixed;
    inset-inline: 0;
    top: 0;
    transition: all 0.6s ease;
    z-index: 7;
}

.header__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.menu__bar {
    cursor: pointer;
    z-index: 9;
}

.menu__bar span {
    display: block;
    height: 2px;
    width: 32px;
    background: var(--color-base);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu__bar span:nth-child(2) {
    margin: 8px 0;
}

.menu__bar.menu__close span:nth-child(2) {
    display: none;
}

.menu__bar.menu__close span:first-child {
    transform: rotate(45deg) translate(1px, 6px);
}

.menu__bar.menu__close span:last-child {
    transform: rotate(-45deg) translate(-6px, 0);
}

.navbar__main.show__menu {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
    transition: transform .4s ease-in, opacity .4s ease-in;
}

.navbar__main {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    background: var(--color-theme-light);
    position: fixed;
    inset: 0;
    height: 100vh;
    z-index: 8;
    transition: transform .4s ease-in, opacity .4s ease-in;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transform-origin: top;
}

.menu__list {
    opacity: 0;
    transition: opacity .3s ease-in;
    transition-delay: .4s;
}

.navbar__main.show__menu .menu__list {
    opacity: 1;
}

.menu__list li {
    position: relative;
}

.menu__list li:not(:last-child) {
    padding-bottom: 25px;
}

.menu__list li a {
    font-size: var(--text-xl);
    color: var(--color-theme-dark);
    text-transform: uppercase;
}

.menu__list li a:hover,
.menu__list li a.active {
    color: var(--color-base);
}

.header__main.scrolled .navbar__main {
    position: relative;
    inset: inherit;
    height: auto;
    transform: scale(1, 1);
    opacity: 1;
    background: transparent;
    pointer-events: auto;
}

.header__main.scrolled .menu__list {
    display: flex;
    gap: 20px;
    opacity: 1;
}

.header__main.scrolled .menu__list li {
    padding: 10px 0;
}

.header__main.scrolled .menu__list li a {
    font-size: var(--text-md);
    text-transform: capitalize;
    position: relative;
}

.header__main.scrolled .menu__list li a:hover,
.header__main.scrolled .menu__list li a.active {
    color: var(--color-base);
    font-weight: 500;
}

.header__main.scrolled .menu__list li a::after {
    content: "";
    height: 2px;
    width: 0;
    background: var(--color-base);
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    transition: all 0.3s ease-in;
}

.header__main.scrolled .menu__list li a:hover::after,
.header__main.scrolled .menu__list li a.active::after {
    width: 100%;
    transition: all 0.3s ease-in;
}

.header__main.scrolled .logo img {
    max-width: 100px;
}

.header__main.scrolled {
    padding: 16px 0;
    background: var(--color-theme-light);
}

.header__main.scrolled .menu__bar {
    display: none;
}

.header__main .container{
    position: relative;
}
.header__main .container::before{
    content: "";
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.2);
    transition: all 0.02s ease;
}
.header__main.scrolled .container::before, .header__main.fixed .container::before{
    opacity: 0;
}


.navbar__main.hide-navbar {
    display: none;
}

.header__main.fixed {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, .1);
    background: var(--color-theme-light);
}


.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    max-width: 130px;
    transition: all 0.6s ease;
}
.header__main.scrolled .logo{
    left: inherit;
    transform: inherit;
    position: relative;
}

.sub-menu{
    background: var(--color-theme-dark);
    width: 180px;
    padding: 10px;
    border-radius: 14px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    position: absolute;
    transform: scaleY(0);
    transform-origin: top;
    margin-inline: auto;
    top: 90%;
    z-index: 9;
}
.menu__list li:has(.sub-menu):hover .sub-menu{
    margin-inline: auto;
    transform: scaleY(1);
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu__list li .sub-menu li:not(:last-child){
    padding: 0 0 5px ;
}
.sub-menu li a{
    color: var(--color-white);
}
.header__main.scrolled .sub-menu{
    position: absolute;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
}
.header__main.scrolled .menu__list li:has(.sub-menu):hover .sub-menu{
    position: absolute;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.sub-menu li a:hover, .sub-menu li a.active, .header__main.scrolled .sub-menu li a:hover, .header__main.scrolled .sub-menu li a.active{
    color: var(--color-white);
}
.sub-menu li a::after, .header__main.scrolled .sub-menu li a::after{
    background: var(--color-white);
}
.sub-menu li a:hover::after, .sub-menu li a.active::after, .header__main.scrolled .sub-menu li a:hover::after, .header__main.scrolled .sub-menu li a.active::after{
    background: var(--color-white);
}


.current-menu-item a{
    color: var(--color-base) !important;
    font-weight: 500 !important;
}
.current-menu-item a::after{
    width: 100% !important;
}

.language__selector {
    width: 150px;
    height: 40px;
    flex: none;
    background: rgb(255,255,255,.21);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 30px;
    display: flex;
    position: relative;
}

.language__button {
    flex-grow: 1;
    border-radius: 30px;
    height: 100%;
    position: relative;
    z-index: 0;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-base);
    text-align: center;
    transition: all 0.3s ease;
}

.language__selector::before {
    content: "";
    height: calc(100% - 10px);
    width: 50%;
    background: var(--color-theme-light);
    position: absolute;
    inset: 5px;
    transition: all 0.3s ease;
    border-radius: 30px;
    box-shadow: 0px 1.09px 4.89px 0px rgba(0, 0, 0, 0.129);
}

.language__selector:has(#enButton.active)::before{
    transform: translateX(0);
}
.language__selector:has(#grButton.active)::before{
    transform: translateX(calc(100% - 10px));
} */

.notification-badge {
    background-color: red;
    color: white;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    line-height: 12px;
    text-align: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    display: none;
    /* default hidden */
}

.notification-dropdown {
    position: absolute;
    z-index: 1000;
    width: 320px;
    max-height: 320px;
    background-color: #fff;
    border: 1px solid #ddd;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    will-change: opacity, transform;
}

.notification-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item .font-weight-bold {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.notification-item .text-muted {
    font-size: 13px;
    color: #6c757d;
}

.notification-item small {
    color: #aaa;
}

.notification-item .mark-read {
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
    margin-left: 8px;
}

.notification-item .mark-read:hover {
    text-decoration: underline;
}

/* === Scoped to .bdm__table only === */

/* Wrapper */
.client-status-wrapper {
    display: inline-block;
    position: relative;
}

/* Badge Style */
.client-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 110px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Color Variants */
.client-status-badge.prospect {
    background-color: #e3f2fd;
    color: #1976d2;
}

.client-status-badge.opportunity {
    background-color: #fff8e1;
    color: #f9a825;
}

.client-status-badge.key-account {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Dropdown style */
.client-status-dropdown {
    width: 130px;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 30px;
    border: 1px solid #ced4da;
    outline: none;
    background-color: #fff;
}

/* Hide by default */
.client-status-dropdown.d-none {
    display: none;
}

.stat-card-link {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.stat-card-link:hover .stat-card {
    box-shadow: 0 0px 25px rgb(100, 32, 32, .12);
    transition: all 0.3s ease-in-out;
}

.stat-card-link::after {
    content: "";
    position: absolute;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    top: -1px;
    bottom: -1px;
    left: -1px;
    z-index: 0;
    border-radius: 14px;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    background: rgba(0, 0, 0, .2);
}

.stat-card-link:hover::after {
    opacity: 1;
    transition: all 0.3s ease-in-out;
}