html {
    overflow-y: scroll;
}

body {
    font-family: 'Lato';
    background-color: #d2232a !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    font-family: 'Montserrat';
    text-transform: uppercase;
}

hr.star-light,
hr.star-dark {
    max-width: 15rem;
    padding: 0;
    text-align: center;
    border: none;
    border-top: solid 0.25rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

hr.star-light:after,
hr.star-dark:after {
    position: relative;
    top: -.8em;
    display: inline-block;
    padding: 0 0.25em;
    content: '\f005';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2em;
}

hr.star-light {
    border-color: #fff;
}

hr.star-light:after {
    color: #fff;
    background-color: #18BC9C;
}

hr.star-dark {
    border-color: #2C3E50;
}

hr.star-dark:after {
    color: #2C3E50;
    background-color: white;
}

section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.25rem;
    line-height: 2rem;
}

@media (min-width: 992px) {
    section h2 {
        font-size: 3rem;
        line-height: 2.5rem;
    }
}

.btn-xl {
    padding: 1rem 1.75rem;
    font-size: 1.25rem;
}

.btn-social {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.25rem;
    line-height: 2rem;
}

.scroll-to-top {
    z-index: 1042;
    right: 1rem;
    bottom: 1rem;
    display: none;
}

.scroll-to-top a {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(33, 37, 41, 0.5);
    line-height: 3.1rem;
}

#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-weight: 700;
    font-family: 'Montserrat';
}

#mainNav .navbar-brand {
    color: #000000;
    display: inline-block;
    font-weight: normal;
    max-width: 60vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mainNav .navbar-brand .brand-text {
    font-weight: bold;
}

#mainNav .navbar-nav {
    margin-top: 1rem;
    letter-spacing: 0.0625rem;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
    color: #000000;
}

#mainNav .navbar-nav li.nav-item a.nav-link:hover {
    color: #FFF;
}

#mainNav .navbar-nav li.nav-item a.nav-link:active, #mainNav .navbar-nav li.nav-item a.nav-link:focus {
    color: #FFF;
}

#mainNav .navbar-nav li.nav-item a.nav-link.active {
    color: #FFF;
}

#mainNav .navbar-toggler {
    font-size: 80%;
    padding: 0.8rem;
    outline: none !important;
    box-shadow: none !important;
}

#mainNav .navbar-toggler:hover, #mainNav .navbar-toggler:focus, #mainNav .navbar-toggler:active {
    color: #fff !important;
    background-color: #242424 !important;
    border-color: #242424 !important;
}

#mainNav .navbar-nav li.dropdown div.dropdown-menu {
    background-color: #d2232a !important;
    border: none !important;
    margin: auto !important;
}

#mainNav .navbar-nav li.dropdown div.dropdown-menu .dropdown-item {
    color: #000000 !important;
}

#mainNav .navbar-nav li.dropdown div.dropdown-menu .dropdown-item:hover {
    color: #fff !important;
    background-color: transparent !important;
}

@media (min-width: 992px) {
    #mainNav {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        -webkit-transition: padding-top 0.3s, padding-bottom 0.3s;
        transition: padding-top 0.3s, padding-bottom 0.3s;
    }

    #mainNav .navbar-brand {
        font-size: 2em;
        -webkit-transition: font-size 0.3s;
        transition: font-size 0.3s;
    }

    #mainNav .navbar-nav {
        font-size: 0.9em;
        margin-top: 0;
    }
    #mainNav .navbar-nav > li.nav-item > a.nav-link.active {
        color: #fff;
    }
    #mainNav .navbar-nav > li.nav-item > a.nav-link.active:active, #mainNav .navbar-nav > li.nav-item > a.nav-link.active:focus, #mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover {
        color: #fff;
    }
    #mainNav.navbar-shrink {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    #mainNav.navbar-shrink .navbar-brand {
        font-size: 1.8em;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}

header.masthead {
    padding-top: 69px;
    padding-bottom: 2rem;
}

header.masthead > .container:not(:has(.top-bar)) {
    margin-top: 2rem;
}

