:root {
    --mm-bg: #111316;
    --mm-surface-low: #1a1c1f;
    --mm-surface: #1e2023;
    --mm-surface-high: #333538;
    --mm-on-bg: #e2e2e6;
    --mm-on-muted: #bac9cc;
    --mm-primary: #c3f5ff;
    --mm-primary-strong: #00daf3;
    --mm-secondary: #b9c8d6;
    --mm-outline: rgba(59, 73, 76, 0.35);
}

html, body {
    background: var(--mm-bg);
    color: var(--mm-on-bg);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.mm-body {
    min-height: 100vh;
}

.mm-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--mm-bg);
    border-bottom: 1px solid var(--mm-outline);
}

.mm-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
}

.mm-topbar-actions {
    flex-shrink: 0;
}

.mm-brand {
    color: var(--mm-primary);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.mm-logo {
    max-height: 100px; /* 45 is too small */
    width: auto;
    transition: opacity 0.2s ease;
}

.mm-brand:hover .mm-logo {
    opacity: 0.85;
}

.mm-toplink {
    color: var(--mm-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
    font-size: .75rem;
    padding: .35rem .45rem;
}

.mm-toplink:hover {
    color: var(--mm-bg);
    background: var(--mm-primary-strong);
}

.mm-sidebar {
    position: fixed;
    top: 62px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--mm-surface-low);
    border-right: 1px solid var(--mm-outline);
    padding: 1rem .75rem;
    display: none;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .mm-sidebar {
        display: block;
    }
}

.mm-side-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--mm-on-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .05em;
    font-weight: 700;
    padding: .7rem .65rem;
    border: 1px solid transparent;
}

.mm-side-link:hover {
    background: var(--mm-primary-strong);
    color: #001f24;
}

.mm-mobile-nav {
    background: var(--mm-surface-low);
    color: var(--mm-on-bg);
}

.mm-mobile-nav .offcanvas-header {
    border-bottom: 1px solid var(--mm-outline);
}

.mm-mobile-nav .offcanvas-title {
    color: var(--mm-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
}

.mm-mobile-nav .offcanvas-body {
    padding: 1rem .75rem;
}

.mm-mobile-nav .mm-side-link {
    margin-bottom: .35rem;
}

.mm-main {
    background: var(--mm-bg);
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .mm-main {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
}

.mm-legacy-role-nav {
    display: none;
}

.mm-hero {
    background: linear-gradient(160deg, #0c0e11 0%, #1a1c1f 55%, #111316 100%);
    border-bottom: 1px solid var(--mm-outline);
}

.mm-hero-title {
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 800;
}

.mm-hero-carousel {
    border: 1px solid var(--mm-outline);
    background: var(--mm-surface-low);
}

.mm-hero-carousel .carousel-item img {
    filter: contrast(1.02) saturate(1.05);
}

.mm-hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 14, 17, 0.86), rgba(12, 14, 17, 0.15) 48%, rgba(12, 14, 17, 0.05));
}

.mm-hero-carousel .carousel-item {
    transition: opacity 1.15s ease-in-out;
}

.mm-hero-caption {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1rem;
    z-index: 2;
}

@media (min-width: 992px) {
    .mm-hero-caption {
        left: 2rem;
        right: 2rem;
        bottom: 1.5rem;
        max-width: 70%;
    }
}

.mm-hero-carousel .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 3px;
    border-radius: 0;
    background-color: var(--mm-on-muted);
}

.mm-hero-carousel .carousel-indicators .active {
    background-color: var(--mm-primary-strong);
}

.mm-section {
    background: var(--mm-bg);
}

.mm-auth-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.mm-auth-card {
    background: var(--mm-surface);
    border: 1px solid var(--mm-outline);
    width: 100%;
    max-width: 480px;
}

.mm-plan-card {
    border: 1px solid var(--mm-outline);
}

.mm-plan-title {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 800;
}

.mm-page-shell {
    padding-top: 1.25rem;
}

.mm-page-title {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 800;
}

.mm-stat-card {
    background: var(--mm-surface-high) !important;
    border: 1px solid var(--mm-outline) !important;
    color: var(--mm-on-bg) !important;
}

.mm-settings-grid .card {
    border: 1px solid var(--mm-outline) !important;
    box-shadow: none !important;
}

.mm-page-shell .container,
.mm-page-shell .container-fluid {
    padding-top: 1rem;
}

.card-header {
    background: var(--mm-surface-high) !important;
    color: var(--mm-on-bg) !important;
    border-bottom: 1px solid var(--mm-outline) !important;
}

.list-group-item {
    background: var(--mm-surface) !important;
    color: var(--mm-on-bg) !important;
    border-color: rgba(132, 147, 150, 0.2) !important;
}

.text-muted,
.text-secondary,
.form-text,
small {
    color: var(--mm-on-muted) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(26, 28, 31, 0.65);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(51, 53, 56, 0.75);
}

.mm-staff-table .mm-staff-row {
    position: relative;
}

