html,
body {
    height: 100%;
    /* font-family: "Open Sans", sans-serif !important; */
    /*font-family: 'News Cycle', sans-serif !important;*/
    /*ARP-1494*/
    font-size: 16px !important;
}

a:hover {
    cursor: pointer;
}

.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.steper-import a {
    text-decoration: none;
    cursor: pointer;
    color: black;
}

select.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
}

.btn-full {
    width: 100%;
}

.filters-table tr>td {
    padding-top: 10px;
    padding-left: 5px;
}

.btn.sharp {
    border-radius: 0;
}

.overlay {
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 2000;
}

.loader-text {
    color: #ddc1b8;
    position: fixed;
    top: 50%;
    width: 100%;
    text-align: center;
    padding-left: 50px;
    padding-top: 50px;
    /*left: 50%;*/
    z-index: 3000;
}

.loader-circle1 {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 3000;
    background-color: rgba(255, 255, 255, 0.9);
    border: 5px solid #ddc1b8;
    opacity: .9;
    border-top: 5px solid rgba(0, 0, 0, 0);
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    -webkit-box-shadow: 0 0 35px #ddc1b8;
            box-shadow: 0 0 35px #ddc1b8;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    -webkit-animation: spin .5s infinite linear;
            animation: spin .5s infinite linear;
}

.loader-circle2 {
    position: fixed;

    top: 50%;
    left: 50%;
    z-index: 3000;
    background-color: rgba(255, 255, 255, 0.9);
    border: 5px solid #ddc1b8;
    opacity: .9;
    border-top: 5px solid rgba(0, 0, 0, 0);
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    -webkit-box-shadow: 0 0 15px #ddc1b8;
            box-shadow: 0 0 15px #ddc1b8;
    width: 30px;
    height: 30px;
    margin: 10px;
    -webkit-animation: spinoff .5s infinite linear;
            animation: spinoff .5s infinite linear;
}

.overlay-inline {
    position: absolute;
    height: 100%;
    width: 99%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 2000;
}

.loader-text-inline {
    color: #ddc1b8;
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    padding-left: 50px;
    padding-top: 50px;
    /*left: 50%;*/
    z-index: 3000;
}

.loader-circle1-inline {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3000;
    background-color: rgba(255, 255, 255, 0.9);
    border: 5px solid #ddc1b8;
    opacity: .9;
    border-top: 5px solid rgba(0, 0, 0, 0);
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    -webkit-box-shadow: 0 0 35px #ddc1b8;
            box-shadow: 0 0 35px #ddc1b8;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    -webkit-animation: spin .5s infinite linear;
            animation: spin .5s infinite linear;
}

.loader-circle2-inline {
    position: absolute;

    top: 50%;
    left: 50%;
    z-index: 3000;
    background-color: rgba(255, 255, 255, 0.9);
    border: 5px solid #ddc1b8;
    opacity: .9;
    border-top: 5px solid rgba(0, 0, 0, 0);
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    -webkit-box-shadow: 0 0 15px #ddc1b8;
            box-shadow: 0 0 15px #ddc1b8;
    width: 30px;
    height: 30px;
    margin: 10px;
    -webkit-animation: spinoff .5s infinite linear;
            animation: spinoff .5s infinite linear;
}

@-webkit-keyframes spin {
    0% {
       -webkit-transform: rotate(0deg);
               transform: rotate(0deg);
    }

    100% {
       -webkit-transform: rotate(360deg);
               transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
       -webkit-transform: rotate(0deg);
               transform: rotate(0deg);
    }

    100% {
       -webkit-transform: rotate(360deg);
               transform: rotate(360deg);
    }
}

@-webkit-keyframes spinoff {
    0% {
       -webkit-transform: rotate(0deg);
               transform: rotate(0deg);
    }

    100% {
       -webkit-transform: rotate(-360deg);
               transform: rotate(-360deg);
    }
}