.portfolio {
    margin-bottom: -15px;
}

.portfolio .portfolio-item {
    position: relative;
    display: block;
    max-width: 25rem;
    margin-bottom: 15px;
}

.portfolio .portfolio-item .portfolio-item-caption {
    -webkit-transition: all ease 0.5s;
    transition: all ease 0.5s;
    opacity: 0;
    background-color: rgba(24, 188, 156, 0.9);
}

.portfolio .portfolio-item .portfolio-item-caption:hover {
    opacity: 1;
}

.portfolio .portfolio-item .portfolio-item-caption .portfolio-item-caption-content {
    font-size: 1.5rem;
}

@media (min-width: 576px) {
    .portfolio {
        margin-bottom: -30px;
    }
    .portfolio .portfolio-item {
        margin-bottom: 30px;
    }
}

.portfolio-modal .portfolio-modal-dialog {
    padding: 3rem 1rem;
    min-height: calc(100vh - 2rem);
    margin: 1rem calc(1rem - 8px);
    position: relative;
    z-index: 2;
    -webkit-box-shadow: 0 0 3rem 1rem rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 3rem 1rem rgba(0, 0, 0, 0.5);
}

.portfolio-modal .portfolio-modal-dialog .close-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.portfolio-modal .portfolio-modal-dialog .close-button i {
    line-height: 38px;
}

.portfolio-modal .portfolio-modal-dialog h2 {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .portfolio-modal .portfolio-modal-dialog {
        min-height: 100vh;
        padding: 5rem;
        margin: 3rem calc(3rem - 8px);
    }
    .portfolio-modal .portfolio-modal-dialog h2 {
        font-size: 3rem;
    }
}

