:root {
    --rahui-primary: #0f766e;
    --rahui-sidebar-width: 250px;
    --bs-primary: #0f766e;
    --bs-primary-rgb: 15, 118, 110;
    --bs-link-color: #0f766e;
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: #115e59;
}

.btn-primary {
    --bs-btn-bg: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #115e59;
    --bs-btn-hover-border-color: #115e59;
    --bs-btn-active-bg: #134e4a;
    --bs-btn-active-border-color: #134e4a;
    --bs-btn-disabled-bg: #0f766e;
    --bs-btn-disabled-border-color: #0f766e;
}

.btn-outline-primary {
    --bs-btn-color: #0f766e;
    --bs-btn-border-color: #0f766e;
    --bs-btn-hover-bg: #0f766e;
    --bs-btn-hover-border-color: #0f766e;
    --bs-btn-active-bg: #0f766e;
    --bs-btn-active-border-color: #0f766e;
}

body {
    background: #f5f7f8;
    min-height: 100vh;
}

.brand {
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--rahui-primary);
    text-decoration: none;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    --bs-offcanvas-bg: #0b3b38;
    --bs-offcanvas-color: #d6efec;
    background-color: #0b3b38 !important;
    color: #d6efec;
}

@media (min-width: 992px) {
    .admin-sidebar {
        width: var(--rahui-sidebar-width);
        flex: 0 0 var(--rahui-sidebar-width);
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

.admin-sidebar .nav-link {
    color: #cde7e4;
    border-radius: .375rem;
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 600;
}

.admin-sidebar .brand {
    color: #fff;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.table-list th a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.table-list td.actions {
    white-space: nowrap;
    text-align: right;
}

.filter-bar .form-label {
    font-size: .8rem;
    margin-bottom: .2rem;
    color: #5c6b70;
}

.field-row {
    --field-label-size: 1rem;
    --field-label-gap: .5rem;
    --field-control-height: calc(2.25rem + 2px);
    align-items: flex-start;
}

.field-row-sm,
.filter-bar .field-row {
    --field-label-size: .8rem;
    --field-label-gap: .2rem;
    --field-control-height: calc(1.8125rem + 2px);
}

.field-row .form-label,
.field-row-actions::before,
.field-row-check::before {
    display: block;
    font-size: var(--field-label-size, 1rem);
    line-height: 1.5;
    margin-bottom: var(--field-label-gap, .5rem);
}

.field-row .form-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-row-actions::before,
.field-row-check::before {
    content: "\00a0";
    flex: 0 0 100%;
}

.field-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    column-gap: .5rem;
}

@media (max-width: 575.98px) {
    .field-row-actions.col-12::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .field-row-actions.col-12:not([class*="col-sm-"])::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .field-row-actions.col-12:not([class*="col-sm-"], [class*="col-md-"])::before {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .field-row-actions.col-12:not([class*="col-sm-"], [class*="col-md-"], [class*="col-lg-"])::before {
        display: none;
    }
}

.field-row-check {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.field-row-check > .form-check,
.field-row-check > .mb-3 > .form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: var(--field-control-height, calc(2.25rem + 2px));
    margin-bottom: 0;
}

.field-row-check > .mb-3 {
    margin-bottom: 0 !important;
}

.field-row-check .form-check-input {
    flex-shrink: 0;
    margin-top: 0;
}

@media (min-width: 1200px) {
    .field-row > .field-col-fit {
        flex: 0 0 auto;
        width: auto;
        min-width: 8rem;
        max-width: 11rem;
    }

    .field-row > .field-col-grow {
        flex: 1 1 0;
        width: auto;
        min-width: 14rem;
        max-width: 26rem;
    }
}

.combobox {
    position: relative;
}

.combobox-input {
    padding-right: 2.25rem;
    text-overflow: ellipsis;
}

.combobox-has-value .combobox-input {
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
    font-weight: 500;
}

.combobox-clear {
    position: absolute;
    top: 50%;
    right: .75rem;
    width: .6em;
    height: .6em;
    transform: translateY(-50%);
}

.combobox-menu {
    top: calc(100% + .125rem);
    left: 0;
    right: 0;
    max-height: 18rem;
    overflow-y: auto;
    margin: 0;
    z-index: 1060;
}

.combobox-option {
    cursor: pointer;
    white-space: normal;
}

.combobox-option.is-active {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-emphasis-color);
}

.combobox-option[aria-selected="true"] {
    font-weight: 600;
}

.combobox-option[aria-selected="true"]::after {
    content: "\2713";
    float: right;
    margin-left: .5rem;
    color: var(--bs-primary);
}

.public-card {
    max-width: 440px;
    margin: 3rem auto;
}

turbo-frame[busy] {
    opacity: .6;
}

.table-responsive {
    position: relative;
}

.room-switch .badge {
    min-width: 9.5rem;
}

.room-switch .btn {
    min-width: 6.5rem;
}

.modal-content > turbo-frame {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.landing {
    max-width: 880px;
    padding-top: max(2rem, env(safe-area-inset-top));
}

.landing-hero {
    max-width: 560px;
    margin: 0 auto;
}
