:root {
    --question-red: #f97679;
    --danger-red: #a42543;
    --yellow: #f5b24c;
    --mindflex-teal: #00c6b9;
    --dark-green: #009389;
    --info-blue: #57889c;
    --light-purple: #cfc2fe;
    --purple: #2b2b98;
    --light-grey: #f3f3f3;
    --dark-grey: #a6a6a6;
    --light-blue: #0088cc;
    --darker-green: #325a3d;
}

/****************************************** General ******************************************/
html,
body {
    /* This is to override setting the body as an image in smartadmin */
    background: var(--light-grey) !important;
}

h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/****************************************** Table css ******************************************/

.data-table {
    border: none;
    margin: 10px 0;
    width: 100%;
}

/* Table headers */

.data-table th {
    padding: 10px;
    border-right: 3px solid var(--light-grey);
    border-left: 3px solid var(--light-grey);
    background-color: var(--mindflex-teal) !important;
    color: black;
}

.data-table th:first-child {
    border-radius: 1em 0 0 0;
    border-left: none !important;
}

.data-table th:last-child {
    border-radius: 0 1em 0 0;
    border-right: none !important;
}

.data-table thead tr {
    border: none !important;
}

.data-table thead {
    display: table-header-group;
}

/* Table rows */

.data-table tr {
    border-bottom: 4px solid var(--mindflex-teal);
    background: white;
}

.data-table td {
    padding: 10px;
    border-right: 3px solid var(--light-grey);
    border-left: 3px solid var(--light-grey);
    vertical-align: top;
}

.data-table td:first-child {
    border-left: none !important;
}

.data-table td:last-child {
    border-right: none !important;
}
/* For archived assignments */
.archived-row {
    background: lightgrey !important;
}

/****************************************** icon buttons ******************************************/
/* buttons with icons as the content, like copy buttons */

.iconBtn {
    cursor: pointer;
    padding: 0.25em !important;
    margin: 0 !important;
    text-align: center;
    background: transparent;
    height: fit-content;
    width: fit-content;
}

.iconBtn i {
    color: var(--dark-grey);
}

/****************************************** buttons ******************************************/
button {
    border-radius: 0.5em !important;
    border: none !important;
    padding: 0.25em 0.5em !important;
    margin: 0.25em !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    /* Makes the button darker when hovering */
    background-image: linear-gradient(rgb(0 0 0/20%) 0 0);
}

/****************************************** inputs ******************************************/

input,
select,
label,
textArea {
    border-radius: 0.5em !important;
}

input {
    border-style: solid;
    border-color: var(--dark-grey) !important;
}

/****************************************** Scrollbar ******************************************/

/* width */
::-webkit-scrollbar {
    width: 0.75em;
}

/* Track */
::-webkit-scrollbar-track {
    border-radius: 0.5em !important;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--dark-grey);
    border-radius: 0.5em !important;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--dark-grey);
}

/****************************************** Classes ******************************************/

.label-danger {
    background-color: var(--danger-red) !important;
    color: white !important;
}

.label-warning {
    color: white !important;
}

.label-black {
    background-color: lightgray !important;
    color: black !important;
    text-align: center;
}

/* The divider used in assignments-listing */
.divider {
    flex: 1;
    height: 1px;
    margin: 5px;
    background: var(--light-grey);
}

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

/****************************************** ribbon  ******************************************/
/* This determines the styling of the ribbon at the top of each page */

.top-ribbon {
    height: 41px;
    max-height: 41px;
    background: #474544;
    z-index: 999;
    display: flex;
    border: none;
    align-items: center;
    padding: 0 30px;
}

/* The div containing the input search bar and enter button in the ribbon */
.top-ribbon #newSearch {
    align-items: center;
    max-height: 30px;
}

/* This class is the table containing the contents of the ribbon */
.ribbon-table {
    flex: 1;
    border: none;
    display: table;
}

.ribbon-table button {
    background: none;
    align-items: center;
    cursor: pointer;
}

.ribbon-table tr {
    display: flex;
    flex: 1;
}

