/*make sure side bar z index above kendo but below modals*/
.s-sidebar {
  z-index: 1000 !important;
}

/* Adjust site title for small screens */
@media (max-height: 790px) {
  .s-sidebar-band-title {
    display: none !important;
  }

  .s-sidebar-band-title2 {
    margin-left: 0.5rem;
    color: var(--s-sidebar-band-link-active);
  }
}


/*.s-site-logo-img {
  content: url(../../Serenity.Assets/logo/white-128.png);
}*/

/*
 * Component: Info Box
 * -------------------
 */
.info-box-container {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.info-box {
  display: block;
  min-height: 90px;
  background: #fff;
  width: 100%;
  /*box-shadow: @box-boxshadow;*/
  /*.border-radius(2px);*/
  margin-bottom: 15px;
  /*small*/
}
  
    .info-box small {
      font-size: 14px;
    }
  
    .info-box .progress {
      background: rgba(0, 0, 0, 0.2);
      margin: 5px -10px 5px -10px;
      height: 2px;
    }
  
      .info-box .progress,
      .info-box .progress .progress-bar {
        /*.border-radius(0);*/
      }
  
        .info-box .progress .progress-bar {
          background: #fff;
        }

/*{
  font-size: 14px;
}*/


/* dont know who did this but makes the bar white and then you cant see the text... 
    .progress-bar {
  background: #fff;
}*/

.info-box-icon {
/*  .border-radius(2px;
  0;
  2px;
  0);*/
  display: block;
  float: left;
  height: 90px;
  width: 75px;
  text-align: center;
  font-size: 45px;
  line-height: 90px;
  background: rgba(0, 0, 0, 0.2);
/*  > img

{
  max-width: 100%;
}*/

}

.info-box-content {
  padding: 5px 10px;
  margin-left: 75px;
  position: relative;
}

.info-box-number {
  display: block;
  font-weight: bold;
  font-size: 18px;
}

.progress-description,
.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-box-text {
  text-transform: uppercase;
}

.info-box-more {
  display: block;
}


.info-box-evenmore {
  position: absolute;
  top: 45px;
  right: 10px;
  padding: 1px 3px 1px 3px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.progress-description {
  margin: 0;
}
/*
 * Component: Info Box
 * -------------------
 */
.info-box-container {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.info-box {
  display: block;
  min-height: 90px;
  background: #fff;
  width: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin-bottom: 15px;
}

  .info-box small {
    font-size: 14px;
  }

  .info-box .progress {
    background: rgba(0, 0, 0, 0.2);
    margin: 5px -10px 5px -10px;
    height: 2px;
  }

    .info-box .progress,
    .info-box .progress .progress-bar {
      border-radius: 0;
    }

      .info-box .progress .progress-bar {
        background: #fff;
      }

.info-box-icon {
  border-top-left-radius: 2px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 2px;
  display: block;
  float: left;
  height: 90px;
  width: 75px;
  text-align: center;
  font-size: 45px;
  line-height: 90px;
  background: rgba(0, 0, 0, 0.2);
}

  .info-box-icon > img {
    max-width: 100%;
  }

.info-box-content {
  padding: 5px 10px;
  margin-left: 75px;
  position: relative;
}

.info-box-number {
  display: block;
  font-weight: bold;
  font-size: 18px;
}

.progress-description,
.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-box-text {
  text-transform: uppercase;
}

.info-box-more {
  display: block;
}

.info-box-evenmore {
  position: absolute;
  top: 45px;
  right: 10px;
  padding: 1px 3px 1px 3px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.progress-description {
  margin: 0;
}
/*
 * Component: Timeline
 * -------------------
 */
.timeline {
  position: relative;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}

  .timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ddd;
    left: 31px;
    margin: 0;
    border-radius: 2px;
  }

  .timeline > li {
    position: relative;
    margin-right: 10px;
    margin-bottom: 15px;
  }

    .timeline > li:before,
    .timeline > li:after {
      content: " ";
      display: table;
    }

    .timeline > li:after {
      clear: both;
    }

    .timeline > li > .timeline-item {
      -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
      -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
      border-radius: 3px;
      margin-top: 0;
      background: #fff;
      color: #444;
      margin-left: 60px;
      margin-right: 15px;
      padding: 0;
      position: relative;
    }

      .timeline > li > .timeline-item > .time {
        color: #999;
        float: right;
        padding: 10px;
        font-size: 12px;
      }

      .timeline > li > .timeline-item > .timeline-header {
        margin: 0;
        color: #555;
        border-bottom: 1px solid #f4f4f4;
        padding: 10px;
        font-size: 16px;
        line-height: 1.1;
      }

        .timeline > li > .timeline-item > .timeline-header > a {
          font-weight: 600;
        }

      .timeline > li > .timeline-item > .timeline-body,
      .timeline > li > .timeline-item > .timeline-footer {
        padding: 10px;
      }

    .timeline > li > .fa,
    .timeline > li > .glyphicon,
    .timeline > li > .ion {
      width: 30px;
      height: 30px;
      font-size: 15px;
      line-height: 30px;
      position: absolute;
      color: #666;
      background: #d2d6de;
      border-radius: 50%;
      text-align: center;
      left: 18px;
      top: 0;
    }

  .timeline > .time-label > span {
    font-weight: 600;
    padding: 5px;
    display: inline-block;
    background-color: #fff;
    border-radius: 4px;
  }

.timeline-inverse > li > .timeline-item {
  background: #f0f0f0;
  border: 1px solid #ddd;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

  .timeline-inverse > li > .timeline-item > .timeline-header {
    border-bottom-color: #ddd;
  }





.s-site-logo-img {
  content: url(../../Content/site/images/SCSlogo2023_Short_h30_notext.png);
  transform: rotate(90deg);
  /*width: 38px !important;
  height: 15px !important;*/
  width: 48px !important;
  height: 26px !important;
}

.s-SignUpPanel .s-site-logo-img {
    transform: none !important;
}

.s-ForgotPasswordPanel .s-site-logo-img {
  transform: none !important;
  width: 75px !important;
  height: 30px !important;
}

.s-mobile-header-logo {
  transform: none !important;
  width: 70px !important;
  height: 25px !important;
}


.caption {
  color: #476cad;
}


.s-PermissionCheckEditor {
  min-height: 650px;
}

.s-horizontal-divider {
  margin: 1em 0;
  line-height: 0;
  text-align: center;
}

.s-horizontal-divider span {
  background-color: var(--s-card-bg);
  padding: 1em;
}

.s-horizontal-divider:before {
  content: " ";
  display: block;
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #f7f7f7;
}

.dialogButton-Confirm {
  background-color: #3c8dbc;
  color: white;
}
 
.font-size-14 {
  font-size: 14px !important;
}

.font-size-17 {
  font-size: 17px !important;
}
.text-4a4a8e {
  color: #4a4a8e !important;
}

.b-b-1-gray {
  border-bottom: 1px solid gray !important;
}

.text-bold {
  font-weight: bold !important;
}



/*.dropdown {
    height: 100%;
}

.dropdown-toggle::after {
  display: flex;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";*/
  /*border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;*/
  /*border-top: none;
  border-right: none;
  border-bottom: none;
  border-left: none;
}

.dropdown-toggle:empty::after {
  margin-left: 0;
}*/



.view-switch ~ .title-text, .favorite-views ~ .title-text {
  margin-right: auto;
}

.title-text {
    margin-right: auto;
}

.favorite-views {
  margin-right: 4px;
  position: relative;
}

  .favorite-views ul {
    font-size: 15px;
    width: 250px;
    min-width: 250px;
    left: -145px;
  }

  .favorite-views li.save {
    padding: 6px;
  }

    .favorite-views li.save input {
      margin-top: 2px;
      width: 126px;
    }

    .favorite-views li.save button {
      margin-top: 4px;
      font-size: 12px;
    }

  .favorite-views li.fav {
    position: relative;
    padding-right: 16px;
  }

  .favorite-views i.fa-trash-o {
    cursor: pointer;
    position: absolute;
    right: 4px;
    top: 5px;
    color: maroon;
  }


#GridDiv_Favorites {
  padding: 3px 7px 3px 7px !important;
}

#GridDiv_Legend {
  padding: 3px 7px 3px 7px !important;
}



.hide {
  display: none !important;
}

.no-border {
  border: 0 !important;
}

.no-padding {
  padding: 0 !important;
}

.no-margin {
  margin: 0 !important;
}

.no-shadow {
  box-shadow: none !important;
}

.s-ColumnPickerDialog .column-list {
    overflow: scroll !important;
}

#GridDiv_Favorites {
    padding: 3px 7px 3px 7px !important
}

#GridDiv_Legend {
    padding: 3px 7px 3px 7px !important
}