@keyframes spinoff {
    0% {
       -webkit-transform: rotate(0deg);
               transform: rotate(0deg);
    }

    100% {
       -webkit-transform: rotate(-360deg);
               transform: rotate(-360deg);
    }
}

.payment-hr {
    border-top: 1px solid rgba(67, 108, 108, 0.58);
}

.dashboard-num-align {

    text-align: right;
}

.btn-huge {
    padding-top: 20px;
    padding-bottom: 20px;
}

.btn-arproactive {
    margin: 5px;
    color: #fff;
    background-color: rgba(160, 160, 159, 1);
    border-color: rgba(160, 160, 159, 1);
}

.btn.btn-arproactive :hover {
    color: darkgrey;
    background-color: rgba(204, 204, 204, 1);
    border-color: rgba(204, 204, 204, 1);
}

.btn-arproactive-new {
    color: #fff;
    background-color: rgba(160, 160, 159, 1);
    border-color: rgba(160, 160, 159, 1);
}

.btn.btn-arproactive-new :hover {
    color: darkgrey;
    background-color: rgba(204, 204, 204, 1);
    border-color: rgba(204, 204, 204, 1);
}

#breadcrumbs {
    margin: 0;
}

#breadcrumbs h1,
h1>a {
    color: red;
}

.change-pass-invalid {
    text-align: center;
    font-size: 14px;
    color: red;
}

#breadcrumbs h1,
h1>a :hover {
    color: red;
}

table {
    width: 100%;
}

#wrap {
    min-height: 100%;
}

#main {
    overflow: auto;
    padding-bottom: 97px;
    /* this needs to be bigger than footer height*/
}

.invalidData {
    color: red;
}

.smallTable {
    font-size: 12px;
}

.footer {
    text-align: center;
    position: relative;
    margin-top: -97px;
    /* negative value of footer height */
    height: 97px;
    clear: both;
    padding-top: 20px;
}

#footer-info {
    vertical-align: middle;
    text-align: center;
    min-height: 100%;
    background-color: darkgrey;
    color: white;
}

.company-name {
    margin-top: 2%;
}

.container-full {
    margin: 0 auto;
    width: 100%;
}

.navbar-collapse .navbar-nav>li>a {
    color: darkgrey;
    /*Change active text color here*/
    text-transform: uppercase;
}

.create-user-frm {
    width: 100%;
}

.upload-info {
    margin-bottom: 30px;
}

.upload-info ul>li {
    margin-bottom: 10px;
}

.upload-frms tr>td {
    padding-bottom: 5px;
}

.accounts-filters {
    padding-left: 10%;
}

.accounts-filters select {
    width: 100%;
}

.accounts-filters .row {
    margin-bottom: 10px;
}

.patient-info .row label {
    font-size: 10px;
}

.patient-info .row label {
    font-size: 10px;
}

.patient-info .table-striped {
    margin-top: 35px;
}

.patient-info .table-striped {
    margin-top: 35px;
}

.payment-method {
    list-style-type: none;
    padding-left: 0px;
}

.payment-method li {
    margin-top: 5px;
}

#ach-info {
    margin-top: 25px;
}

.patient-detail-btns {
    margin-bottom: 5px;
}

.head-userinfo {
    color: darkgrey;
}

.head-userinfo div>a {
    color: darkgrey;
}

.table-paggination {
    text-align: center;
    vertical-align: middle;
}

.table-paggination .items-perpage {
    margin: 20px 0;
    float: right;
}

.table-paggination .download-btn {
    margin: 20px 0;
    float: left;
}

.clickable-td :hover {
    cursor: hand;
}

.horizontal-separator-bold {
    border-top: 2px solid darkgrey;
    padding-top: 30px;
}

.bordered-bottom {
    border-bottom: solid 1px darkgray;
}

.dashboard-summary th {
    text-align: center;
    padding: 10px;
    background-color: #efefef;
}

.dashboard-summary tr>td>p {
    padding-left: 15px;
}

.dashboard-block-heading {
    color: red;
    font-weight: bold;
}

