﻿/*.fadeup{
    opacity:0;
    visibility:hidden
}
*/

.validation-message {
    color: red;
}

#apiloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: var(--custom-white);*/
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/*OrderStatus history design start*/

.hh-grayBox {
    margin-bottom: 20px;
    margin-top: 20px;
}

.order-tracking {
    text-align: center;
    width: 33.33%;
    position: relative;
    display: block;
}

    .order-tracking .is-complete {
        display: block;
        position: relative;
        border-radius: 50%;
        height: 10px;
        width: 10px;
        border: 0px solid #AFAFAF;
        background-color: #f7be16;
        margin: 0 auto;
        transition: background 0.25s linear;
        -webkit-transition: background 0.25s linear;
        z-index: 2;
    }

    .order-tracking.completed .is-complete {
        background-color: #27aa80;
    }

    .order-tracking .pending {
        background-color: rgb(132, 135, 134);
    }

    .order-tracking p {
        color: #A4A4A4;
        font-size: 16px;
        margin-top: 8px;
        margin-bottom: 0;
        line-height: 20px;
    }

        .order-tracking p span {
            font-size: 14px;
        }

    .order-tracking.completed p {
        color: #000;
    }

    .order-tracking.cancel p {
        color: rgb(219, 0, 0);
    }

    .order-tracking::before,
    .order-tracking.completed::before {
        content: '';
        display: block;
        height: 3px;
        width: calc(100%);
        background-color: rgb(132, 135, 134);
        top: 4px;
        position: absolute;
        left: calc(-50%);
        z-index: 0;
    }

    .order-tracking.cancel .is-complete {
        background-color: rgb(219, 0, 0) !important;
    }

    .order-tracking:first-child:before {
        display: none;
    }

    .order-tracking.completed:before {
        background-color: #27aa80;
    }
/*.sales-report-card{
    background:red;
}*/
.sales-report-card-body {
    margin: 10px;
    background: #FFF;
    border-bottom: 1px dotted #bdcdcb;
    padding-bottom: 14px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

/*OrderStatus history design end*/



/* For webkit browsers (like Chrome, Safari) */
::-webkit-scrollbar:horizontal {
    width: 20px;
    height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.view-more-btn {
    /* width: 42%;*/
    border-top-left-radius: 20px !important;
    margin-right: 0 !important;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
}

thead.sticky-top th {
    position: sticky;
    top: 0;
    /*background-color: white;*/
    z-index: 2;
}

.no-data-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 460px;
}

.scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}

.card-scroll-body {
    min-height: 414px;
    overflow-y: auto;
    max-height: 414px
}

.card-header-height {
    min-height: 35px;
}
/*.arrow-indicator {
    height: 30px;
    display: flex;*/
/* justify-content: center; */
/*width: 30px;
    border-radius: 50%;
    background: #c45ef6;
    color: #FFF;
    align-items: center;
    position: absolute;
    justify-content: center;
    font-size: 25px;
    right: 0;
    top: 50%;
}*/

.nav.panel-tabs.panel-success a {
    color: #09ad95;
}

    .nav.panel-tabs.panel-success a.active {
        background-color: #a447ea !important;
        color: #fff;
    }

.tabs-menu ul li a {
    padding: 10px 12px 11px 13px;
    display: block;
    color: #282f53;
}

.tabs-menu ul li a {
    border-radius: 7px 7px 0 0;
}

.dashboard-card {
    min-height: 115px;
}

.recommended-tag {
    background-color: #28a745; /* Green background */
    color: white; /* White text */
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px; /* Space between courier name and tag */
}

.ref-select {
    position: relative;
    display: inline-block;
    width: 350px;
}

.ref-selected-item {
    padding: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
    background-color: #fff;
}

.ref-dropdown-menu {
    position: absolute;
    z-index: 999;
    background-color: #fff;
    border: 1px solid #ddd;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.ref-dropdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
}

    .ref-dropdown-item:hover {
        background-color: #f0f0f0;
    }

.ref-selected {
    background-color: #f4f4f4;
}

.ref-selected-item span, .ref-dropdown-item span {
    display: block;
}

[data-theme-mode=dark] .ref-selected {
    background-color: rgb(46 46 50);
}

.ref-dropdown-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