.s-Form .caption {
    width: 160px !important;
}

.EntitySearch 
    .ui-menu .ui-menu-item a {
        background: red !important;
        height: 10px;
        font-size: 8px;
    }

    .ui-menu.ui-widget-content {
        background: green;
        border: none;
        padding: 1px;
    }

.audittable, th, td {
    margin: 10px 0;
    border: solid 1px #333;
    padding: 2px 4px;
    /*font: 15px Verdana;*/
}

.hideCheckBox span.select-item.check-box {
    visibility: hidden
}

.hideInlineAction-viewletter a.inline-action.viewletter {
    visibility: hidden
}
.hideInlineAction-schedule a.inline-action.schedule {
    visibility: hidden
}


.auditheader th {
    font-weight: bold;
}

/*div.cell-style > .col-style-date {
    background-color: orange !important;
    color: #fff !important;
}
div.cell-style > .col-style-claim {
    background-color: red !important;
    color: #fff !important;
}
div.cell-style > .col-style-dcn {
    background-color: green !important;
    color: #fff !important;
}
div.cell-style > .col-style-index {
    background-color: purple !important;
    color: #fff !important;
}*/
.col-missing-value {
    background-color: orange !important;
    color: black !important;
    width:100%;
    height: 100%;
}

.alert-hearing-date .col-hearing-date {
    background-color: rgba(227,34,39, 0.7) !important;
    color: #fff !important;
}
.alert-report-due-date .col-report-due-date {
    background-color: rgba(227,34,39, 0.7) !important;
    color: #fff !important;
}
/*.col-style-date .orange-cell {
    background-color: rgba(255,165,0, 0.1) !important;
    color: #fff !important;
}
.col-style-claim .orange-cell {
    background-color: rgba(255,165,0, 0.1) !important;
    color: #fff !important;
}
.col-style-dcn .orange-cell {
    background-color: rgba(255,165,0, 0.1) !important;
    color: #fff !important;
}
.col-style-index .orange-cell {
    background-color: rgba(255,165,0, 0.1) !important;
    color: #fff !important;
}*/
.red-col {
    background-color: rgba(227,34,39, 0.2) !important;
    color: #fff !important;
}

