/* Root Styling */
:root {
    --main-font-family: "Muli", sans-serif;
    --primary-shadow: 0px 5px 35px 0 rgba(34, 43, 46, 0.08);
    --primary-focus: 0 0 0 2px var(--grey-500);
    --link-text: #261c86;
    --green: #00ba5d;
    --turquoise: #00afc4;
    --blue: #3a45b1;
    --light-blue: #338fe9;
    --orange: #ffa300;
    --red: #f73900;
    --grey-900: #1c1c1c;
    --grey-800: #222b2e;
    --grey-700: #656b6d;
    --grey-600: #727d81;
    --grey-500: #898d8f;
    --grey-400: #acacac;
    --grey-300: #eaeaea;
    --grey-200: #f1f1f1;
    --grey-100: #fefefe;
}

/* General */
body {
    font-family: var(--main-font-family);
    background: #f6f8fa;
    color: #1e2b38;
    padding-bottom: 35px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}
a {
    color: var(--link-text);
}
hr {
    border-color: var(--grey-300);
}
[v-cloak] {
    display: none;
}
.bg-link {
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1030;
    display: block;
}
.text-danger {
    color: var(--red) !important;
}

/* Grid */
.col,
.col-1,
.col-10,
.col-11,
.col-12,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-auto {
    padding: 15px;
}
.form-row > [class*="col-"] {
    padding: 0px 5px;
}
.bookings-row > [class*="col-"],
.users-row > [class*="col-"] {
    padding: 5px 15px;
}
.tb-padding-row > [class*="col-"] {
    padding: 0px 15px;
}

/* Table */
.table-nowrap {
    white-space: nowrap;
}

/* Progress Bar */
.progress-bar {
    font-weight: 700;
    background-color: #05d1eb;
}
.bg-blue {
    background-color: #05d1eb !important;
}
.pink-cell {
    background-color: #e30068 !important;
    border-color: #bc0056 !important;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 3px 5px 0 rgba(153, 174, 185, 0.1);
    margin-bottom: 35px;
}
.navbar .navbar-nav .nav-link {
    color: #1e2b38;
    font-weight: 600;
}
.navbar .navbar-nav .nav-link:hover {
    color: #1e2b38;
}
.navbar .navbar-nav .active > .nav-link {
    color: #1e2b38;
}
.navbar-brand img {
    max-width: 35px;
    max-height: 35px;
}
.dropdown-toggle::after {
    display: none;
}
.navbar .dropdown-menu {
    background: white;
    border: none;
    border-radius: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 5px;
}
.navbar .dropdown-item {
    color: #1e2b38;
    font-weight: 400;
    border-radius: 5px;
}
.dropdown-item:active {
    background-color: #f8f9fa;
}
.navbar .dropdown-item:hover {
    color: #1e2b38;
}
.navbar-toggler {
    color: #1e2b38;
}
.navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
    background-image: url("/assets/icons/menu.svg");
}
.nav-item:hover,
.nav-item.active {
    background: #f8f9fa;
    border-radius: 5px;
}
.navbar-profile .nav-item:hover {
    background: none;
}
.navbar-profile .nav-link {
    padding: 0 !important;
    max-width: 35px;
    max-height: 35px;
    overflow: hidden;
}
.navbar-profile img {
    border-radius: 50%;
    width: 100%;
    height: auto;
}
.navbar-profile .dropdown-menu {
    position: absolute;
    float: left;
    top: 43px !important;
    box-shadow: 0 3px 5px 0 rgba(153, 174, 185, 0.1);
}
@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav .nav-link {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
    .navbar-expand-md .navbar-nav .dropdown-menu {
        position: absolute;
        top: 48px;
        box-shadow: 0 3px 5px 0 rgba(153, 174, 185, 0.1);
    }
}
@media (max-width: 767px) {
    .navbar-collapse {
        order: 13;
    }
}

/* Stylings */
.text-muted {
    color: #99aeb9 !important;
}
.mt-primary {
    margin-top: 20px;
}
.info-title {
    color: #99aeb9 !important;
    font-size: 0.875rem;
}
.td-none {
    color: inherit !important;
    text-decoration: none !important;
}

/* Alerts */
.alert-failed-bookings {
    background: var(--red);
    color: white;
    box-shadow: 0 0 5px 0 rgba(247, 57, 0, 0.4);
}
.badge-failed-bookings {
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.875rem;
    color: white;
    padding: 0.5rem;
}

/* Cards */
.card {
    border-radius: 5px;
    box-shadow: 0 0 5px 0 rgba(153, 174, 185, 0.2);
    border: none;
}
.login-card {
    max-width: 400px;
    margin: 0 auto;
}
.login-card-title {
    margin-bottom: 20px;
    text-align: center;
}
.login-card-logo {
    padding-top: 20px;
    text-align: center;
}
.login-card-logo img {
    width: 70px;
    height: auto;
}
.locked-integration-badge,
.locked-user-badge {
    font-size: 12px;
}
.locked-user-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}
.quick-link-card {
    padding-right: 50px;
}
.quick-link-card:hover {
    background: #f8f9fa;
}
.quick-link-card::after {
    content: "";
    background-image: url("/assets/icons/arrow-right.svg");
    position: absolute;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    top: calc(50% - 15px);
    right: 15px;
    background: rgba(5, 209, 235, 0.15) url("/assets/icons/arrow-right.svg") 10px 10px / 10px 10px no-repeat;
    color: rgba(0, 0, 0, 0.5);
}
.user-card-picture {
    border-radius: 50%;
    overflow: hidden;
    width: 125px;
    height: 125px;
    margin: 0 auto;
    margin-bottom: 15px;
}
.user-card-picture img {
    width: 100%;
    height: auto;
}

