:root {
    --theme-color: #244e7d;
    --sec-color: #581211;
}

.tx-main {
    color: var(--theme-color);
}

.tx-sec {
    color: var(--sec-color);
}

.bg-main {
    background: var(--theme-color);
}

.bg-sec {
    background: var(--sec-color);
}

.bg-light-blue {
    background-color: #a9d1ffc6;
}

.tx-color-04 {
    color: #333333;
}

input.error {
    border: 1px solid red;
}

label.error {
    color: red;
}

.wd-15 {
    width: 15px;
}

.ht-15 {
    height: 15px;
}

.form-group {
    position: relative;
}

.switch {
    display: inline-block;
    position: relative;
    width: 40px;
    height: 18px;
    border-radius: 20px;
    background: #c9c9c9;
    transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    cursor: pointer;
}

.switch::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fafafa;
    border-radius: 50%;
    transition:
        left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch:active::before {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.28),
        0 0 0 20px rgba(128, 128, 128, 0.1);
}

input:checked + .switch {
    background: #3ab795;
}

.bg-sucess-badge {
    background-color: #cee7d9;
    color: #075228;
}

input:checked + .switch::before {
    left: 22px;
    background: #fff;
}

input:checked + .switch:active::before {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.28),
        0 0 0 20px rgba(0, 150, 136, 0.2);
}

/* header */

.navbar-header {
    border-bottom: 1px solid rgba(72, 94, 144, 0.16);
}

.navbar-header .navbar-right .dropdown-notification .dropdown-menu::before,
.navbar-header .navbar-right .dropdown-message .dropdown-menu::before {
    opacity: initial;
}

.navbar-header .navbar-right .dropdown-notification .dropdown-menu,
.navbar-header .navbar-right .dropdown-message .dropdown-menu {
    margin-top: 19.5px;
}

.dropdown-profile .dropdown-menu::before {
    opacity: initial;
}

.dropdown-profile .dropdown-menu {
    margin-top: 14.5px;
}

.bootstrap-growl .close {
    position: absolute;
    right: 10px;
    color: #000;
    font-size: 16px;
}

.content-search {
    width: initial;
}

.navbar-header .navbar-right {
    gap: 12px;
}

.modalForm {
    width: 100%;
}