.subrow {
    font-size: 12px;
}

.subrow td>p {
    padding-left: 30px;
}

.dashboard-summary .total-td {
    border-right: 2px solid darkgray;
}

.dashboard-summary tr>td,
th {
    padding: 15px;
}

.notify_agency .row {
    margin: 20px;
}

.notify_agency .radio-label {
    padding-top: 25px;
}

.notify_agency input[type="radio"] {
    margin-right: 7px;
}

.notify_agency #select-reason {
    margin-top: 20px;
}

.searchBox {
    margin-bottom: 20px;
}

.support-textarea {
    height: 185px;
    min-height: 185px;
    max-height: 185px;
}

.preloader {
    padding: 50px;
    background: url('../img/preloader.gif') no-repeat 50% 50% transparent;
}

.navbar-brand {
    color: black;
    float: left;
    height: 30px;
    padding: 10px 15px;
    font-size: 35px;
    line-height: 20px;
}

.navbar-header span.sub-head {
    color: red;
    text-transform: uppercase;
    float: right;
}

.navbar-header .company-spec {
    margin-right: 20px;
}

.spacer {
    margin-bottom: 40px;
}

.table-scroll {
    max-height: 240px;
    overflow: auto;
}

.ar-table tr {
    cursor: pointer
}

.navbar-collapse .navbar-nav>li>a.active {
    border-bottom: 3px solid red;
    color: red;
}

.pagination>li>a {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: grey;
    text-decoration: none;
    background-color: #fff;
    border: none;
}

.pagination>.active>a,
.pagination>.active>a:focus,
.pagination>.active>a:hover,
.pagination>.active>span,
.pagination>.active>span:focus,
.pagination>.active>span:hover {
    z-index: 2;
    color: grey;
    cursor: default;
    background-color: transparent;
    border-color: transparent;
    border-bottom: 2px solid red;
}

.pagination>li>a:focus,
.pagination>li>a:hover,
.pagination>li>span:focus,
.pagination>li>span:hover {
    z-index: 3;
    color: red;
    background-color: #eee;
    border-color: #ddd;
}

.dashboard-period>a.active {
    color: red;
    border-bottom: 1px solid red;
}

.dashboard-num-align>b>span {
    cursor: pointer;
}

.dashboard-num-align>span {
    cursor: pointer;
}

.dotted-underline {
    border-bottom: 2px dotted;
    cursor: pointer;
    font-weight: bold;
}

.btn-xl {
    padding: 20px 32px;
    font-size: 36px;
    line-height: 1.3333333;
}

.ar-big-checkbox {
    height: 20px;
    width: 20px;
    margin-left: -25px !important;
}

.ar-big-checkbox-simple {
    height: 20px;
    width: 20px;
}

.ar-big-radio {
    height: 20px;
    width: 20px;
    margin-left: -25px !important;
}


/*******    dropdown-submenu begin   *****/
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    border-radius: 6px 0 6px 6px;
}

.dropdown-submenu>ul>li>div.dropdown-submenu-content:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;

}

/*******    dropdown-submenu end   *****/

.list-style-none {
    list-style: none;
}

.disabled {
    color: currentColor;
    cursor: default;
    /*opacity: 0.5;*/
    text-decoration: none;
}

.disabled>a {
    cursor: default !important;
}

.btn-group-dropdown>.dropdown-menu {
    top: 85%;
}

.panel-grey {
    background-color: #F7F6F6;
    color: grey;
    border-color: #ddd;
}

.panel-heading-grey {
    padding-top: 3px;
    text-transform: uppercase;
    font-size: 20px;
    color: white;
    background-color: darkgray;
    text-align: center;
}

.has-float-label .form-control:-moz-placeholder-shown:not(:focus)+* {
    font-size: 14px;
    line-height: 1.72857143;
    color: #555;
    font-family: Arial, FontAwesome;
    pointer-events: none;
}