.floating-label-form-group {
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.floating-label-form-group input,
.floating-label-form-group textarea {
    font-size: 1.5em;
    position: relative;
    z-index: 1;
    padding-right: 0;
    padding-left: 0;
    resize: none;
    border: none;
    border-radius: 0;
    background: none;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

.floating-label-form-group label {
    font-size: 0.85em;
    line-height: 1.764705882em;
    position: relative;
    z-index: 0;
    top: 2em;
    display: block;
    margin: 0;
    -webkit-transition: top 0.3s ease, opacity 0.3s ease;
    transition: top 0.3s ease, opacity 0.3s ease;
    vertical-align: middle;
    vertical-align: baseline;
    opacity: 0;
}

.floating-label-form-group:not(:first-child) {
    padding-left: 14px;
    border-left: 1px solid #e9ecef;
}

.floating-label-form-group-with-value label {
    top: 0;
    opacity: 1;
}

.floating-label-form-group-with-focus label {
    color: #18BC9C;
}

.footer {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #2C3E50;
    color: #fff;
}

.copyright {
    color: #000;
    background-color: #d2232a;
    font-family: 'Montserrat';
    font-weight: 400;
    white-space: nowrap;
    font-size: clamp(.6em, 2.5vw, .875em);
}

.copyright a {
    color: #000;
}

.copyright a:focus, a:hover, a:active {
    color: #000;
}

.btn {
    border-width: 2px;
}

.bg-primary {
    background-color: #242424 !important;
}

.bg-secondary {
    background-color: #d2232a !important;
}

.text-primary {
    color: #18BC9C !important;
}

.text-secondary {
    color: #2C3E50 !important;
}

.text-middle {
    vertical-align: middle !important;
}

.btn-primary,
.btn-primary:disabled {
    color: #212526;
    background-color: #F8F9F6;
    border-color: #F8F9F6;
}

.btn-primary:not(:disabled):hover,
.btn-primary:not(:disabled):focus,
.btn-primary:not(:disabled):active {
    color: #212526 !important;
    background-color: #ADAEAC !important;
    border-color: #ADAEAC !important;
}

/* PREVENT BLUE BUTTON */
.btn-primary.search-toggle.active {
    color: #212526 !important;
    background-color: #F8F9F6 !important;
    border-color: #F8F9F6 !important;
}

.btn-user {
    width: 200px;
    margin: 20px;
}

.btn-admin {
    padding: 0.4rem 1rem;
    margin: -34px 0px 20px 0px;
}

.row {
    margin-bottom: 5px;
}

.btn-new {
    margin: 5px;
}

.btn-new-success {
    margin: 0px 10px 10px 10px;
}

.btn-right {
    float: right;
}

.btn-secondary {
    background-color: #2C3E50;
    border-color: #2C3E50;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background-color: #1a252f;
    border-color: #1a252f;
}

.btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-xs {
    padding  : .40rem .60rem;
    font-size  : .875rem;
    line-height  : .5;
    border-radius : .2rem;
}

.btn-hidden {
    display: none;
}

.btn-radio.active {
    color: #212526 !important;
    background-color: #ADAEAC !important;
    border-color: #ADAEAC !important;
}

@media (max-width: 500px) {
    .col-btn-group {
        flex-basis: initial !important;
        margin-top: 14px;
    }

    .btn-group, .btn-radio {
        width: 100%;
    }
}

.load, .info {
    width: 100%;
}

hr {
    margin: 40px;
    border: 0;
    height: 2px;
    background-image: -webkit-linear-gradient(left, rgba(205,35,45,0), rgba(205,35,45,0.75), rgba(205,35,45,0));
    background-image: -moz-linear-gradient(left, rgba(205,35,45,0), rgba(205,35,45,0.75), rgba(205,35,45,0));
    background-image: -ms-linear-gradient(left, rgba(205,35,45,0), rgba(205,35,45,0.75), rgba(205,35,45,0));
    background-image: -o-linear-gradient(left, rgba(205,35,45,0), rgba(205,35,45,0.75), rgba(205,35,45,0));
}

hr.no-margin {
    margin: 1rem !important;
}

hr.small-margin {
    margin: 30px 0px 10px 0px !important;
}

.col-btn-new {
    width: 90%;
    margin: 25px auto;
    padding: 0px;
}

.col-admin {
    padding: 0px !important;
}

.btn-width-toggle {
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    justify-content: space-around;
    -webkit-justify-content: space-around;
    flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
}

.btn-width-toggle label {
    width: 100%;
}

.content-container {
    width: 90%;
    margin: auto;
}

td.invisible_bg {
    padding: 0.25rem !important;
}

table.invisible_bg {
    width: 100%;
}

table.invisible_bg td {
    padding: 0.25rem !important;
    vertical-align: middle !important;
    border-top: initial !important;
}

table.invisible_bg .min-width {
    min-width: 100px;
}

table.invisible_bg .w-15 {
    width: 15%;
}

table.invisible_bg .w-70 {
    width: 70%;
}

.thead-small th {
    border-bottom: 0px !important;
    padding: 0.5rem !important;
}

table .far, table .fas {
    margin: 0px 8px;
}

table .fa-long-arrow-alt-down {
    margin: 0px 3px !important;
    font-size: 24px !important;
    vertical-align: middle !important;
}

a.inherit {
    color: inherit !important;
    text-decoration: none !important;
}

table:not(.form) a:not(.inherit) {
    color: white !important;
    text-decoration: none !important;
}

table:not(.form) a:not(.inherit):hover {
    color: white !important;
}

.bg-grey {
    background-color: #101010 !important;
}

.tight-column {
    width: 1%;
    white-space: nowrap;
}

/* table form */
table.form {
    margin: auto;
    width: auto;
    border-collapse: separate;
    border-spacing: 0 1rem;
    margin-top: -1rem;
}

table.form > tbody > tr.title > th {
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    background-color: #adb5bd;
    border: 1px solid #6c757d;
    border-radius: .25rem;
    white-space: nowrap;
    width: 1%;
}

table.form > tbody > tr:not(.title) > th {
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: left;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    white-space: nowrap;
    width: 1%;
}

table.form > tbody > tr > td:not(.form_ibg) {
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: left;
    background-color: #ffffff;
    border-top: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
    width: 99%;
}

table.form > tbody > tr > td:not(.form_ibg) > input[type="text"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 100%;
    color: #495057;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: content-box;
}

table.form > tbody > tr > td:not(.form_ibg) > input[type="text"]:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
    box-sizing: border-box;
    white-space: nowrap;
}

table.form > tbody > tr > td:not(.form_ibg) > input[type="text"][readonly] {
    color: #6c757d;
}

table.form > tbody > tr > td:not(.form_ibg) > select {
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    color: #495057;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: content-box;
}

table.form > tbody > tr > td:not(.form_ibg) > select:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
    box-sizing: border-box;
    white-space: nowrap;
}

