:root {
    /*    --wm-dark-green: #346132;
    --wm-dark-green-rgb: 52, 97, 50;
    --wm-green: #3AAA35;
    --wm-green-rgb: 58, 170, 53;
    --wm-yellow: #D3D800;
    --wm-yellow-rgb: 211, 216, 0;*/
    --wm-body-bg: #e9f1e9;
    --wm-border-color: rgba(var(--bs-wm-green-rgb), .35);
    /*    --bs-border-color: var(--wm-border-color);*/
    --wm-caret-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}

html {
    font-size: 0.85rem;
}

.toast {
    --bs-toast-spacing: 0.75rem;
}

.avatar {
    --bs-avatar-width: 2rem;
    --bs-avatar-height: 2rem;
    --bs-avatar-font-size: 0.8rem;
    --bs-avatar-border-radius: 50em;
    --bs-avatar-status-width: 0.5rem;
    --bs-avatar-status-height: 0.5rem;
    --bs-avatar-status-border-radius: 50em;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--bs-avatar-width);
    height: var(--bs-avatar-height);
    font-size: var(--bs-avatar-font-size);
    vertical-align: middle;
    border-radius: var(--bs-avatar-border-radius);
    transition: margin 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .avatar {
        transition: none;
    }
}

.avatar-img {
    width: 100%;
    height: auto;
    border-radius: var(--bs-avatar-border-radius);
}

.avatar-sm {
    --bs-avatar-width: 1.5rem;
    --bs-avatar-height: 1.5rem;
    --bs-avatar-font-size: 0.6rem;
    --bs-avatar-status-width: 0.4rem;
    --bs-avatar-status-height: 0.4rem;
}

.avatar-md {
    --bs-avatar-width: 2.5rem;
    --bs-avatar-height: 2.5rem;
    --bs-avatar-font-size: 1rem;
    --bs-avatar-status-width: 0.7rem;
    --bs-avatar-status-height: 0.7rem;
}

.avatar-lg {
    --bs-avatar-width: 3rem;
    --bs-avatar-height: 3rem;
    --bs-avatar-font-size: 1.2rem;
    --bs-avatar-status-width: 0.8rem;
    --bs-avatar-status-height: 0.8rem;
}

.avatar-xl {
    --bs-avatar-width: 4rem;
    --bs-avatar-height: 4rem;
    --bs-avatar-font-size: 1.6rem;
    --bs-avatar-status-width: 1rem;
    --bs-avatar-status-height: 1rem;
}

.icon {
    display: inline-block;
    color: inherit;
    text-align: center;
    vertical-align: -0.125rem;
    fill: currentcolor;

}

.icon-normal {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
}

.icon-xxl {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
}

.icon-xl {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
}

.icon-lg {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
}

.icon-sm {
    width: 0.875rem;
    height: 0.875rem;
    font-size: 0.875rem;
}

.icon-3xl {
    width: 3rem;
    height: 3rem;
    font-size: 3rem;
}

.icon-4xl {
    width: 4rem;
    height: 4rem;
    font-size: 4rem;
}

.icon-5xl {
    width: 5rem;
    height: 5rem;
    font-size: 5rem;
}

.icon-6xl {
    width: 6rem;
    height: 6rem;
    font-size: 6rem;
}

.icon-7xl {
    width: 7rem;
    height: 7rem;
    font-size: 7rem;
}

.icon-8xl {
    width: 8rem;
    height: 8rem;
    font-size: 8rem;
}

.icon-9xl {
    width: 9rem;
    height: 9rem;
    font-size: 9rem;
}


body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--wm-body-bg);
}

.wrapper {
    width: 100%;
    padding-inline: var(--bs-sidebar-occupy-start, 0) var(--bs-sidebar-occupy-end, 0);
    will-change: auto;
    transition: padding 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .wrapper {
        transition: none;
    }
}

.sidebar-header, header {
    min-height: 5rem;
}

[data-bs-theme=dark] body {
    background-color: var(--bs-dark-bg-subtle);
}

[data-bs-theme=dark] .footer {
    --bs-footer-bg: var(--bs-body-bg);
}

.bg-body {
    background-color: var(--wm-body-bg) !important;
}

.card {
    --bs-card-border-color: var(--wm-border-color);
    border: none !important;
    box-shadow: var(--bs-box-shadow-sm) !important;
}

.card .card-header {
    background-color: transparent;
}

.card .card-footer {
    background-color: transparent;
}

.card-body .card-body-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: .5rem;
    color: var(--bs-wm-dark-green);
}

.badge {
    --bs-badge-font-size: 0.8em;
}

.list-group-table .list-group-item {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    align-items: center;
}

.list-group-table .list-group-item:first-child {
    background-color: var(--bs-light);
/*    border: none;*/
    font-weight: bold;
}