.ribbon-table td {
    border: none;
    color: white;
    display: flex;
    align-items: center;
}

.td-icon-button {
    width: 40px;
    justify-content: center;
}

/****************************************** banner with search bar  ******************************************/
/* This determines the styling for the banner above page contents, which usually contain a search bar */

.top-banner {
    z-index: 3;
    background: white;
    align-items: center;
    vertical-align: middle;
    border-radius: 1em;
}

.top-banner form {
    padding: 15px;
    margin: 0;
    display: flex;
    overflow-y: hidden;
    overflow-x: hidden;
}

/****************************************** page footer  ******************************************/
/* Control Page footer styling */
@media only screen and (max-width: 3520px) {
    .page-footer {
        height: 85px;
    }
}

@media only screen and (max-width: 1520px) {
    .page-footer {
        height: 85px;
    }
}

@media only screen and (max-width: 640px) {
    .page-footer {
        height: 150px;
    }
}

@media only screen and (max-width: 390px) {
    .page-footer {
        height: 200px;
    }
}

/****************************************** backgrounds ******************************************/

.bg-dark-green {
    background: var(--dark-green);
    color: white;
}

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

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

.bg-light-purple {
    background: var(--light-purple);
    color: black;
}

.bg-danger-red {
    background: var(--danger-red);
    color: white;
}

.bg-question-red {
    background-color: var(--question-red);
    color: black;
}

.bg-info-blue {
    background: var(--info-blue);
    color: white;
}

.bg-light-blue {
    background: var(--light-blue);
    color: white;
}

.bg-light-grey {
    background: var(--light-grey);
    color: black;
}

.outline-question-red {
    border: 2px solid var(--question-red) !important;
    color: var(--question-red);
    background: white;
    font-weight: 700;
}

.outline-dark-green {
    border: 2px solid var(--dark-green) !important;
    color: var(--dark-green);
    background: white;
    font-weight: 700;
}

.outline-yellow {
    border: 2px solid var(--yellow) !important;
    color: var(--yellow);
    background: white;
    font-weight: 700;
}

.outline-copy-paste {
    border: 2px solid #4BB6C1 !important;
    color: #4BB6C1;
    background: white;
    font-weight: 700;
}
/****************************************** drop down menus ******************************************/
.dropdown-menu {
    border-radius: 1em;
}

/****************************************** old ADM styling ******************************************/

.assignments-edit-form input.form-control {
    display: block;
    width: 100%;
    height: 32px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 0;
    -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    -webkit-transition: border-color ease-in-out 0.15s,
        box-shadow ease-in-out 0.15s;
    -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    border-radius: 5px !important;
}
.assignments-edit-form input.form-control,
.assignments-edit-form textarea.form-control,
.assignments-edit-form select.form-control,
.form-group.levels-and-subjects {
    border-radius: 5px !important;
}
.assignments-edit-form .form-group {
    margin-bottom: 20px;
}

.assignments-edit-form .form-group > label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}
.assignments-edit-form input[type="checkbox"] {
    display: block;
}
.assignments-edit-form input[type="checkbox"].pill {
    display: none;
}
.assignments-edit-form input[type="checkbox"] + label:before {
    font-family: inherit;
    display: inherit;
}
.assignments-edit-form input[type="checkbox"] + label:before {
    content: "";
    font-size: 20px;
}
.assignments-edit-form input[type="checkbox"]:checked + label:before {
    content: "";
}

.smart-form .toggle {
    font-size: 13px;
}

.custom_rates {
    width: 100%;
}

.checkbox {
    display: block;
    margin-bottom: 5px;
    margin-top: 0;
}

.form-group.gender_select .checkbox,
.form-group.race_select .checkbox {
    width: 110px;
    display: inline-block;
    margin-bottom: 5px;
    margin-top: 0;
}