table.form > tbody > tr > td:not(.form_ibg) > input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
}

table.form > tbody > tr > td:not(.form_ibg) > textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 100%;
    color: #495057;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: content-box;
}

table.form > tbody > tr > td:not(.form_ibg) > textarea:focus {
    outline: none;
    box-shadow: none;
    border-color: inherit;
    box-sizing: border-box;
    white-space: nowrap;
}

.table-responsive {
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
     -ms-overflow-style: none; /* IE/Edge */
}

.table-responsive::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.form-control.search {
    height: 40px;
}

.input-group-sm .btn,
.btn-sm {
    border: 1px !important;
}

.fit-content {
    max-width: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.addInput, .removeInput {
    width: 32px;
}

body.modal-open,
body.modal-open .modal {
    padding-right: 0 !important;
}

input.hourInput,
input.user_hourly_rate,
input.materialInput,
select.materialSelect,
input.discountInput {
    width: 10ch;
    margin: auto;
}

table.fixed-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.fa-with-plus,
.fa-with-edit {
  position: relative;
}

.fa-with-plus::after {
  content: '\f067';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.5em;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  text-align: center;
  width: 12px;
  line-height: 12px;
  height: 12px;
}

select.year_select {
    min-width: 70px !important;
}

.table-hover tbody tr:hover {
    color: inherit !important;
}

/* CHANGE DATEPICKER COLORS */
.daterangepicker td.in-range {
    background-color: #e9ecef;
}

.daterangepicker .ranges li.active {
    background-color: #adb5bd;
}

.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: #adb5bd;
}

/* BADGE */
#mainNav .navbar-toggler-text,
#mainNav .nav-item a.nav-link,
#mainNav .nav-item a.dropdown-item {
    line-height: 1;
    margin: 0.2rem 0;
    display: inline-flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

#mainNav .nav-item a.nav-link:focus,
#mainNav .nav-item a.nav-link:active,
#mainNav .nav-item a.dropdown-item:focus,
#mainNav .nav-item a.dropdown-item:active {
  outline: none;
  box-shadow: none;
}

#mainNav .navbar-toggler-text .custom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.6rem;
  height: 0.6rem;
  line-height: normal;
  padding: 0 0.3rem;
  font-size: 0.55rem;
  border-radius: .25rem;
  background-color: white;
  color: black;
}

#mainNav .nav-item a.nav-link .custom-badge,
#mainNav .nav-item a.dropdown-item .custom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.7rem;
  height: 0.7rem;
  line-height: normal;
  padding: 0 0.3rem;
  font-size: 0.55rem;
  border-radius: .25rem;
  background-color: black;
  color: white;
}

#mainNav .nav-item a.nav-link:hover .custom-badge,
#mainNav .nav-item a.dropdown-item:hover .custom-badge {
  background-color: white;
  color: black;
}

/* TOAST */
.toast.message {
    position: fixed;
    top: 93px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    min-width: 300px;
    font-size: 1rem;
    border-radius: 0.5rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5), 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* CHANGE LOAD ICON */
.spinner-border-sm {
    width: 1rem !important;
    height: 1rem !important;
    border-width: 0.2em !important;
}

/* RESET COLORS TO BOOTSTRAP V4.1 */
.table {
    border-radius: .25rem;
    overflow: hidden;
}

.table-dark {
    background-color: #2c3035;
    color: #fff;
}

.table-dark th,
.table-dark td,
.table-dark thead th {
    border-color: #32383e;
}

