/* ==================================================
   ROOT VARIABLES
================================================== */
:root {
  --primary-blue: #0099A8;
  --accent-blue: #0099A8;
  --light-bg: #E9F2F7;
  --page-bg: #EFEFEF;   
  --form-bg: #FFFFFF;
  --text-dark: #2E2E2E;
  --border-soft: #CFECEF;
  --label-bg: #FFFFFF; 
}

.varela-round-regular {
  font-family: "Varela Round", sans-serif;
  font-weight: 300;
  font-style: normal;
}


body {
  font-family: "Varela Round", "Segoe UI", sans-serif;
  font-size: 21px;
} 
label {
    font-family: "Varela Round", "Segoe UI", sans-serif;
    font-size: 14px;
}
a, .a {
    color: #0099A8;
    font-family: 'Varela Round';
    font-weight: 400;
    font-size: 14px;
}
.table-striped, .table-info, .table-striped > tbody > tr:nth-of-type(odd) > *, .form-control:focus, .dropdown-menu, .datepicker button {
    color: #000000;
    font-family: 'Varela Round';
    font-size: 14px;
}
/* ==================================================
   PAGE BACKGROUND
================================================== */
body {
  background: var(--page-bg) !important;
  color: #000;
}
/* =============================== MULTI-STEP PROGRESS BAR ================================= */
ol.progress.list-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 14px;
    height: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: none;
    margin-bottom: 32px;
}
ol.progress.list-group .list-group-item {
    border: none;
    font-family: 'Varela Round';
    background: transparent;
    flex: 1;
    margin: 0 6px;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: var(--primary-blue);
    white-space: nowrap;
    transition: all 0.3s ease;
}

ol.progress.list-group .list-group-item.active {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,153,168,0.35);
    transform: translateY(-2px);
}

ol.progress.list-group .list-group-item:not(.active) {
    background: #ffffff;
}

/* ==================================================
   FORM CARD
================================================== */
.entity-form, 
.entity-form form {
    background: var(--form-bg);
    padding: 32px;
    border-radius: 16px;
    max-width: 100%;
    margin: 10px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==================================================
   HEADINGS
================================================== */
.entity-form h3,
 .entity-form legend {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Varela Round';
    color: var(--primary-blue);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 6px;
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 21px;
    margin-bottom: 10.5px;
    font-family: 'Varela Round';
}
/* ==================================================
   LABELS
================================================== */
.entity-form label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: inline-block;
    background: var(--label-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==================================================
   INPUTS
================================================== */
.entity-form input,
.entity-form select,
.entity-form textarea {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  font-size: 14px;
  background: var(--light-bg);
  
}

.entity-form input:focus,
.entity-form select:focus,
.entity-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 153, 168, 0.15);
}

.entity-form textarea {
  min-height: 100px;
  resize: vertical;
}
.crmEntityFormView .cell div.control {
    clear: both;
    background: #ffffff ;
}


.crmEntityFormView div.description.below {
    margin: 0;
    font-size: small;
}

/* ==================================================
   LOOKUP BUTTONS
================================================== */

.entity-form 
.input-group-addon,
 .entity-form
  .lookup 
  .input-group-text {
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    height: stretch;
}
html[dir=ltr] .iconBorder {
    padding: 7px 5px 5px 5px;
    align-items: center;
}

/*Alert Warning for subgrids*/

.alert-warning {
    --bs-alert-color: #664d03;
    --bs-alert-bg: #fff3cd;
    --bs-alert-border-color: #ffecb5;
    height: auto;
    font-size: x-small;
}
/* ==================================================
   PRIMARY BUTTON
================================================== */
.entity-form button, .entity-form .btn-primary {
    background: #0099a8;
    /* border: aliceblue; */
    /*height: 45px;*/
    /* align-items: center; */
    border: #31708f;
    border-radius: 8px;
    height: auto;
    padding: 14px 32px;
    font-weight: 400;
    color: #fff;
    transition: all 0.3s ease;
}
/*Associate Grid button*/
.btn-info {
    color: #fff;
    background-color: #0099a8;
    height: 45px;
    border-color: #31708f;
    align-content: center;
}

/*card background*/
.card-body, .list-group-item {
    background-color: #fff;
    color: #000000;
    border: red;
    border-width: thick;
}