.form-group.gender_select label,
.form-group.race_select label {
    display: block;
}
.assignments-edit-form .btn-group-justified {
    width: 200px;
}
.assignments-edit-form .btn-group-justified a {
    padding: 2px;
}
.btn-group-justified .btn-primary {
    background: #00c6b8;
    border-color: #00c6b8;
}
.btn-group-justified .btn-warning {
    background: #ff9000;
    border-color: #ff9000;
}
.form-group.levels-and-subjects {
    background: #c0ebfb;
    padding: 10px;
}
.form-group.levels-and-subjects .panel-group {
    margin-bottom: 0;
}
.levels-and-subjects {
    background: #c0ebfb;
}
.assignments-edit-form .panel-heading {
    background-color: #c0ebfb;
    border: 0;
    padding: 0;
}
.assignments-edit-form .panel-heading > .panel-title > a > label > input {
    vertical-align: middle;
    position: relative;
    bottom: 3px;
}
.subject > label > input {
    vertical-align: middle;
    position: relative;
    bottom: 3px;
}
.assignments-edit-form .panel-body {
    border: 0;
    padding: 6px 0 0;
    margin-bottom: 10px;
}
.subjects {
    padding: 10px;
    background-color: #eefafe;
}
.panel-group.levels-and-subjects .panel-title label {
    font-size: 13px;
}
.toggle.ios,
.toggle-on,
.toggle-off {
    border-radius: 20px;
}
.toggle .toggle-handle {
    border-radius: 20px;
}
.btn-primary.toggle-on,
.toggle.btn.btn-primary {
    background-color: #00c6b8 !important;
    border-color: #00c6b8 !important;
}
.checkbox-table td > label,
.strong-label {
    font-weight: 700;
}
.checkbox-table tr td:first-child {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    word-break: break-all;
}
.checkbox-table tr td {
    vertical-align: top;
}
table.email-content {
    min-width: 50%;
}
table.email-content .form-control {
    margin-bottom: 10px;
}
table.email-content tr td:first-child {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    word-break: break-all;
}
table.email-content tr td {
    vertical-align: top;
}
#display-assignments-edit h3 {
    margin: 10px 0;
}
#display-assignments-edit hr {
    margin: 10px 0;
}
#ribbon {
    color: #fff;
}
.custom_rates tr td:last-child {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    word-break: break-all;
}
.custom_rates tr td {
    vertical-align: middle;
}
.rate_row {
    margin-bottom: 10px;
    display: block;
}

#tutor-payment-details {
    font-size: 14px;  
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates three columns */
    grid-gap: 20px; /* Space between columns */
    max-width: 900px;
    margin: auto;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.with-warning {
    display: flex;
    flex-direction: column;
}

/* used in assignments-edit */
.subcategories > .subject {
    width: 105px;
}
.subcategories {
    padding-left: 10px;
}
.subjects-heading {
    margin-bottom: 5px;
}

#submitbutt {
    float: right;
    background-color: var(--mindflex-teal);
    font-weight: 700;
    color: white;
    padding:10px 50px!important;
}

#submitbutt:disabled {
    opacity: 50% !important;
    cursor: wait;
}

#sendwhatsappbutton {
    float: right;
    background-color: var(--yellow);
    font-weight: 700;
    color: white;
    padding:10px 50px!important;
}

.manual-unsub,
.manual-resub {
    display: inline-block;
    margin: 10px;
    padding: 5px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: #eee !important;
}
.rating-input {
    display: none;
}
.reviews-search {
    /* background-color: #e8e8e8;
    margin: 0;
    padding: 0; */
    /* max-height: 400px; */
    /* overflow-y: hidden;
    overflow-x: hidden; */
}
.review-hidden p {
    opacity: 0.3;
}
.client-reviews {
    max-height: 210px;
    overflow-y: scroll;
    margin-top: 10px;
}
.d-inline {
    display: inline;
}
.edit-view-reviews {
    margin-left: 10px;
}
.edit-view-reviews td {
    padding: 0 20px 0 0;
}
.circle-with-text {
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    text-align: center;
    display: flex;
    background: #354e80;
    width: 20px;
    height: 20px;
    color: white;
}
.btn.update-review {
    margin-bottom: 5px;
}
.golden {
    color: #ffd700;
}