/* Modals */
.modal-backdrop {
    background-color: #99aeb9;
}
.modal-content {
    border: 1px solid var(--grey-200);
    border-radius: 5px;
}
.success-modal-tick,
.failure-modal-tick {
    display: block;
    max-width: 80px;
    margin: 0 auto;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 500;
}
.btn-slim {
    padding: 0.3rem 1rem !important;
    min-height: 0 !important;
    min-width: 0 !important;
}
.btn-primary,
.btn-primary.loading:disabled {
    background: #05d1eb;
    border-color: #05d1eb;
    min-height: 2.5rem;
    min-width: 9.75rem;
    color: #fff !important;
    cursor: pointer !important;
}
.btn-primary:not(:disabled):not(.disabled):hover,
.btn-primary:not(:disabled):not(.disabled):active {
    background: #049fc5;
    border-color: #049fc5;
}
.btn-secondary,
.btn-secondary.loading:disabled {
    background: none;
    color: #99aeb9;
    border-color: #99aeb9;
    min-height: 2.5rem;
    min-width: 9.75rem;
}
.btn-secondary:not(:disabled):not(.disabled):hover,
.btn-secondary:not(:disabled):not(.disabled):active {
    background: #99aeb9;
    border-color: #99aeb9;
}
.filter-btn:hover,
.filter-btn:active {
    background: none !important;
    color: #99aeb9 !important;
}
.btn-primary:focus {
    box-shadow: var(--primary-focus);
}
.link-style-btn {
    background: none !important;
    border: none;
    padding: 0 !important;
    cursor: pointer;
    color: var(--link-text);
}
.link-style-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}
.link-style-btn:focus {
    outline: none;
}
.edit-user-btn {
    display: block;
    min-height: 0;
    min-width: 0;
    margin-top: 15px;
    padding: 0;
}

/* Booking cards */
.booking-card,
.user-card {
    font-size: 0.875rem;
}
.booking-card-row > [class*="col-"],
.user-card-row > [class*="col-"] {
    padding: 5px 15px;
}
.page-link {
    color: #007bff;
    box-shadow: 0 0 5px 0 rgba(153, 174, 185, 0.2);
    border: none;
    margin: 0 5px;
}
.page-link:hover {
    background: #f8f9fa;
}

/* Group Lists */
.list-group-item-action {
    color: inherit;
}
.list-group-item.active {
    z-index: 2;
    color: inherit;
    background-color: #f6f8fa;
    border-color: var(--grey-300);
}
.list-group-item.active:focus,
.list-group-item.active:hover {
    background-color: #f6f8fa;
    border-color: var(--grey-300);
}
.list-group-item-action:focus,
.list-group-item-action:hover {
    z-index: 1;
    color: inherit;
    text-decoration: none;
    background-color: #f6f8fa;
}
.list-group-item {
    margin-bottom: -1px;
    background-color: #f6f8fa;
    border: 1px solid var(--grey-300);
    font-weight: 600;
}

/* Badges */
.booking-badges {
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}
.badge-danger {
    background: var(--red);
}
.badge-primary {
    background: var(--grey-400);
}
.badge-dark {
    background: var(--grey-800);
}
.badge-warning {
    color: #fff;
    background: var(--orange);
}
.badge-success {
    background: var(--green);
}
.badge-info {
    background: var(--turquoise);
}
.badge-secondary {
    background: var(--blue);
}

/* Forms */
.form-control {
    color: #1e2b38;
    background-color: var(--grey-200);
    border: 2px solid var(--grey-200);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    height: calc(1.5em + 1.5rem + 2px);
    padding: 0.75rem;
    font-weight: 600;
}
.form-control:disabled,
.form-control[readonly] {
    color: #99aeb9;
    background-color: var(--grey-200);
    border: 2px solid var(--grey-200);
    opacity: 1;
}
.form-control:focus {
    color: #1e2b38;
    background-color: var(--grey-200);
    border: 2px solid var(--grey-200);
    box-shadow: var(--primary-focus);
}
.form-control::placeholder {
    color: #99aeb9;
}
.form-group label {
    font-size: 0.875rem;
    color: var(--grey-700);
    margin-bottom: 5px;
}
select {
    -webkit-appearance: none;
    background: url("/assets/icons/arrow-down.svg") no-repeat;
    background-size: 10px;
    background-position: right 10px top 50%;
}
select[multiple] {
    background: var(--grey-200);
}
.vehicle-code-group {
    display: grid;
    grid-template-columns: 85px 85px;
    grid-gap: 15px;
    margin-bottom: 15px;
}
.vehicle-codes {
    max-width: 200px;
}
.vehicle-code-input {
    margin-bottom: 15px;
    padding-right: 0px;
}
.vehicle-code-label {
    padding-right: 0px;
}
.add-vehicle-code-link {
    margin-top: -10px;
    text-align: center;
    margin-left: 7.5px;
}
.autocomplete {
    background: white;
    border-radius: 5px;
    z-index: 1000;
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid var(--grey-200);
    margin-top: 5px;
}
.autocomplete * {
    font: inherit;
}
.autocomplete > div {
    padding: 5px 10px;
}
.autocomplete .group {
    background: var(--grey-200);
}
.autocomplete > div:hover:not(.group),
.autocomplete > div.selected {
    background: var(--grey-300);
    cursor: pointer;
}

/* Loading Button Animation */
.spinner {
    margin: 0 auto;
    text-align: center;
}
.spinner > div {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
    }
}

@keyframes sk-bouncedelay {
    0%,
    80%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}