.has-float-label .form-control:-ms-input-placeholder:not(:focus)+* {
    font-size: 14px;
    line-height: 1.72857143;
    color: #555;
    font-family: Arial, FontAwesome;
    pointer-events: none;
}

.has-float-label .form-control:placeholder-shown:not(:focus)+* {
    font-size: 14px;
    line-height: 1.72857143;
    color: #555;
    font-family: Arial, FontAwesome;
    pointer-events: none;
}

.has-float-label label,
.has-float-label>span {
    top: -1.1em;
}

.has-float-label label::after,
.has-float-label>span::after {
    background: transparent;
}

.has-float-label>input:focus::-webkit-input-placeholder {
    color: transparent;
}

.has-float-label>input:focus:-moz-placeholder {
    color: transparent;
}

.has-float-label>input:focus::-moz-placeholder {
    color: transparent;
}

.has-float-label>input:focus:-ms-input-placeholder {
    color: transparent;
}


.table-hide-pagination * .ng-table-pager {
    display: none;
}
.ng-table-pager.ng-scope{
    display: flex !important;
    justify-content: space-around !important;
    align-items: baseline !important;
    flex-direction: row-reverse !important;
}


table.table-white-space-pre > tbody > tr > td {
    white-space: pre;
}

ul.auto-pay li:before {
    content: '✔';
    margin-left: -1em;
    margin-right: .100em;
}

ul.auto-pay {
    padding-left: 20px;
    text-indent: 2px;
    list-style: none;
    list-style-position: outside;
}

.left-field {
    padding-left: 0;
}

.right-field {
    padding-right: 0;
}