.wm-details-modal .modal-dialog {
    height: calc(100vh - 3rem);
    width: 80% !important;
    max-width: 80% !important;
    margin: 1.5rem auto;
    display: flex;
    align-items: flex-start;
}

.wm-details-modal .modal-header {
    font-weight: bold;
    padding-top: .75rem;
    padding-bottom: 0;
    border: 0;
}

.wm-details-modal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wm-details-modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
}

.wm-details-modal .modal-footer {
    padding-top: .25rem;
    padding-bottom: .25rem;
    border: 0;
}

.modal .modal-header {
    border: 0;
}

.modal .modal-footer {
    border: 0;
}

.nav a, .nav-tabs {
    --bs-nav-link-color: var(--bs-wm-dark-green);
    --bs-nav-link-hover-color: var(--bs-wm-dark-green);
    --bs-nav-tabs-link-active-color: var(--bs-wm-dark-green);
    --bs-nav-link-hover-color: var(--bs-wm-green);
    --bs-link-color-rgb: var(--bs-wm-dark-green);
}

.btn-link {
    --bs-link-color: var(--bs-wm-dark-green);
    --bs-link-hover-color: var(--bs-wm-green);
}

.services-grid {
    display: grid;
    grid-template-columns: 100px repeat(3, minmax(0, 100px));
    align-items: center;
    gap: 10px;
}

.services-grid.header-row span {
    text-align: center;
    opacity: .7;
}


.list-item-collapsible .caret-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-inline-start: auto;
    background-color: currentColor;
    -webkit-mask-image: var(--wm-caret-icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: var(--wm-caret-icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
}

.list-item-collapsible {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
}

.list-item-collapsible .list-item-header {
    padding: .25rem 1rem !important;
    cursor: pointer;
    border-radius: var(--bs-border-radius) !important;
}

.list-item-collapsible .list-item-header:hover {
    background-color: var(--bs-light) !important;
}

.list-item-collapsible .list-item-collapse {
    padding: 1rem;
    display: none;
}

.list-item-collapsible .list-item-footer {
    display: none;
    padding: 0 1rem 1rem 1rem;
}

.list-item-collapsible.open .list-item-footer {
    display: block;
}

/*.list-item-collapsible.open .list-item-header {
    background-color: var(--bs-light) !important;
}*/

.list-item-collapsible.open .list-item-collapse {
    display: block;
}

.list-item-collapsible.open .caret-icon {
    transform: rotate(0deg);
}

.wm-form .form-label {
    font-size: 0.875em;
    color: var(--bs-secondary-color) !important;
    font-weight: 600;
}

.wm-form .field-validation-error {
    font-size: 0.875em;
}

.form-check-input {
    border-color: var(--bs-wm-dark-green);
}

.form-check-input:checked {
    background-color: var(--bs-wm-dark-green);
    border-color: rgba(var(--bs-wm-dark-green-rgb));
}

.form-check-input:focus {
    border-color: var(--bs-wm-dark-green);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-wm-dark-green-rgb), 0.25);
}

.item-adder .item-adder-container {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
    width: 100%;
/*    background-color: var(--bs-light) !important;*/
}

.item-adder .item-adder-container .item-adder-header {
    font-weight: bold;
    padding: 1rem !important;
}

.item-adder .item-adder-container .item-adder-body {
    padding: .5rem 1rem 1rem 1rem;
}

.overlay-spinner {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    margin-top: 20rem;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--bs-wm-dark-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.htmx-request.overlay-spinner {
    display: flex;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-badge {
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 50rem;
}

.field-validation-error {
    font-size: 0.875em;
    font-weight: 600;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    z-index: auto !important;
}

.img-container {
    width: 100%;
    height: 200px; /* fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
    background-color: #e9ecef; /* light gray placeholder */
    overflow: hidden;
}

.img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--bs-border-radius);
    display: none; /* hidden until an image is selected */
}

.table-rounded {
    border-radius: var(--bs-border-radius) !important;
}

.table-rounded tbody tr:last-child > * {
    border-bottom: none;
}

.schedule-opener:hover{
    border-color: var(--bs-wm-dark-green)!important;
}

.opening-schedule-tr td:last-child {
    border-right: none !important;
}


.photo-list .arrow-order {
    cursor: pointer;
}

.photo-list .arrow-order:hover {
    background-color: rgba(255,255,255,0.175);
}

.photo-list .upload-photo {
    cursor: pointer;
}

.photo-list .upload-photo:hover {
    background-color: rgba(255,255,255,0.175);
}

.photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    justify-items: center;
}

.photo-list .card {
    transition: opacity 0.15s ease;
    min-height: 200px;
    max-height: 200px;
    width: 100%;
}

.photo-list .card.card-adder:hover {
    background-color: var(--bs-secondary-bg-subtle) !important;
}

.photo-list .photo-adder:hover {
    background-color: var(--bs-secondary-bg-subtle) !important;
}

.photo-list .card.moving {
    opacity: 0.6;
}