.include-buttons {
    display: inline-block;
}
.include-buttons .dropdown-toggle {
    margin-right: 5px;
    margin-bottom: 5px;
}

.example .btn-toggle {
    top: 50%;
    transform: translateY(-50%);
}
.btn-toggle {
    padding: 0;
    position: relative;
    border: none;
    height: 1.5rem;
    width: 3rem;
    border-radius: 1.5rem;
    color: #6b7381;
    background: #bdc1c8;
}
.btn-toggle:focus,
.btn-toggle.focus,
.btn-toggle:focus.active,
.btn-toggle.focus.active {
    outline: none;
}
.btn-toggle:before,
.btn-toggle:after {
    line-height: 1.5rem;
    width: 4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0;
    transition: opacity 0.25s;
}
.btn-toggle:before {
    content: "";
    left: -4rem;
}
.btn-toggle:after {
    content: "Update Required";
    right: -5rem;
    opacity: 1;
    line-height: 1.5rem;
    width: 4rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.btn-toggle > .handle {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 1.125rem;
    background: #fff;
    transition: left 0.25s;
}
.btn-toggle.active {
    transition: background-color 0.25s;
}
.btn-toggle.active > .handle {
    left: 1.6875rem;
    transition: left 0.25s;
}
.btn-toggle.active:before {
    opacity: 0.5;
}
.btn-toggle.active:after {
    opacity: 1;
}
.btn-toggle:before,
.btn-toggle:after {
    color: #6b7381;
}
.btn-toggle.active {
    background-color: #29b5a8;
}
.popover {
    max-width: 700px;
    max-height: 400px;
    overflow-y: auto;
    min-width: 500px;
}
.popover .panel {
    width: 100%;
}
.headerr .field-label {
    display: inline;
}

.updated .changelog-popover {
    display: none;
}
.update-required .changelog-popover {
    display: inline-block;
}

.update-required .headerr.updated .field-label,
.update-required td.updated strong {
    background: #f3f87d;
}
.changelog-popover {
    background: #e8f0f8;
}

.bigBox {
    position: fixed;
    right: 10px;
    top: 10px;
    background-color: #004d60;
    width: 700px;
    height: 500px;
}
.bigBox th {
    background-color: #1E766E;
}
#divMiniIcons, .bigboxicon {
    display: none;
}
/* Button used to open the contact form - fixed at the bottom of the page */
.popopen-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 280px;
  opacity: 0.8;
  position: fixed;
  right: 28px;
}
/* The popup form - hidden by default */
.queue-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}
/* Add styles to the form container */
.queue-container {

  max-width: 300px;
  padding: 10px;
  background-color: white;
}
.queuetablediv{
   overflow-y: auto;
  overflow-x: hidden;
  max-height: 500px;   
}
/* Set a style for the submit/login button */
.queue-container .btn {
  background-color: #04AA6D;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 280px;
  margin-bottom:10px;
  opacity: 0.8;
}
/* Add some hover effects to buttons */
.queue-container .btn:hover, .open-button:hover {
  opacity: 1;
}
#deletequeuebutton{
    border-radius: 50%;
    background-color: #fe4a55;
    color: white;
    border: 0px;
}
#deletequeuebutton:hover{
    opacity: 0.8;
}
.btn-save-textarea {
    display: none!important;
}

.profile-fields-table td,
.profile-fields-table th {
    padding: 10px;
}

.container-fluid.fancybox-content {
    overflow: visible;
}
.popover.profile-fields-popover {
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    width: 200px !important; /* Adjust the width as needed */
    overflow-x: hidden !important;
}
.profile-fields-textarea {
    padding: 10px;
    font-size: 1em;
}
.profile-fields-popover .popover-content {
    width: auto !important; /* Let the content define the width */
    padding: 9px 14px !important; /* Adjust padding as needed */
}
.lineCheckbox {
    position:relative;
    opacity:1;
    z-index:1;
}