@media screen and (max-width: 800px) {
    .left-field {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .right-field {
        padding-left: 0;
        padding-right: 0;
    }

}

ul.auto-pay-checkbox {
    list-style: none;
    list-style-position: outside;
}

ul.auto-pay-checkbox .checkbox input[type="checkbox"] {
    margin-left: -40px;
}

ul.auto-pay-sub {
    list-style: none;
    list-style-position: outside;
    margin-left: 0px;
    padding-top: 5px;
    max-width: 99%;
}

.cardaddress-float-label {
    white-space: nowrap;
    overflow: hidden;
    display: block;
    max-width: calc(100% - 27px);
}

a.nav-link-custom:hover {
    text-decoration: underline;
}

.note-text {
    font-weight: bold;
    font-size: 12px;
    resize: vertical;
}

.modal-wrapper {
    padding: 25px;
    text-align: center;
}

.modal-wrapper img {
    max-height: 90vh;
}

@font-face {
    /*ARP-1541*/
    font-family: 'password';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/password.ttf');
}

input.key {
    /*ARP-1541*/
    font-family: 'password';
}

.clickable-items-nav {
    margin-left: 20px;
    cursor: pointer;
}

.clickable-items-nav p:hover {
    color: #1D58B1;
    font-weight: bold;
}

.left-menu-container {
    width: 300px;
    position: fixed;
    top: 220px;
    left: 0;
    padding-left: 15px;
    padding-top: 15px;
}

@media (max-width: 997px) {
    .left-menu-container {
        display: none;
    }
}

.payment-input input:invalid {
    color: red;
}

.message-patient-exist {
    border-radius: 5px;
    padding: 10px;
    border: 2px solid red;
    background-color: #f5acb7;
    color: red;
    font-size: 1.3em;
    font-weight: bold;
}

.service-links-header {
    color: darkgrey;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.service-links-header div {
    margin-left: 10px;
}

.left-menu {
    width: 300px;
    position: relative;
}

.red-bold-message {
    font-weight: bold;
    color: red;
}

.pl-1 {
    padding-left: 5px;
}

.pl-4 {
    padding-left: 22px;
}

.mr-2 {
    margin-right: 10px;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.d-flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.justify-content_between {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.justify-content_start {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}

.flex-nowrap {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
}

.accountCollection-panel .panel-heading-flexbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.accountCollection-panel .accordion-btn.active .glyphicon-chevron-right:before {
    content: "\e114"
}

.accountCollection-panel.panel.panel-default.disabled {
    opacity: .5;
}

.accountCollection-panel .accordion-btn {
    cursor: pointer;
}

.accountCollection-panel .accordion-btn .glyphicon {
    margin-right: 10px;
    font-size: 14px;
}

.accountCollection-panel .panel-body {
    display: none;
    background-color: white;
    overflow: hidden;
}

input.checkbox-xl[type=checkbox] {
    -webkit-transform: scale(1.2);
        -ms-transform: scale(1.2);
            transform: scale(1.2);
    margin-right: 5px;
}

.trHover:hover {
    opacity: .6;
}

.scrollToTopBtn {
    border-radius: 50%;
    font-size: 1.5rem;
    background-color: rgb(0, 0, 0);
    color: white;
    border: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    /* place it at the bottom right corner */
    position: fixed;
    bottom: 50px;
    right: 50px;
    /* keep it at the top of everything else */
    z-index: 100;
    /* hide with opacity */
    opacity: 0;
    /* also add a translate effect */
    -webkit-transform: translateY(100px);
        -ms-transform: translateY(100px);
            transform: translateY(100px);
    /* and a transition */
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.showBtn {
    opacity: 1;
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);
}

.table-borderless > tbody > tr > td,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > td,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > thead > tr > th {
    border: none;
}

.increase-popover-width {
    width: 450px !important;
    max-width: 450px !important;
    min-width: 450px !important;
    z-index: 6000;
}

/* .modal {
    margin-top: 50px;
    z-index: 500000 !important;
} */

/* .mr-top-50 {
    margin-top: 50px;
} */

/* @media screen and (max-width: 1559px) {
    .mr-top-50 {
        margin-top: 75px;
    }
}*/

.display-flex-center {
    display:flex;
   /*  align-items:center; */
}

.color-red {
    color: red;
}

.color-green {
    color: green;
}

.blink_me {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.thick {
    font-weight: bold;
}

.autopayDay-input-short {
    width: 50px !important;
    height: 26px;
}

.autopayDay-input-long {
    width: 230px !important;
    height: 26px;
}

.custom-list {
    list-style-type: none;
    padding-left: 0;
}

.custom-list-item {
    display: flex;
}

.custom-list-item span.desc-li {
    display: inline-block;
    width: 15ch;
}

.custom-list-item span.bold {
    font-weight: bold;
}

.align-elements {
    display: flex;
    align-items: center;
    justify-content: center;
}

.disabled-link {
    pointer-events: none;
    cursor: default;
    color: #ccc;
}

.statement {
    color: rgb(0, 0, 0);
}

.payment {
    color: rgb(219, 26, 161);
}

.other {
    color: blue;
}

.exclusion {
    color: brown;
}

input.ng-invalid.ng-touched {
    border-color: red;
    outline-color: red;
}

div.error {
    color: red;
    font-size: 12px;
}

.merged-title {
    text-align: center;
    background-color: lightgrey;
}

.centered-title {
    text-align: center;
}

.centered-single-title {
    padding-bottom: 20px !important;
}

.empty-title {
    padding: 10px;
}

.fee-input {
    text-align: right;
    width: 70px
}
.hr-thick {
    border: none;
    height: 1px;
    /* Set the hr color */
    color: #333;  /* old IE */
    background-color: #333;  /* Modern Browsers */
}

.patient-detail-section {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    align-items: stretch;
}

.patient-detail-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.patient-detail-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.patient-detail-card-header {
    font-size: 16px;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.patient-detail-card-header > span {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.patient-detail-card-header > button {
    flex-shrink: 0;
    height: 32px;
}

.patient-detail-card-content {
    background-color: #F9F9F9;
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.patient-detail-card-content-full {
    background-color: #F9F9F9;
    flex: 1;
    padding: 16px;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.action-table {
    font-size: 14px;
    width: 100%;
}

.action-table td:first-child {
    color: #61646B;
}

.action-table td:last-child {
    color: #181D27;
    font-weight: 600;
}

.delivery-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.delivery-checkbox-row label {
    display: flex;
    align-items: center;
    width: 40%;
}

.delivery-checkbox-row label span {
    color: #61646B;
}

.delivery-checkbox-row .glyphicon-question-sign {
    color: #888;
    cursor: pointer;
}

.payment-method-table td:first-child {
    color: #61646B;
    font-size: 14px;
}

.payment-method-table td:last-child {
    color: #181D27;
    font-size: 14px;
    font-weight: 600;
}

.payment-edit-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.payment-edit-link a {
    color: #D9534F;
    text-decoration: underline;
}

.help-icon {
    cursor: pointer;
}

.chat-container {
    /*border: 1px solid #DBDBDB;*/
}
.chat-wrap {
    /*background: #F9F9F9;*/
    padding: 20px 20px 20px;
    position: relative;
    max-height: 300px;
    min-height: 250px;
    overflow-x: hidden;
}

.chat-header {
    margin-bottom: 10px;
}

.msg-row {
    display: flex;
    align-items: flex-end;
    margin: 4px 0;
}

.msg-row.left {
    justify-content: flex-start;
}

.msg-row.right {
    justify-content: flex-end;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f2f2;
    color: #d54b4b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 10px;
    flex: 0 0 40px;
    border: 1px solid #eee;
}

.avatar.phone {
    color: #999;
    font-size: 16px;
}

/* Bubble */
.bubble {
    position: relative;
    max-width: 66%;
    padding: 8px 10px;
    border-radius: 10px;
    line-height: 1.45;
    font-size: 14px;
    border: 1px solid transparent;
}

/* Left (patient) bubble */
.msg-row.left .bubble {
    background: #E8E8EA;
    color: #333;
    border-color: #DBDBDE;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
}

.msg-row.left .bubble:before {
    content: "";
    position: absolute;
    left: -6px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid #DBDBDE;
    border-bottom: 1px solid #DBDBDE;
    transform: rotate(45deg);
    border-bottom-left-radius: 2px;
}

/* Right (provider) bubble, kept faded so the not-delivered red stands out */
.msg-row.right .bubble {
    background: #FBEAE9;
    color: #3A3A3A;
    border-color: #F1C7C4;
}

.msg-row.right .bubble a {
    color: #B13733;
    text-decoration: underline;
}

.msg-row.right .bubble.is-failed {
    border-color: #EFAFAB;
}

.msg-row.right .bubble:before {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-right: 1px solid #F1C7C4;
    border-bottom: 1px solid #F1C7C4;
    transform: rotate(45deg);
    border-bottom-right-radius: 2px;
}

.msg-row.right .bubble.is-failed:before {
    border-right-color: #EFAFAB;
    border-bottom-color: #EFAFAB;
}

/* Stacks the bubble above its delivery status so the status sits under the bubble edge */
.bubble-stack {
    display: flex;
    flex-direction: column;
    max-width: 66%;
}

.msg-row.right .bubble-stack {
    align-items: flex-end;
}

.bubble-stack .bubble {
    max-width: 100%;
}

.msg-not-delivered {
    color: #D93025;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 3px;
}

.msg-row.has-failed .avatar {
    align-self: center;
}

.msg-failed-icon {
    align-self: center;
    color: #D93025;
    font-size: 15px;
    margin-left: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Phone/header line above first left bubble */
.from-line {
    font-size: 13px;
    color: #6a6a6a;
    margin-left: 65px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Inline meta on right bubbles */
.meta-inline {
    display: inline-block;
    font-size: 12px;
    color: #6E6E6E;
    margin-left: 8px;
    vertical-align: bottom;
    white-space: nowrap;
}

/* Timestamp under left bubbles */
.time-under {
    font-size: 12px;
    color: #9e9e9e;
    margin-left: 60px;
    margin-top: 4px;
}

/* Date divider */
.date-divider {
    text-align: center;
    color: #8a8a8a;
    font-weight: 600;
    margin: 22px 0 8px;
}

.date-divider:before, .date-divider:after {
    content: "";
    display: inline-block;
    height: 1px;
    background: #e6e6e6;
    width: 20%;
    vertical-align: middle;
    margin: 0 10px;
}

/* Composer (docked) */
.composer {
    padding: 10px 12px;
    background: white;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.composer-container {
    padding: 20px;
    /*background: #F9F9F9;*/
}

.panels-resize-handle {
    position: relative;
    height: 16px;
    cursor: row-resize;
    outline: none;
}

.panels-resize-handle:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 6px;
    margin: -3px 0 0 -16px;
    border-top: 2px solid #cfcfcf;
    border-bottom: 2px solid #cfcfcf;
    transition: border-color ease-in-out .15s;
}

.panels-resize-handle:hover:after {
    border-color: #a0a09f;
}

.panels-resize-handle:focus-visible:after,
.panels-resize-handle.is-dragging:after {
    border-color: #d9534f;
}

/* Keeps the resize cursor mid-drag while the pointer crosses links and clickable table rows. */
.is-resizing-panels,
.is-resizing-panels * {
    cursor: row-resize !important;
    user-select: none;
}

.composer .form-control {
    flex: 1;
    height: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.composer .form-control:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #999;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon:hover {
    background: #e9e9e9;
    border-color: #777;
}

.btn-send {
    height: 35px;
    border-radius: 20px;
    padding: 0 20px;
    background: #d64646;
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: none;
    flex-shrink: 0;
}

.btn-send:hover {
    background: #c83b3b;
}

.btn-send .glyphicon {
    top: 3px;
    margin-left: 6px;
}

.btn-emoji {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

/* Small tweaks */
@media (max-width: 768px) {
    .bubble, .bubble-stack {
        max-width: 78%;
    }

    .bubble-stack .bubble {
        max-width: 100%;
    }

    .from-line, .time-under {
        margin-left: 54px;
    }

    .avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

.wide-popover {
    max-width: 400px !important;
}

.loader-container {
    position: relative;
}

.loader-container .loader {
    position: absolute;
    right: 50%;
    bottom: 3px
}

.printvalue{
    margin: 10px;
}

/* Chip Design Styles */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 34px;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: text;
    position: relative;
}

.chip-container:focus-within {
    border-color: #66afe9;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.5);
}

.chip {
    display: inline-flex;
    align-items: center;
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 16px;
    padding: 4px 8px;
    margin: 2px;
    font-size: 12px;
    color: #1976d2;
    max-width: 200px;
}

.chip-remove {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-left: 4px;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chip-remove:hover {
    background-color: #1976d2;
    color: white;
}

.chip-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 120px;
    padding: 4px;
    font-size: 14px;
}

.chip-input::placeholder {
    color: #999;
}

.delivery-checkbox-row .chip-container {
    margin-top: 5px;
    width: 100%;
}

/* Disabled state for chips */
.delivery-checkbox-row input[type="checkbox"]:not(:checked) + span + .chip-container,
.chip-container.disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    cursor: not-allowed;
}

.delivery-checkbox-row input[type="checkbox"]:not(:checked) + span + .chip-container .chip-input,
.chip-container.disabled .chip-input {
    color: #999;
    cursor: not-allowed;
}

.chip-container.disabled .chip-remove {
    opacity: 0.5;
    cursor: not-allowed;
}

.chip-container.disabled .chip-remove:hover {
    background-color: transparent;
    color: #1976d2;
}

/* Invalid state styling */
.chip-container.invalid {
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

.chip-container.invalid .chip-input {
    color: #d32f2f;
}

.validation-tooltip {
    position: absolute;
    background-color: #d32f2f;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.validation-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #d32f2f;
}
.w-full {
    width: 100%;
}

.menu-badge {
    display: inline-block;
    min-width: 18px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background-color: #d9534f;
    border-radius: 12px;
    vertical-align: middle;
}