[data-theme-mode=dark] .ref-selected-item {
    border-color: var(--input-border);
    color: var(--default-text-color);
    background-color: var(--form-control-bg);
    font-size: 0.875rem;
    font-weight: var(--default-font-weight);
    line-height: 1.8;
    border-radius: 0.85rem;
}

[data-theme-mode=dark] .ref-dropdown-item:hover {
    background-color: #0d6efd;
    color: #FFF;
}

[data-theme-mode=dark] .ref-dropdown-menu {
    background-color: #202025;
    border: 1px solid #626262;
    border-radius: 10px;
}

.ref-dropdown-menu {
    border-radius: 10px;
}


.amount {
    float: right; /* This will align the amount to the right */
}


.balancesheet-table th, .balancesheet-table td {
    vertical-align: top;
}


.filter-container {
    position: sticky;
    top: 0;
    z-index: 99;
    border: 1px solid;
    border-radius: 0.85rem;
    border-color: var(--input-border);
    padding: 10px;
}

.list-container {
    max-height: 300px; /* Adjust based on your layout needs */
    overflow-y: auto;
    margin-top: 10px;
}



@media (max-width: 991.98px) {
    .main-chart-wrapper.note-wrapper .main-chat-area {
        display: block !important;
    }
}

.main-chart-wrapper.note-wrapper .main-chat-area .chat-content:before {
    display: none;
}

.input-group-select {
    border-top-left-radius: 0rem;
    border-bottom-left-radius: 0rem;
}

/*template view style*/
.screen-container {
    height: 100%;
}

/* wa-chat */

.wa-chat {
    height: calc(100% - 69px);
}

.wa-chat-container {
    height: 100%;
}

.wa-action-btns {
    max-width: 300px;
}

/* Conversation */
.conversation {
    height: calc(100% - 12px);
    position: relative;
    /*    background: #efe7dd url("/assets/images/whatsapp-bg-light.jpeg") repeat;*/
    z-index: 0;
}

.sticky_container {
    position: sticky;
    top: 135px;
    display: flex;
    flex-direction: column;
}

.dark-mode .conversation {
    background: #1a1a3c url(/assets/images/whatsapp-bg-dark.jpeg);
}

.conversation ::-webkit-scrollbar {
    transition: all 0.5s;
    width: 5px;
    height: 1px;
    z-index: 10;
}

.conversation ::-webkit-scrollbar-track {
    background: transparent;
}

.conversation ::-webkit-scrollbar-thumb {
    background: #b3ada7;
}

.conversation .conversation-container {
    height: calc(100% - 68px);
    /*    overflow-x: hidden;*/
    padding: 0 16px;
    margin-bottom: 5px;
}

    .conversation .conversation-container:after {
        content: "";
        display: table;
        clear: both;
    }

/* wa-messages */

.wa-message {
    color: #000;
    clear: both;
    line-height: 18px;
    font-size: 13px;
    padding: 8px;
    position: relative;
    margin: 8px 0;
    max-width: 300px;
    word-wrap: break-word;
    z-index: 2;
}

    .wa-message:after {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        border-style: solid;
    }

.metadata {
    display: inline-block;
    float: right;
    padding: 0 0 0 7px;
    position: relative;
    bottom: -4px;
}

    .metadata .time {
        color: rgba(0, 0, 0, 0.45);
        font-size: 11px;
        display: inline-block;
    }

.wa-message:first-child {
    margin: 16px 0 8px;
}

.wa-message.received {
    background: #fff;
    border-radius: 0px 5px 5px 5px;
    float: left;
    width: 100%;
}

.wa-gallery {
    width: 100%;
    height: 100px;
}

    .wa-gallery img {
        border-radius: 6px;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.wa-message.received .metadata {
    padding: 0 0 0 16px;
}

.wa-message.received:after {
    border-width: 0px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
    top: 0;
    left: -10px;
}

.input-invalid-border {
    border-color: red !important;
}

[data-theme-mode="dark"] .wa-title h6 {
    color: #000 !important;
}

.character-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}