.mm-staff-table .mm-staff-row > td {
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.mm-staff-table .mm-staff-row:hover > td,
.mm-staff-table .mm-staff-row:focus-within > td {
    --bs-table-accent-bg: transparent;
    background-color: transparent !important;
    color: var(--mm-on-bg) !important;
    border-top-color: #00e5ff;
    border-bottom-color: #00e5ff;
}

.mm-staff-table .mm-staff-row:hover > td:first-child,
.mm-staff-table .mm-staff-row:focus-within > td:first-child {
    border-left: 2px solid #00e5ff;
}

.mm-staff-table .mm-staff-row:hover > td:last-child,
.mm-staff-table .mm-staff-row:focus-within > td:last-child {
    border-right: 2px solid #00e5ff;
}

.mm-staff-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mm-staff-caret {
    color: #00e5ff;
    opacity: 0;
    transition: opacity 0.12s ease-in-out;
}

.mm-staff-table .mm-staff-row:hover .mm-staff-caret,
.mm-staff-table .mm-staff-row:focus-within .mm-staff-caret {
    opacity: 1;
}

.btn-info,
.btn-success,
.btn-warning {
    border-color: transparent;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-info {
    background: linear-gradient(45deg, var(--mm-primary) 0%, #00e5ff 100%);
    color: #00363d;
}

.btn-success {
    background: #1f7a45;
}

.btn-warning {
    background: #7d6314;
    color: #f9f3df;
}

.card,
.dropdown-menu,
.alert,
.modal-content,
.table {
    border-radius: 0 !important;
}

.card,
.dropdown-menu,
.modal-content {
    background-color: var(--mm-surface);
    border: 1px solid var(--mm-outline);
    color: var(--mm-on-bg);
}

.dropdown-menu {
    background-color: #0c0e11 !important;
    border-color: rgba(0, 218, 243, 0.35);
}

.dropdown-menu .dropdown-item {
    color: var(--mm-primary) !important;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: var(--mm-primary-strong) !important;
    color: #00292f !important;
}

.dropdown-menu .dropdown-divider {
    border-top-color: rgba(0, 218, 243, 0.35);
}

.table {
    --bs-table-bg: var(--mm-surface);
    --bs-table-color: var(--mm-on-bg);
    --bs-table-border-color: rgba(132, 147, 150, 0.2);
}

.table.table-dark,
.table .table-dark {
    --bs-table-bg: #0c0e11 !important;
    --bs-table-color: var(--mm-primary) !important;
    --bs-table-border-color: rgba(0, 209, 231, 0.45) !important;
}

/*
.table > :not(caption) > thead > tr > * {
    background-color: #0c0e11 !important;
    color: var(--mm-primary) !important;
    border-bottom-color: rgba(0, 209, 231, 0.45) !important;
}
*/

.table > thead.table-dark > tr > * {
    background-color: #0c0e11 !important;
    color: var(--mm-primary) !important;
    border-bottom-color: rgba(0, 209, 231, 0.45) !important;
}

.btn-primary {
    background: linear-gradient(45deg, var(--mm-primary) 0%, #00e5ff 100%);
    border-color: transparent;
    color: #00363d;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-outline-primary {
    border-color: rgba(132, 147, 150, 0.35);
    color: var(--mm-primary);
    text-transform: uppercase;
    font-weight: 700;
}

.btn-outline-primary:hover {
    background: var(--mm-surface-high);
    color: var(--mm-primary);
    border-color: rgba(132, 147, 150, 0.45);
}

.form-control,
.form-select {
    border-radius: 0;
    background: #0c0e11;
    border: 1px solid rgba(132, 147, 150, 0.25);
    color: var(--mm-on-bg);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mm-primary-strong);
    box-shadow: none;
    background: #0c0e11;
    color: var(--mm-on-bg);
}

.time-picker-native input[type="time"] {
    background: #0c0e11;
    color: #f8fbff;
    border: 1px solid rgba(132, 147, 150, 0.35);
}

.time-picker-native input[type="time"]::-webkit-datetime-edit,
.time-picker-native input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.time-picker-native input[type="time"]::-webkit-datetime-edit-hour-field,
.time-picker-native input[type="time"]::-webkit-datetime-edit-minute-field,
.time-picker-native input[type="time"]::-webkit-datetime-edit-text {
    color: #f8fbff;
}

.time-picker-native input[type="time"]:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 0 0.1rem rgba(0, 229, 255, 0.2);
    color: #ffffff;
}

.time-picker-native input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: none;
}

.time-picker-replicated .time-slots-container .text-primary {
    color: #00e5ff !important;
}

.mm-org-search-results {
    max-height: 400px;
}

.mm-invite-link-group {
    max-width: 350px;
}

.mm-role-skill-selector .form-check-label {
    cursor: pointer;
}

.mm-role-skill-selector .mm-selected-check {
    opacity: 0;
    width: 1rem;
}

.mm-role-skill-selector .form-check-input:checked + .form-check-label .mm-selected-check {
    opacity: 1;
}

.mm-calendar-day .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mm-calendar-day.mm-calendar-day-outside {
    opacity: 0.72;
}

.mm-calendar-status-band {
    height: 4px;
    width: calc(100% + 1rem);
    margin: -0.5rem -0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f8fbff;
    line-height: 1;
    padding-right: 0.25rem;
}

.mm-calendar-status-percent {
    transform: translateY(0.45rem);
}

.mm-calendar-band-closed {
    background-color: #6c757d;
}

.mm-calendar-band-no-bookings {
    background-color: #198754;
}

.mm-calendar-band-light-bookings {
    background-color: #0dcaf0;
}

.mm-calendar-band-medium-bookings {
    background-color: #fd7e14;
}

.mm-calendar-band-heavy-bookings {
    background-color: #dc3545;
}

.mm-calendar-detail-list li {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-footer {
    margin-top: 2rem;
    background: #0c0e11;
    border-top: 1px solid var(--mm-outline);
    color: var(--mm-on-muted);
    padding: 1rem 0;
}