.table-dark:not(.rows-by-hand) > tbody > tr:nth-of-type(odd),
.table-dark > tbody > tr.odd,
.table-dark > thead > tr.odd {
    background-color: rgba(255, 255, 255, .05);
}

.table-dark.table-hover > tbody > tr:hover {
    background-color: rgba(255, 255, 255, .075);
    color: white;
}

.table-dark .invisible_bg tr {
    background-color: transparent !important;
}

.aligned-input-groups .input-group-text {
    width: 100%;
}

.form-control input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
}

.top-bar {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    background-color: #242424;
    position: sticky;
    top: 69px;
    z-index: 1000;
    flex-wrap: wrap;
}

.top-bar-toggle {
    flex: 1;
    max-width: 90%;
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    align-items: center;
}

.top-bar-new {
    flex: 1;
    max-width: 10%;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-buttons {
    flex: 1;
    max-width: 20%;
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    align-items: center;
}

.top-bar-search {
    flex: 1;
    max-width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-toggle label.btn-radio,
.top-bar-new a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

form.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

form.search-form .form-control {
    flex: 1 1 19%;
    min-width: 0;
}

form.search-form .form-control[name="daterange"] {
    flex: 1 1 auto;
    width: 23ch;
}

.search-toggle {
    display: none;
}

.search-toggle i::before {
    content: "\f00e";
}

.search-toggle.active i::before {
    content: "\f010";
}

.itemSpan {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, .075);
    font-size: 0.85rem;
    line-height: 1.3;
}

.itemSpan small {
    color: #bbb;
    text-transform: lowercase;
}

.btn-new-success small {
    color: #f1f1f1;
    text-transform: lowercase;
}

.record td .itemSpan {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.record td .activitySpan {
    background-color: rgba(255, 255, 255, 0.125);
}

.record td .materialSpan {
    background-color: rgba(255, 255, 255, 0.075);
}

.record td .itemSpan small {
    color: #bbb;
}

.record_note {
    font-size: 0.9rem;
    font-style: italic;
}

.input-group .input-group-append .custom-select,
.input-group .input-group-append .input-group-text {
    border-radius: 0 0.25rem 0.25rem 0 !important;
}

.custom-select:focus {
    border-color: #ced4da;
    box-shadow: none;
    outline: none;
}

.modal-header, .modal-footer {
    border: none;
}

span.left {
    float: left;
}

span.center {
    float: left;
}

span.right {
    float: right;
}

span.left.day {
    padding-left: 10px;
}

.tooltip-inner {
    text-align: left !important;
}

.tooltip-inner tr td:last-child {
    padding-left: 10px;
}

.small_form {
    width: 90%;
    margin: auto;
}

.form-inline .center {
    margin: auto;
}

.form-inline .form-control {
    float: left !important;
    width: auto !important;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
    outline: none;
}

.small-bottom > span {
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.small-bottom-2 > span {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.form-button {
    padding-top: 10px;
    text-align: center !important;
}

.btn-form {
    margin: 10px 20px;
}

.form-check-padding {
    padding-bottom: 20px;
}

.time-start{
    width: 45% !important;
    float: left;
    text-align: left;
}

.time-end {
    width: 45% !important;
    float: right;
    text-align: right;
}

.time-start select, .time-end select {
    display: inline-block;
    width: 40%;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}

.lh {
    line-height: calc(24px + 1rem);
}

#gdpr p {
    width: 90%;
    margin: auto;
}

.alert-danger {
    display : flex;
    align-items : center;
    color: #fff;
    background-color: #dc3545;
    border-color: #bd2130;
}

.alert-danger .text {
    color: inherit;
    background: none;
    width: calc(100% - 36px);
}

#pin {
    background: #242424;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: auto;
    color: rgba(255, 255, 255, 0.2);
}

.dots {
    width: 50%;
    display: flex;
    justify-content: space-around;
    padding: 1em;
}

.dot {
    position: relative;
    background: #FCF9F6;
    border-radius: 0.8em;
    width: 0.8em;
    height: 0.8em;
    transform: scale3d(0.7, 0.7, 0.7);
}

.dot.active {
    animation: growDot .5s ease;
    animation-fill-mode: forwards;
}

.dot.wrong {
    animation: wrong .9s ease;
}

.dot.correct {
    animation: correct .9s ease;
}

#pin p {
    font-size: .8em;
}

.numbers {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-around;
    align-content: flex-end;
}

.number {
    position: relative;
    width: 2.4em;
    height: 2.4em;
    margin: 0.4em;
    border-radius: 2.4em;
    color: #212526;
    background-color: #FCF9F6;
    text-align: center;
    line-height: 2.4em;
    font-weight: 400;
    font-size: 1.8em;
    cursor: pointer;
    user-select: none;
    transition: all .2s ease;
}

.number:hover {
    background-color: #ADAEAC;
}

.number:before {
    content: "";
    position: absolute;
    left: -2px;
    width: 2.4em;
    height: 2.4em;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.4em;
    transition: all .5s ease;
}

@keyframes growDot {
    100% {
        background: #ADAEAC;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes wrong {
    20% {
        background: crimson;
    }
    40% {
        transform: translate(-15px, 0);
    }
    60% {
        transform: translate(10px, 0);
    }
    80% {
        transform: translate(-5px, 0);
    }
}

@keyframes correct {
    20% {
        background: limegreen;
    }
    40% {
        transform: translate(0, -15px);
    }
    60% {
        transform: translate(0, 10px);
    }
    80% {
        transform: translate(0, -5px);
    }
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .top-bar:has(.top-bar-search) {
        flex-direction: column;
        align-items: center;
    }

    .top-bar-buttons {
        max-width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }

    .top-bar-search {
        display: none;
        width: 100%;
    }

    .top-bar-search.active {
        display: flex;
        justify-content: center;
    }

    form.search-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 320px;
    }

    form.search-form .form-control {
        width: 100% !important;
        flex: none !important;
    }

    form.search-form button {
        width: 100%;
        height: 40px;
    }

    .search-toggle {
        display: block;
    }

    #mainNav .navbar-nav li.dropdown div.dropdown-menu {
        padding: 0 !important;
    }

    table.form > tbody > tr > td:not(.form_ibg) > select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .record td table tr.data-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .record td table tr.data-row .min-width,
    .record td table tr.data-row .w-15 {
        flex: 0 0 100px;
        text-align: center;
        width: auto !important;
    }

    .record td table tr.data-row .w-70 {
        flex: 1;
        text-align: center;
    }

    .record td table tr:not(:first-child) {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin-bottom: 0.25rem;
        text-align: center;
    }

    .record td .itemSpan {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.5rem;
        margin: 0.2rem 0.1rem;
        font-size: 0.85em;
    }

    .record_note {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
    }

    #agenda h3 {
        font-size: 1.45rem;
    }

    #agenda .small-bottom {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        white-space: nowrap;
    }

    #agenda .small-bottom .left {
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 1rem;
    }
}

@media (max-width: 500px) {
    .top-bar span {
        width: 100%;
        text-align: center !important;
    }

    .top-bar input {
        display: inline-block;
        width: calc(100% - 46px);
        vertical-align: middle;
    }

    span.left.day {
        padding-left: 0px;
    }

    a.btn-allRecords {
        width: 100%;
    }

    #admin_container {
        font-size: 0.5rem !important;
    }

    #admin_container .btn {
        font-size: 0.75rem !important;
    }

    #admin_container .table th, #admin_container .table td {
        padding: 0.75rem 0.25rem !important;
    }
}

@media (min-width: 992px) {
    .top-bar-search button[type="submit"]{
        width: 50px;
    }

    .shrink {
        zoom: 0.9;
    }

    .small_form {
        width: 50%;
    }

    .col-btn-new {
        width: 50%;
    }

    #gdpr p {
        width: 60%;
    }
}

/** CONTAINER SCALING**/
/* Remove max-width for all smaller breakpoints */
@media (min-width: 576px) {
  .container,
  .container-sm {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .container,
  .container-sm,
  .container-md {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 100%;
  }
}

/* Set max-width to 1400px for screens 1400px and up */
@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1400px;
  }
}