.dashboard-chart {
    max-width: 950px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

    .dashboard-chart .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eaeaea;
    }

        .dashboard-chart .header h1 {
            font-size: 24px;
            color: #444;
            margin: 0;
        }

    .dashboard-chart .date-selector {
        display: flex;
        align-items: center;
        color: #666;
    }

        .dashboard-chart .date-selector select {
            margin-left: 10px;
            padding: 5px 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #f9f9f9;
        }

.metrics {
    /* display: flex;
            justify-content: space-between;
            margin-bottom: 30px; */
    width: 100%;
    height: auto;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
}

.metric-card:first-child {
    border-right: 1px dashed #ccc;
    height: 90%;
}

.metric-card:nth-child(2) {
    border-right: 1px dashed #ccc;
    height: 90%;
}
/* .metric-card:nth-child(3){
            border-right: 1px dashed #ccc;
            height: 90%;
        } */
.metric-card {
    /* flex: 1;
            padding: 15px;
            position: relative;
            border-right: 1px solid #eaeaea; */
}

    .metric-card:last-child {
        border-right: none;
    }

.metric-title {
    width: 100%;
    font-size: 13px;
    color: #565656;
    margin: 0;
}

.metric-value {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

    .metric-value h3 {
        font-size: 31px !important;
        font-weight: 500 !important;
        color: #045ba0;
        margin: 0;
    }

    .metric-value p {
        font-size: 18px !important;
        margin: 0 0 0 5px;
        width: auto;
        display: inline-block;
        color: #333 !important;
        font-size: 12px;
        font-weight: 300 !important;
    }

.lastday_compare {
    padding: 3px 4px !important;
    color: #fff;
    font-size: 11px !important;
    position: relative;
    margin-left: 10px;
    border-radius: 3px;
}

.percentage-badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    margin-left: 10px;
}

.negative {
    background-color: #ff6666;
}
/* .negative:before {
            content: "▼ ";
        } */
.focused-circle {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.focused-text {
    position: absolute;
    text-align: center;
}

.focused-value {
    font-size: 17px;
    font-weight: bold;
    color: #333;
}

.focused-label {
    font-size: 12px;
    color: #888;
}
/* .timeline {
            margin-top: 20px;
        } */
.timeline h2 {
    width: 100%;
    height: auto;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #58666e;
}

#timelineChart {
    width: 100% !important;
    height: 200px !important;
}

#focusedChart {
    height: 100px !important;
    width: 100px !important;
}

canvas {
    width: 100%;
    height: 100px;
}

#working-value {
    color: #1a73e8;
}

#productivity-value {
    color: #81B504;
}

#task-value {
    color: #4285f4;
}


/*Date style*/

.date-picker {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 18px;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .date-picker i {
        cursor: pointer;
        color: #444;
        margin: 0 10px;
    }

.date-text {
    display: flex;
    align-items: center;
}

    .date-text i.fa-calendar {
        margin-right: 8px;
    }

    .date-text span {
        margin-right: 5px;
    }

.task-tabs-container .tab-pane {
    min-height: 0;
    border: 0;
}
.week-navigation .week-navigation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}
.week-navigation-prev {
    left: -42px;
}
.week-navigation-next {
    right: -42px;
   
}
.timeline-nav {
    margin-right: 46px;
    margin-left: 46px;
}