.container {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 0;
    max-width: 100% !important;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

/* custom tab */

/* .nav-custom-tab{
    border-bottom: none;
} */
.nav-custom-tab .nav-link.active {
    color: #000;
    border-bottom: 1px solid #000;
    font-weight: 600;
}

.nav-custom-tab .nav-link {
    background: transparent;
    border: none;
    font-size: 15px;
}

.nav-custom-tab .nav-link:hover,
.nav-custom-tab .nav-link:focus {
    background: none;
}

.broker-d-table th,
.broker-d-table td {
    white-space: nowrap;
}

.nav-aside img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

.nav-aside .nav-item ul a {
    margin-left: 5px;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-detail {
    position: relative;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.aside-logo img {
    max-width: 101px;
}

.log-logo img {
    max-width: 200px;
}

.product-img {
    width: 90px;
    height: 90px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: var(--bs-modal-width);
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .navbar-header .navbar-right .dropdown-notification .dropdown-menu,
    .navbar-header .navbar-right .dropdown-message .dropdown-menu {
        margin-top: 17.5px;
    }

    .dropdown-message .dropdown-link svg,
    .dropdown-notification .dropdown-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 1199px) {
    .navbar-search-header .form-control {
        padding-left: 48px;
    }
}

.table-hover.cust-table tbody tr:hover {
    background: #f7f7f7;
}

.table.cust-table {
    --bs-table-hover-bg: #f7f7f7;
}

.table.cust-table tr td,
.table.cust-table tr th {
    vertical-align: middle;
}

.pointer {
    cursor: pointer;
}

.wd-fit {
    width: fit-content;
}

.ht-fit {
    height: fit-content;
}

.right-modal .modal-dialog {
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
}

.right-modal .modal-dialog .modalForm,
.right-modal .modal-dialog .modal-content {
    height: 100%;
}

.right-modal .modal-dialog {
    margin-right: 0;
}

.bg-yellow {
    background-color: #f19c00 !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 58%;
}

.cust-pd-label {
    padding: 2px 8px;
}

.select2 .select2-selection__rendered {
    margin-bottom: 0;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered {
    display: inline-block;
}

.panso-btn-outline-success {
    --bs-btn-color: #3ab795;  
    --bs-btn-border-color: #3ab795;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1c524d;
    --bs-btn-hover-border-color: #1c524d;
    --bs-btn-focus-shadow-rgb: 12, 136, 66;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1c524d;
    --bs-btn-active-border-color: #1c524d;
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: #3ab795;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3ab795;
    --bs-gradient: none;
}

.panso-btn-outline-success:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}

.tooltip.cust-tooltip {
    position: relative;

    display: inline-block;

    opacity: 1;

    font-size: 17px;

    cursor: pointer;

    z-index: 1;

    padding: 0;
}

.tooltip.cust-tooltip .tooltiptext {
    visibility: hidden;

    width: 250px;

    background-color: black;

    color: #fff;

    text-align: start;

    border-radius: 6px;

    padding: 5px 14px;

    position: absolute;

    z-index: 1;

    top: 50%;

    left: 110%;

    transform: translateY(-50%);

    font-size: 12px;
}

.cust-tooltip.center-top .tooltiptext {
    width: 210px;
    top: -30px;
    left: -135px;
    text-align: center;
}

.tooltip.cust-tooltip .tooltiptext::after {
    content: "";

    position: absolute;

    top: 50%;

    right: 100%;

    margin-top: -5px;

    border-width: 5px;

    border-style: solid;

    border-color: transparent black transparent transparent;
}

.noafter.cust-tooltip .tooltiptext::after {
    content: none;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.custom-tab .nav-link.active {
    color: var(--theme-color);
    border: none;
    border-radius: 0;
    font-weight: 600;
    border-bottom: 2px solid var(--theme-color);
}

.custom-tab .nav-link {
    color: var(--dark-color);
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.custom-tab .nav-link:hover,
.custom-tab .nav-link:focus {
    background-color: transparent;
    color: var(--theme-color);
}

.notification-card.read,
.notification-card.read:hover {
    background: #fff;
    cursor: auto;
}

.notification-card.read .notif-message-read {
    display: none !important;
}

.notification-card.unread {
    background: #0c88421c;
    cursor: pointer;
}

.dropdown-message .dropdown-item,
.dropdown-notification .dropdown-item {
    margin: 0;
}

.btn-outline-dark:hover h6,
.btn-outline-dark.show h6 {
    color: #fff;
}

.autocomplete-suggestions {
    position: static !important;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: none;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:hover {
    background-color: #f1f1f1;
}

.full-select .select2-container {
    width: 100% !important;
}

/* opening hours */
.opening-hours-items {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid rgba(16, 25, 40, 0.1);
}

.opening-hours-items:last-of-type {
    border-bottom: none !important;
}

.summary-item {
    padding: 0 1rem;
    text-align: left;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--theme-color);
}

/* --- Table Grid Styles (Updated) --- */
.table-custom {
    border-collapse: collapse;
    width: 100%;
}

.table-custom th,
.table-custom td {
    border: 1px solid #000;
}

/* --- Content Styles (from previous step) --- */
.specialization {
    font-size: 0.85rem;
    color: var(--theme-color);
}

.pending-count-cell {
    color: var(--sec-color);
    font-weight: 500;
}

/* Adjusting alignment for numerical columns */
.col-total,
.col-pending,
.col-completed {
    text-align: right !important;
}

.col-doctor {
    width: 35%;
}

.col-total,
.col-pending,
.col-completed {
    width: 20%;
}

.card-h {
    height: 60vh;
    overflow: auto;
    scrollbar-width: thin;
}

.no-found-h {
    height: 90%;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.no-found-b {
    height: 90%;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.setting .bootstrap-tagsinput {
    width: 100%;
}

.h-90 {
    height: 90%;
}

.section-404 .image-404 {
    text-align: center;
}

.section-404 .image-404 img {
    width: 25%;
}

@media (max-width: 1460px) {
    .section-404 .image-404 img {
        width: 40%;
    }
}

@media (max-width: 991px) {
    .section-404 .image-404 img {
        width: 50%;
    }
}

@media (max-width: 575px) {
    .section-404 .image-404 img {
        width: 70%;
    }
}

.section-404 .contain-404 {
    width: 50%;
    text-align: center;
    margin: calc(20px + (45 - 20) * ((100vw - 320px) / (1920 - 320))) auto 0;
    font-family: "Public Sans", sans-serif;
}

@media (max-width: 1660px) {
    .section-404 .contain-404 {
        width: 60%;
    }
}

@media (max-width: 1199px) {
    .section-404 .contain-404 {
        width: 80%;
    }
}

@media (max-width: 767px) {
    .section-404 .contain-404 {
        width: 100%;
    }
}

.section-404 .contain-404 h3 {
    font-size: calc(14px + (18 - 14) * ((100vw - 320px) / (1920 - 320)));
    line-height: 1.5;
    font-weight: 400;
}

.section-404 .contain-404 button {
    margin-top: calc(16px + (24 - 16) * ((100vw - 320px) / (1920 - 320)));
}

.btn-thm {
    color: #fff;
    font-weight: 600;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
    white-space: nowrap;
    background-color: transparent;
    line-height: 1;
    border: 1px solid var(--theme-color);
    margin: 0;
    background-color: var(--theme-color);
    color: #fff;
}

.breadscrumb-contain.error-label-center {
    text-align: center;
}

/* rite side chat css */

.right-side-chat .right-text {
    display: flex;
    justify-content: end !important;
    text-align: end !important;
    width: 70% !important;
    margin-bottom: 40px;
}

.chat .chat-sidebar-body {
    overflow-y: auto;
    overflow-x: hidden;
    bottom: 0 !important;
}

.chat .chat-content-body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* .right-side-chat .right-text .media-body {
    flex: unset;
} */

.right-side-chat .right-text .avatar img {
    height: 32px !important;
    width: 32px !important;
}

.right-side-chat .right-main {
    display: flex;
    justify-content: end;
}

.right-side-chat .left-main {
    display: flex;
    justify-content: start;
}

.right-side-chat .media {
    width: 70%;
}

.chat-group .media-body {
    margin-bottom: 10px;
    margin-right: 20px;
}

.circle-button {
    width: 40px;
    height: 40px;
    background-color: #0b2a60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.circle-button i {
    color: white;
    font-size: 20px;
}

.app-chat .dashboard {
    all: unset !important;
}

.app-chat {
    overflow: hidden;
}

.ai_chat_session_append .media {
    width: 100% !important;
}

.chat-w {
    width: 22px !important;
    height: 22px !important;
}

.chat-textarea {
    width: 100%;
    min-height: 40px;
    /* Default height */
    max-height: 350px;
    /* Maximum height before scrolling */
    overflow-y: hidden;
    /* Hide scrollbar initially */
    resize: none;
    /* Disable manual resize */
    border: none;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.content .content-body {
    overflow-y: hidden;
}

.chat-container {
    max-height: 100vh;
    overflow-y: auto;
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-content {
    flex-grow: 1;
    overflow-y: hidden;
}

.chat-textarea {
    max-height: 150px;
    overflow-y: auto;
}

.square-box {
    background-color: white;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.chat-content .custom .col-md-4 {
    padding: 15px;
}

.chat-content .custom .col-md-2 {
    padding: 5px;
}

.chat-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    background-color: #fff;
    width: 600px;
    /* Reduced width */
    margin: 15px auto;
    /* Centers the box horizontally */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Optional shadow for a better look */
}

.chat-container input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px;
}

.chat-container .upload-btn {
    border: none;
    background: none;
    margin-right: 10px;
    cursor: pointer;
}

.chat-container .send-btn {
    border: none;
    background: #184c46;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
}

.ui-menu-item .contract-copy-sug div span:first-child {
    font-size: 12px;
    display: block;
}

.ui-menu-item .contract-copy-sug div span:nth-child(2) {
    font-size: 18px;
    display: block;
}

.ui-menu-item .contract-copy-sug div span:nth-child(3) {
    font-size: 14px;
}

.ui-menu-item .contract-copy-sug .flex {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.ui-menu-item .contract-copy-sug {
    border-bottom: 1px solid black;
}

/* .ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
    border: 1px solid var(--dark) !important;
    background: var(--dark) !important;
    font-weight: normal;
    color: #ffffff;
} */

.ui-menu:hover {
    color: black !important;
}

.ht-30 {
    height: 30px;
}

.wd-30 {
    width: 30px;
}

.home-chat-2 {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
}

/* Ensuring consistent box size */
.home-chat-2 .col-md-2 {
    flex: 0 0 auto !important;
    padding: 0 8px;
    width: 150px;
    height: 150px;
}

.home-chat-2 .col-md-2 .square-box img {
    width: 80%;
}

/* Responsive wrapping for tablets and below */
@media (max-width: 992px) {
    .home-chat-2 .col-md-2 {
        width: 33.3333% !important;
        /* 3 per row on tablets */
    }
}

@media (max-width: 768px) {
    .home-chat-2 .col-md-2 {
        width: 50% !important;
        /* 2 per row on mobile */
    }
}

@media (max-width: 480px) {
    .home-chat-2 .col-md-2 {
        width: 100% !important;
        /* 1 per row on very small screens */
    }
}

/* Keep square box height fixed */
.home-chat-2 .square-box {
    height: 150px !important;
    width: 100% !important;
    /* Makes it full width inside its column */
}

.app-chat .dashboard {
    all: unset !important;
}

.app-chat {
    overflow: hidden;
}

.team-tab .nav-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.team-tab .nav-item {
    width: max-content !important;
}

.team-tab .nav-link {
    padding: 10px 20px;
    border: none;
    color: #a5a5a5;
    text-decoration: none;
    font-weight: 500;
    width: max-content;
    background-color: transparent;
}

.team-tab .nav-tabs.flex-column {
    border-right: none !important;
}

.team-tab .nav-link.active {
    color: #007bff;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #007bff !important;
}

.team-tab .nav-link:hover {
    color: #007bff;
}

.input-close {
    position: absolute;
    right: 5px;
    padding: 5px;
    top: 15%;
}

.input-close i {
    color: #b2bec1;
    cursor: pointer;
}

.profile-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.tx-color-03 {
    color: #303030;
}

.ui-widget.ui-widget-content {
    max-height: 200px !important;
    overflow-y: scroll !important;
    scrollbar-width: thin !important;
}

.select2-container {
    width: -webkit-fill-available !important;
}

.input-icon {
    position: absolute;
    top: 7px;
    color: rgb(0, 0, 0);
    right: 7px;
    cursor: pointer;
    background: white;
    padding-left: 5px;
}

/* Styling the input-lock icon as a square */
.input-lock {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    border: 1px solid gray;

    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-lock.locked {
    background-color: #f44336;
}

.input-lock.unlocked {
    border: 1px solid black;
}

.input-lock i {
    color: #fff;
    font-size: 14px;
}

/* Close icon styling */
.close-icon i {
    color: #000000;
    font-size: 16px;
    cursor: pointer;
    line-height: 0 !important;
}
.close-icon {
    line-height: 0 !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.product-row {
    display: grid;
    grid-template-columns:
        2fr 2fr 2fr 2fr 2fr
        140px
        auto;
    gap: 6px;
}

.readonly-dropdown {
    pointer-events: none;
    background-color: #e9ecef;
    color: #6c757d;
}
/* Tablet */
@media (max-width: 1200px) {
    .product-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .product-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-row {
        grid-template-columns: 1fr;
    }
}
.product-row .form-group {
    margin-bottom: 0 !important;
}
.lock img {
    filter: invert(32%) sepia(98%) saturate(500%) hue-rotate(200deg) !important;
}
.lock {
    border-color: #0836ce;
}
.content .content-body {
    overflow-y: visible !important;
}

/* task design */

.TabChange {
    max-width: 200px;
    cursor: pointer;
}

.pd-label-1 {
    padding: 2px 10px 2px;
}

.No-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

.no-data-icon i {
    font-size: 80px;
    opacity: 0.4;
    margin-bottom: 15px;
}

.no-task-title {
    margin-bottom: 0;
    font-size: 20px;
    color: #808080;
    text-align: center;
}

.single_task_status label {
    padding: 5px 10px;
    white-space: nowrap;
}
.TaskInfolist {
    gap: 20px;
    margin-bottom: 15px;
}
.TaskInfolist p {
    width: 50%;
}
.tx-color-03 {
    color: #8392a5;
}
.activity-box-icon {
    position: absolute;
    left: -36px;
    top: -3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.TaskDetails .alert {
    padding: 5px 15px;
}
.activity-box {
    position: relative;
}
.profile-tags .bootstrap-tagsinput .tag {
    color: #000;
    border-radius: 5px;
    background: #e3e3e3;
    padding: 4px 8px;
    margin: 5px 5px 5px 0;
}
.bootstrap-tagsinput .tag {
    display: inline-flex;
    align-items: center;
}
.profile-tags .badge {
    font-size: 14px;
    padding: 5px 10px !important;
}
.shadow1:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s linear;}
.home-chat-2 .col-md-2 .square-box img {
  fill: #0b2a60;
}
.home-chat-2 .col-md-2 .square-box img  {
  filter: brightness(0) saturate(100%) hue-rotate(210deg); 
}
.chat-card-container.home-chat-2 .col-md-2 .square-box p {
    line-height: 2.6;
}