.btn-primary {
    color: #ffffff;
    background-color: #0099A8;
    border-color: #0099A8;
    border-radius: 2px;
    font-family: 'Varela Round';
    font-weight: 200;
    font-size: 14px;
    padding: 6px 20px;
    width: auto;
    border-style: solid;
    background-color: #0099A8;
    color: #ffffff;
}
.entity-form button:hover,
.entity-form .btn-primary:hover {
  background: #007F8C;
}

.button1 {
    color: #ffffff;
    border-radius: 2px;
    font-family: 'Varela Round';
    font-weight: 200;
    font-size: 14px;
    border-color: #0099A8;
    padding: 6px 20px;
    width: fit-content;
    border-style: solid;
    border-width: 1.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0099A8;
}


/* =============================== CALENDAR / DATE PICKER BUTTONS ================================= */
td.day button {
    background-color: #ffffff;           /* default weekday buttons */
    color: var(--text-dark);             /* weekday text */
    border-radius: 4px;
    border: none;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

/* Highlight Today */
td.day.today button {
    background-color: var(--primary-blue); /* dark blue */
    color: #ffffff;
}

/* Weekends */
td.day.weekend button {
    background-color: var(--border-soft); 
    color: var(--text-dark);
}

/* Hover effect */
td.day button:hover {
    background-color: #007F8C;
    color: #ffffff;
}

.datepicker .picker-switch>button {
    border: none;
    background-color: #0099a8;
}
.datepicker .next>button, .datepicker .prev>button {
    border: none;
    background: 0 0;
    padding: 0 !important;
    color: black;
}
.bootstrap-datetimepicker-widget.dropdown-menu {
    display: block;
    margin: 2px 0;
    padding: 4px;
}

/* Modal / lookup buttons in forms */
.button2, .btn-secondary, .btn-default {
    color: #fff;
    border-radius: 2px;
    font-family: 'Varela Round';
    font-weight: 400;
    font-size: 14px;
    border-color: #efefef;
    padding: 6px 20px;
    width: fit-content;
    border-style: solid;
    border-width: 1.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0099a8;
}

.button2:hover,
.btn-secondary:hover,
.btn-default:hover {
    background-color: #007F8C;
    border-color: var(--primary-blue);
    color: #fff;
}

/*Modal Header*/
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    background: #0099a8;
    font-family: 'Varela Round';
    padding: var(--bs-modal-header-padding);
    /* color: white; */
    border-bottom: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
    border-top-left-radius: var(--bs-modal-inner-border-radius);
    border-top-right-radius: var(--bs-modal-inner-border-radius);
}

.modal h1 {
    font-size: 21px;
    color: white;
    font-family: 'Varela Round';
}
/*modal Sizing*/
@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        --bs-modal-width: 70%;
    }
}
.entity-associate .view-grid, .entity-lookup .view-grid {
    width: 100%;
    background: white;
    border-radius: 12px;
    align-content: start;
    padding-top: 12px;
    overflow: auto;
    height: 300px;
    max-height: 300px;
    font-size: 55%;
}

.portal-card-default>.card-header {
    color: #dc3545;
    background-color: #0099a8;
    border-color: #eee;
}
h2, .h2, .section-landing .row > div .section-landing-sub-heading, .page_section h2, .color-inverse h2, h2 p {
    font-family: Verdana;
    font-weight: 400;
    font-size: 36px;
    color: #fff;
}

/*form sections*/
/* Section styling */
.entity-form fieldset {
    background: #ffffff; /* section itself white */
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    border: none; 
}

/* Section legends (headings) */
.entity-form legend {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
    padding: 0;
}

/*province input*/
.msos-option-selected, .msos-selected-display-item, .msos-quick-delete, .msos-quick-delete:hover {
    background: #fff !important;
    height: 38px;
}
.msos-selected-display-item {
    display: -ms-flexbox;
    display: -moz-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    border: 0;
    background: #efefef;
    max-width: 100%;
    height: auto;
    margin: 6px 7px 0 0;
    line-height: 28px;
    cursor: default;
    outline: none;
    position: relative;
}

.msos-glyph {
    display: -ms-flexbox;
    display: -moz-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    width: 50px;
    height: 16px;
    width: 40px;
}