.upcoming-events-list.timeLineList li::before {
    background-color: var(--timeline-color, #ccc) !important;
}


/*.main-content {
    padding: 0 0.5rem;
    background-image: url('/assets/images/main-bg/bodybg.png');
}

[data-theme-mode="dark"] .main-content {
    background-image: unset;
}*/

.stage-history .timeline-widget:before {
    content: "";
    inset-inline-start: 7rem !important;
}

.stage-history .timeline-widget .timeline-widget-list:before {
    content: "";
    inset-inline-start: 6.688rem !important;
}

.subtask-container {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

    /* Expanded state */
    .subtask-container.expanded {
        opacity: 1;
        max-height: 1000px; /* Large enough to fit multiple rows */
    }

.swal2-container {
    z-index: 20000 !important; /* Higher than Bootstrap's 1055-1060 */
}

.nested-task-list-card:before {
    position: absolute;
    content: "";
    width: 0.125rem;
    height: 100%;
    background-color: var(--default-border);
    inset-block-start: 0;
    inset-inline-start: 3rem;
}

.nested-task-list-card li:before {
    content: "";
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    inset-inline-start: 2.688rem;
    top: 0.25rem;
    border-radius: 3.125rem;
    border: 0.125rem solid var(--default-border);
    background-color: var(--custom-white);
}
.main-chat-area.tasknote-Wrapper {
    height: unset !important;
}
.main-chat-area.tasknote-Wrapper .chat-content {
    margin-bottom: 31px;
}
    .main-chat-area.tasknote-Wrapper .chat-footer {
        height: unset !important;
        padding: 10px 24px;
        position:relative !important;
    }

.ql-editor {
    max-height: 100px !important;
    overflow-y: auto !important;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 8px;
}
[data-theme-mode="dark"] .ql-custom i {
    color: #FFF;
}

.ql-btn.ql-active {
    background-color: #e0e0e0 !important;
    color: #000 !important;
}

.ql-btn:hover {
    background-color: #f0f0f0 !important;
}

[data-theme-mode="dark"] .ql-btn.ql-active {
    background-color: #424242 !important;
    color: #fff !important;
}

[data-theme-mode="dark"] .ql-btn:hover {
    background-color: #616161 !important;
}

/*  Task Note */
.note-menu {
    display: none;
    z-index: 2;
    position: relative; 
}

/* Invisible hover buffer around the icon */
.note-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -8px;
    right: -8px;
}

/* Keep visible when hovering anywhere on the note or menu */
.hover-enabled:hover .note-menu,
.hover-enabled .note-menu:hover,
.hover-enabled .dropdown-menu:hover {
    display: block;
}

.note-menu i {
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.note-menu i:hover {
    opacity: 1;
}


input[type="file"]::-webkit-file-upload-button {
    color: white;
}

input[type="file"]::file-selector-button {
    color: white;
}

.dim-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}


/* Highlight animation */
/*@keyframes highlightFade {
    0% {
        background-color: #ffe066;
    }

    100% {
        background-color: transparent;
    }
}

.animate-highlight {
    animation: highlightFade 1s ease;
}*/

@keyframes highlight {
    0% {
        box-shadow: 0 0 0px rgba(0,123,255,0);
    }

    50% {
        box-shadow: 0 0 20px rgba(0,123,255,0.8);
    }

    100% {
        box-shadow: 0 0 0px rgba(0,123,255,0);
    }
}

.animate-highlight {
    animation: highlight 1.5s ease-in-out;
    border-radius: 8px; 
}

.custom-field-card {
    border: 1px solid var(--default-border) !important;
    box-shadow:none !important;
}




#searchModal {
    z-index: 1080 !important; /* Bootstrap modal default is 1055, offcanvas is 1045 */
}

#offcanvasRight {
    z-index: 1045 !important;
}



.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 13.6px;
}

.lead-heading {
    font-family: var(--default-font-family);
    color: #000;
    font-size: 15.2px;
    font-style: normal;
    font-weight: 500;
    line-height: 22.8px; /* 150% */
    text-transform: capitalize;
}

.drop-down {
    color: #FFF;
    text-align: center;
    font-family: var(--default-font-family);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 150% */
}

.lead-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .lead-item:last-child {
        border-bottom: none;
    }

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

    .icon-box.blue {
        background-color: #4361ee;
    }

    .icon-box.cyan {
        background-color: #22d3ee;
    }

    .icon-box.teal {
        background-color: #14b8a6;
    }

    .icon-box.orange {
        background-color: #f59e0b;
    }

    .icon-box.red {
        background-color: #ef4444;
    }

    .icon-box.green {
        background-color: #10b981;
    }

    .icon-box.dark-red {
        background-color: #dc2626;
    }

.lead-label {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    font-family: var(--default-font-family);
}

.lead-total {
    color: #000;
    text-align: right;
    font-family: var(--default-font-family);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.lead-count {
    color: rgba(0, 0, 0, 0.6);
    text-align: right;
    font-family: var(--default-font-family);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.custom-tab-button {
    background-color: var(--default-body-bg-color) !important;
    color: var(--default-text-color) !important;
}

.custom-tab-button:hover,
.custom-tab-button.active {
    background-color: var(--primary-color) !important;
}
/* Remove the generic rule without attribute selector */
[data-theme-mode="light"] .dashboard-icon {
    color: black !important;
}