.yellow-col {
    background-color: rgba(255,255,0, 0.3) !important;
    color: #000 !important;
}
.orange-col {
    background-color: rgba(255,165,0, 0.1) !important;
    color: #fff !important;
}
.orange-border {
    border-width:thick !important;
  border-color: rgba(255,165,0, 0.1) !important; 
}

.green-col {
    background-color: rgba(0, 128, 0, 0.1) !important;
    color: black !important;
}

/* Utility class for green background on inline action icons */
.bg-green {
    background-color: rgba(0, 128, 0, 0.6) !important;
    color: white !important;
}

.beige-col {
    background-color: beige !important; 
}

.pink-col {
    background-color: pink !important;
}

.peach-col {
    background-color: peachpuff !important; 
}

.s-SCS-DoctorListingGrid 
    .discontinued .slick-cell, .discontinued .slick-cell a {
        color: green;
    }

    .filter-width-small {
        width: 90px !important;
    }

    .red-col .col-unit-price {
        background-color: red;
        color: #fff;
    }

    .yellow-col .col-unit-price {
        background-color: yellow;
        color: #000;
    }

    .green-col .col-unit-price {
        background-color: rgba(0, 128, 0, 0.1) !important;
        color: black;
    }

    .prepay {
        background-color: #FFC0CB;
    }

    .insurance-type-5-207A {
        background-color: #FFFF00;
    }

    .doctor-prepay {
        background-color: #CCFFFF;
    }

    .causality-peer {
        background-color: #FF9933;
    }

    .addendum {
        background-color: #CE0AFF;
    }

    .none-scs {
        background-color: #FF0000;
    }


.s-Grids-DoctorsLocationsGrid 
    .license-expired {
        background-color: red;
    }

    .deactivated {
        background-color: red;
    }