/* ==================================================
   VALIDATION
================================================== */
.entity-form .validation-summary-errors {
  background: #FFF3F3;
  border-left: 4px solid #E63946;
  padding: 12px;
  border-radius: 8px;
}
.crmEntityFormView .validation-summary h2 {
    margin: 0 0 1em 0;
    padding: 0;
    font-size: 16px;
    color: red;
}

/* ==================================================
   SPACING
================================================== */
.entity-form .form-group {
  margin-bottom: 20px;
}

/* ==================================================
   NAVBAR (FROM YOUR PREVIOUS SYSTEM)
================================================== */

.navbar-dark .navbar-nav .show.dropdown-menu {
  background-color: #efefef;
  text-decoration: none;
}

.dropdown-menu .dropdown-item {
  background-color: #efefef;
  color: #555555;
    font-family: 'Varela Round';

}

.navbar-dark .navbar-nav > li > a {
    color: #555555;
    font-weight: 500;
    font-family: 'Varela Round';
}

.navbar-dark {
  background-color: var(--primary-blue);
}

.navbar-dark .navbar-nav > li > a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (min-width: 1200px) {
    .row.sectionBlockLayout>.container, 
    .row.sectionBlockLayout>.container-lg, 
    .row.sectionBlockLayout>.container-md,
     .row.sectionBlockLayout>.container-sm, 
     .row.sectionBlockLayout>.container-xl {
        max-width: 80%;
    }
}
/* =============================== LIST FILTERS BOX ================================= */
/* Headers */
h4, .h4, .poll .poll-header h4, .poll .poll-tags h4 {
    font-family: 'Varela Round';
    font-weight: 400;
    font-size: 16px;
    color: var(--primary-blue);
}

/* Alignment of filter options */
li.entitylist-filter-option-group.list-inline-item {
    display: block;
}

/* Filter Box Size on large screens */
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 auto;
        width: 45%;
        max-width: 300px;
    }
}

.card {
    --bs-card-spacer-y: 1rem;
    --bs-card-spacer-x: 1rem;
    --bs-card-title-spacer-y: 0.5rem;
    --bs-card-border-width: 2px;
    --bs-card-border-color: #0099a8;
    --bs-card-border-radius: 0.375rem;
    --bs-card-box-shadow: ;
    --bs-card-inner-border-radius: calc(0.375rem - 1px);
    --bs-card-cap-padding-y: 0.5rem;
    --bs-card-cap-padding-x: 1rem;
    --bs-card-cap-bg: rgba(0, 0, 0, 0.03);
    --bs-card-cap-color: ;
    --bs-card-height: ;
    --bs-card-color: ;
    --bs-card-bg: #fff;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 0.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--bs-card-height);
    word-wrap: break-word;
    background-color: var(--bs-card-bg);
    background-clip: border-box;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
}
.button2, .btn-secondary, .btn-default {
    color: #fff;
    border-radius: 2px;
    font-family: 'Varela Round';
    font-weight: 400;
    font-size: 14px;
    border-color: #efefef;
    padding: 6px 20px;
    width: fit-content;
    border-style: solid;
    border-width: 1.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0099a8;
}
/* Multi-select / checkbox container */
.msos-selection {
    overflow: auto;
    max-height: 140px;
    background: #fff;
    margin: 0;
    padding: 0;
}

.msos-optionitem,
.msos-option,
.msos-label,
.msos-optionitem-text {
    width: 100% !important;
    display: flex !important;
    align-items: center;
}

.checkbox input {
    transform: scale(1.7);
    margin-right: 6px;
}

tbody, td, tfoot, th, thead, tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
    background: white;
}
#provinceAccordion td,
#provinceAccordion tbody,
#provinceAccordion tr {
    background: #efefef;
}
/*offcanvas calendar*/
.offcanvas-header {
    display: block;
    align-items: center;
    justify-content: space-between;
    padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
}
p, .p, .page_section p, .section-diagonal-left p, .section-diagonal-right p, p.form-text span {
    font-family: 'Varela Round';
    font-weight: 400;
    font-size: 20px;
    color: #111010;
}

/*Sign up page checkbox for existing customer*/

div.checkbox:has([name="RedeemByLogin"]){
    display: none !important;
}