.s-SCS-IMEToBeScheduled 

    .Requested {
        background-color: lightgreen;
    }


.inline-action.viewdetails:before {
  content: "\e003";
  color: #009b05;
}

.inline-action.delete-row:before {
  content: "\e020";
  color: red;
}

.inline-action.view-history {
  background-image: url(../serenity/images/project-logs.png);
}

.inline-action.new-order {
  background-image: url(../serenity/images/plus.png);
}

.Filter-Boolean {
  /*> .s-BooleanEditor {
        margin-left: 10px;
    }*/
  text-align: center;
}

  .Filter-Boolean .s-BooleanEditor {
    margin: 5.6px 0 0 0 !important;
  }

  .InsuranceCompanyFilter {
    /*> .select2-choices {
        width: 50px;
    }*/
  }

.checkBoxGroup {
  margin-right: 5px;
}

/* Location Export Button Badge */
.location-export-btn {
    position: relative;
}

.location-export-btn::after {
    content: "📍"; /* Location pin emoji */
    position: absolute;
    top: 0;
    right: 0;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Alternative with text badge if emoji doesn't work well */
.location-export-btn.text-badge::after {
    content: "L";
    font-weight: bold;
    font-size: 7px;
}

/* Alternative with map icon if you prefer */
.location-export-btn.map-icon::after {
    content: "🗺️";
    font-size: 6px;
}

/* Televox Import Button Badge */
.televox-import-btn {
    position: relative;
}

.televox-import-btn::after {
    content: "📥"; /* Import/download arrow emoji */
    position: absolute;
    top: 0;
    right: 0;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.printmenu-button span.button-inner {
  background-image: url('../serenity/images/printer.png');
}

.bill-button span.button-inner {
  background-image: url('../serenity/images/currency.png');
}

.reschedule-button span.button-inner {
  background-image: url('../serenity/images/clock.png');
}

.scheduled-button span.button-inner {
  background-image: url('../serenity/images/calendar-blue.png');
}

.batchdelete-button span.button-inner {
  background-image: url('../serenity/images/list-delete.png');
}

.batchUnassign-button span.button-inner {
  background-image: url('../serenity/images/list-delete.png');
}

.noshow-button span.button-inner {
  background-image: url('../serenity/images/slash.png');
}

.reminder-button span.button-inner {
  background-image: url('../serenity/images/alarm-clock.png');
}

.reportqa-button span.button-inner {
  background-image: url('../serenity/images/eye.png');
}

.sendeor-button span.button-inner {
  background-image: url('../serenity/images/inbox-document-text.png');
}

.billeor-button span.button-inner {
  background-image: url('../serenity/images/currency.png');
}

.download-symbol {
  padding: 2px 20px 2px 0px;
  background: url(../serenity/images/get.png) no-repeat center center;
}

.s-ColumnPickerDialog .columns-container {
  max-height: 500px;
}

.s-ColumnPickerDialog {
  height: 730px;
}

.ListingServiceEditor .s-DataGrid {
  min-height: 250px;
}

.ListingBodyPartSLUEditor .s-DataGrid {
  min-height: 250px;
}

.ListingBodyPartSLUEditor_Small .s-DataGrid {
  /*height: 150px;*/
  min-height: 150px;
  max-height: 250px;
}

/*.AdditionalClaimBodyPartEditor .s-DataGrid {
    min-height: 250px;
}

.AdditionalClaimBodyPartEditor .s-DataGrid {
    height: 150px;
    min-height: 150px;
    max-height: 250px;
}*/

/*.AdditionalClaimEditor .s-DataGrid {
  min-height: 250px;
}*/

.AdditionalClaimEditor .s-DataGrid {
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  overflow-y: auto;
}

.s-GridEditors-ListingCommentEditor {
  height: 300px;
}

.category-links {
  display: flex;
}

/*//this makes category bar in dialogs stick to top when scrolling*/
.s-Panel .category-links.sticky {
  position: fixed;
  background-color: lightblue;
  color: black !important;
  z-index: 100;
  right: unset;
  width: calc(86%);
  /*width: 900px;*/
  top: 50px;
}

.s-Panel .category-links.sticky > a {
  color: black !important;
}

/*.save-and-close-button.sticky {
    background-color: gray;
    position: fixed;
    z-index: 100;
    right: unset;
    width: 100px;
    float:right;
    padding-right: 24px;
    top: 18px;
    border: 1px solid black;
}*/

.s-Panel .s-DialogToolbar.sticky {
  position: fixed;
  background-color: lightblue;
  z-index: 100;
  right: unset;
  width: calc(86%);
  padding-left: 24px;
  padding-top: 1px;
  bottom: 0px;
  border: 2px solid black;
}

  .s-Panel .s-DialogToolbar.sticky .tool-button {
    background-color: white;
  }

/*.CheckedBox-Important > label:has(+ .s-BooleanEditor:checked) {
    font-size: larger;
    font-weight: bold;
    background-color: red;
}*/

.CheckedBox-Important > :has(+ .s-BooleanEditor:checked) {
  font-size: larger;
  font-weight: bold;
  background-color: red;
}

.CheckedBox-Important:has(+ .s-BooleanEditor:checked) {
  font-size: larger;
  font-weight: bold;
  background-color: red;
}

.Label-Important {
  font-size: larger;
  font-weight: bold;
  background-color: red;
}

.letter-sectionContainer {
  page-break-inside: avoid;
  page-break-after: always;
}

.mr_detach .mrattach_container {
  /*position: relative;*/
  background-image: url(../icons/svg/glyphicons-basic-794-paired-off.svg);
}

.mr_detach .marattach_nested {
  position: absolute;
  top: -4px;
  left: -1px;
  font-size: 170%;
  color: rgba(217, 83, 79, 0.7);
}

.mr_attach .mrattach_container {
  /*position: relative;*/
  background-image: url(../icons/svg/glyphicons-basic-793-paired.svg);
}

.mr_attach .marattach_nested {
  display: none;
}

.mr_disable .mrattach_container {
  /*pointer-events: none;
    color: #AAA;*/
  background-image: url(../icons/svg/glyphicons-basic-793-paired-disabled.svg);
  /*a: active*/
  pointer-events: none;
}

.mr_disable .mrattach_container a:active {
  pointer-events: none;
}

.mr_disable .marattach_nested {
  display: none;
}

.listing_view_disable .listing_view_container {
  color: InactiveCaptionText;
  /*a: active*/
  pointer-events: none;
}

.listing_view_disable .listing_view_container a:active {
  pointer-events: none;
}

.schedule_disable .schedule_container {
  color: InactiveCaptionText;
  /*a: active*/
  pointer-events: none;
}

.schedule_disable .schedule_container a:active {
  pointer-events: none;
}

/*.listing_bill_disable .billListing_container {
    color: InactiveCaptionText;

    a:active {
        pointer-events: none;
    }
}

.listing_bill_disable .billListing_container a:active {
    pointer-events: none;
}*/

.listing_bill .billListing_container {
  /*position: relative;*/
  background-image: url(../icons/svg/glyphicons-basic-990-invoice.svg);
  width: 24px;
  height: 24px;
}

/*.listing_bill .marattach_nested {
    display: none;
}*/

.listing_bill_disable .billListing_container {
  /*pointer-events: none;
    color: #AAA;*/
  background-image: url(../icons/svg/glyphicons-basic-990-invoice-disabled.svg);
  width: 24px;
  height: 24px;
  /*a: active*/
  pointer-events: none;
}

.listing_bill_disable .billListing_container a:active {
  pointer-events: none;
}

/*.mr_disable .marattach_nested {
    display: none;
}*/


/*.s-IMESubmitReferralWizard .s-PropertyGrid .category-title a {
    color: #d99000;
    font-size: 16px;
    font-weight: 600;
}

.s-IMEAcceptReferralWizard .s-PropertyGrid .category-title a {
    color: #d99000;
    font-size: 16px;
    font-weight: 600;
}

.s-ScheduleIMEWizard .s-PropertyGrid .category-title a {
    color: #d99000;
    font-size: 16px;
    font-weight: 600;
}*/

.s-PropertyGrid .category-title a {
  color: #d99000;
  font-size: 16px;
  font-weight: 600;
}

.s-PendingListingEditorDialog .s-PropertyGrid {
    max-height: 550px;
}

.wizard-horz ul.property-tabs {
    width: 100%
}

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

.bg-scs-blue-dark {
  background-color: #003353 !important;
}

.bg-scs-blue {
  background-color: #0073b7 !important;
}

.bg-gray {
  color: #000;
  background-color: #d2d6de !important;
}

.bg-gray-light {
  background-color: #f7f7f7;
}

.bg-black {
  background-color: #111111 !important;
}

.bg-red,
.callout.callout-danger,
.alert-danger,
.alert-error,
.label-danger,
.modal-danger .modal-body {
  background-color: #dd4b39 !important;
}

.bg-yellow,
.callout.callout-warning,
.alert-warning,
.label-warning,
.modal-warning .modal-body {
  background-color: #f39c12 !important;
}

.bg-aqua,
.callout.callout-info,
.alert-info,
.label-info,
.modal-info .modal-body {
  background-color: #00c0ef !important;
}

.bg-blue {
  background-color: #0073b7 !important;
}

.bg-light-blue,
.label-primary,
.modal-primary .modal-body {
  background-color: #3c8dbc !important;
}

.bg-green,
.callout.callout-success,
.alert-success,
.label-success,
.modal-success .modal-body {
  background-color: #00a65a !important;
}

.bg-status-positive {
  background-color: #a5d6a7 !important;
  /* with opacity like in legend mixin */
  /*background-color: rgba(165, 214, 167, 0.9) !important;*/
}

.bg-navy {
  background-color: #001f3f !important;
}

.bg-teal {
  background-color: #39cccc !important;
}

.bg-olive {
  background-color: #3d9970 !important;
}

.bg-lime {
  background-color: #01ff70 !important;
}

.bg-orange {
  background-color: #ff851b !important;
}

.bg-fuchsia {
  background-color: #f012be !important;
}

.bg-purple {
  background-color: #605ca8 !important;
}

.bg-maroon {
  background-color: #d81b60 !important;
}

.bg-gray-active {
  color: #000;
  background-color: #b5bbc8 !important;
}

.bg-black-active {
  background-color: #000000 !important;
}

.bg-red-active,
.modal-danger .modal-header,
.modal-danger .modal-footer {
  background-color: #d33724 !important;
}

.bg-yellow-active,
.modal-warning .modal-header,
.modal-warning .modal-footer {
  background-color: #db8b0b !important;
}

.bg-aqua-active,
.modal-info .modal-header,
.modal-info .modal-footer {
  background-color: #00a7d0 !important;
}

.bg-blue-active {
  background-color: #005384 !important;
}

.bg-light-blue-active,
.modal-primary .modal-header,
.modal-primary .modal-footer {
  background-color: #357ca5 !important;
}

.bg-green-active,
.modal-success .modal-header,
.modal-success .modal-footer {
  background-color: #008d4c !important;
}

.bg-navy-active {
  background-color: #001a35 !important;
}

.bg-teal-active {
  background-color: #30bbbb !important;
}

.bg-olive-active {
  background-color: #368763 !important;
}

.bg-lime-active {
  background-color: #00e765 !important;
}

.bg-orange-active {
  background-color: #ff7701 !important;
}

.bg-fuchsia-active {
  background-color: #db0ead !important;
}

.bg-purple-active {
  background-color: #555299 !important;
}

.bg-maroon-active {
  background-color: #ca195a !important;
}

.bg-columbia-blue {
  background-color: #A5C4D4 !important;
}

.bg-tea-green{
  background-color: #DBFEB8 !important;
}

[class^="bg-"].disabled {
  -moz-opacity: 0.65;
  -khtml-opacity: 0.65;
  -webkit-opacity: 0.65;
  opacity: 0.65;
  -ms-filter: progid:DXImageTransform.Microsoft.Alpha(opacity=65);
  filter: alpha(opacity=65);
}

.text-white {
  color: white !important;
}

.text-red {
  color: #dd4b39 !important;
}

.text-yellow {
  color: #f39c12 !important;
}

.text-aqua {
  color: #00c0ef !important;
}

.text-blue {
  color: #0073b7 !important;
}

.text-black {
  color: #111111 !important;
}

.text-light-blue {
  color: #3c8dbc !important;
}

.text-green {
  color: #00a65a !important;
}

.text-gray {
  color: #d2d6de !important;
}

.text-navy {
  color: #001f3f !important;
}

.text-teal {
  color: #39cccc !important;
}

.text-olive {
  color: #3d9970 !important;
}

.text-lime {
  color: #01ff70 !important;
}

.text-orange {
  color: #ff851b !important;
}

.text-fuchsia {
  color: #f012be !important;
}

.text-purple {
  color: #605ca8 !important;
}

.text-maroon {
  color: #d81b60 !important;
}

.link-muted {
  color: #7a869d;
}

  .link-muted:hover,
  .link-muted:focus {
    color: #606c84;
  }

.link-black {
  color: #666;
}

  .link-black:hover,
  .link-black:focus {
    color: #999;
  }


/* Add toast notification override styles */
.toast-container {
  width: 100% !important;
  max-width: none !important;
}

.toast {
  width: 100% !important;
  max-width: none !important;
}

.float-right {
  float: right !important;
}

.font13px {
  font-size: 13px !important;
}

/* ===== Invoice Payment Dialog Styles ===== */

/* Overpayment warning styling for remaining amount fields */
.overpayment-warning .editor {
  background-color: #fff3cd !important;
  border-color: #ffc107 !important;
}

.overpayment-warning .caption {
  color: #856404 !important;
  font-weight: bold;
}

.overpayment-warning::after {
  content: "⚠️";
  position: absolute;
  right: 10px;
  top: 25%;
  transform: translateY(-50%);
  font-size: 14px;
}

.field.overpayment-warning {
  position: relative;
  background-color: rgba(255, 193, 7, 0.15);
  border-radius: 4px;
  padding: 2px 4px;
  margin: 2px 0;
}

/* Apply Max button styling (inline button next to Amount field) */
.inplace-button.apply-max-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 4px 8px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  vertical-align: middle;
}

.inplace-button.apply-max-amount:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
  transform: scale(1.05);
}

.inplace-button.apply-max-amount:active {
  background-color: #dee2e6;
  transform: scale(0.98);
}

.inplace-button.apply-max-amount i {
  font-size: 14px;
}

/* Read-only field styling for invoice payment form */
.s-Billing-InvoicePaymentEditorDialog .field.InvoiceTotal,
.s-Billing-InvoicePaymentEditorDialog .field.InvoiceRemainingAmount,
.s-Billing-InvoicePaymentEditorDialog .field.RemainingAmount {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 4px;
}

.s-Billing-InvoicePaymentEditorDialog .field.InvoiceTotal .editor,
.s-Billing-InvoicePaymentEditorDialog .field.InvoiceRemainingAmount .editor,
.s-Billing-InvoicePaymentEditorDialog .field.RemainingAmount .editor {
  background-color: #e9ecef;
  color: #495057;
}

/* Invoice Total - emphasized display */
.s-Billing-InvoicePaymentEditorDialog .field.InvoiceTotal .caption {
  font-weight: bold;
  color: #0073b7;
}

/* Invoice Remaining Amount - conditional styling handled by JS class */
.s-Billing-InvoicePaymentEditorDialog .field.InvoiceRemainingAmount.overpayment-warning .editor {
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
  color: #721c24 !important;
}

/* Payment Remaining Amount - conditional styling handled by JS class */
.s-Billing-InvoicePaymentEditorDialog .field.RemainingAmount.overpayment-warning .editor {
  background-color: #f8d7da !important;
  border-color: #f5c6cb !important;
  color: #721c24 !important;
}

/* Fully paid styling (remaining = 0) - green success color */
.field.fully-paid {
  position: relative;
  background-color: rgba(40, 167, 69, 0.15) !important;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 2px 0;
}

.field.fully-paid .editor {
  background-color: #d4edda !important;
  border-color: #c3e6cb !important;
  color: #155724 !important;
}

.field.fully-paid .caption {
  color: #155724 !important;
  font-weight: bold;
}

.field.fully-paid::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 25%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #28a745;
}

.s-Billing-InvoicePaymentEditorDialog .field.InvoiceRemainingAmount.fully-paid .editor,
.s-Billing-InvoicePaymentEditorDialog .field.RemainingAmount.fully-paid .editor {
  background-color: #d4edda !important;
  border-color: #c3e6cb !important;
  color: #155724 !important;
}
