html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

/*mlilja*/

.setup-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.setup-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.m-fw-bold {
    font-weight: 500;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.covering-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 90%;
    min-width: 400px;
    min-height: 200px;
    animation: fadeIn 0.3s ease;
}

.layover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8) !important;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s ease-in-out;
}

    .layover .covering-box {
        position: absolute;
        top: 40%; /*30%*/
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 5rem;
        text-wrap: pretty;
    }

.message-vp-positioning {
    position: absolute;
    top: 35%; /*25%*/
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn {
    font-weight: 500 !important;
    transition: background-color 0.2s, color 0.2s;
}

    .btn:hover {
        background-color: #f7f7f7;
        color: #28a745;
    }

.btn {
    padding: 0.35rem 0.9rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

    .btn:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    }

.btn-primary {
    background-color: #fdfeff !important;
    color: #33475b !important;
    border: 1px solid #c5d1e3 !important;
}

    .btn-primary:hover {
        background-color: #ebeff3 !important;
        color: #33475b !important;
        border-color: #9da9b5 !important;
    }

    .btn-primary:active,
    .btn-primary:focus,
    .btn-primary:focus-visible {
        background-color: #e7edf198 !important;
    }

.btn-secondary {
    background-color: #f0f2f4;
    color: #495057;
    border: 1px solid #e2e2e3;
}

    .btn-secondary:hover {
        background-color: #e9ecef;
        color: #343a40;
        border-color: #d6d8db;
    }

    .btn-secondary:active,
    .btn-secondary:focus,
    .btn-secondary:focus-visible {
        background-color: #dee2e6 !important;
        color: #343a40;
        border-color: #c6c8cb;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }


.btn-outline-primary {
    background-color: transparent;
    color: #33475b;
    border: 1px solid #c5d1e3;
}

    .btn-outline-primary:hover {
        background-color: #e3e8ee;
        color: #33475b;
    }

    .btn-outline-primary:active,
    .btn-outline-primary:focus,
    .btn-outline-primary:focus-visible {
        background-color: #c5d1e3;
        color: #33475b;
        border-color: #b0bdd2;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.btn-outline-secondary {
    background-color: transparent;
    color: #495057;
    border: 1px solid #e0e0e0;
}

    .btn-outline-secondary:hover {
        background-color: #e9ecef;
        color: #343a40;
    }

    .btn-outline-secondary:active,
    .btn-outline-secondary:focus,
    .btn-outline-secondary:focus-visible {
        background-color: #dee2e6;
        color: #343a40;
        border-color: #c6c8cb;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }


.slight-ps {
    padding-left: 0.23rem;
}

.feedback-below {
    position: absolute;
    top: calc(100%+2px);
}




.message-vp-positioning {
    position: absolute;
    top: 35%; /*25%*/
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.form-box {
    max-width: 1200px;
}

.modal.show {
    display: block;
}

.modal-content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}

.border-danger {
    border: 2px solid #dc3545;
}

.text-danger {
    color: #dc3545;
}

.bg-success {
    background-color: #05c46b !important; /*#27ae60*/
}

.layover {
    z-index: 1050;
    background-color: rgba(255, 255, 255, 0.8);
}

.msg-modal {
    position: absolute;
    top: 40%; /*30%*/
    left: 50%;
    transform: translate(-50%, -50%);
    text-wrap: pretty;
    min-width: 400px;
    min-height: 400px;
    animation: fadeIn 0.3s ease;
}

.modal {
    display: block !important; /* Always make the modal visible */
    opacity: 1 !important; /* Ensure the modal is fully opaque */
    /*pointer-events: auto;*/ /* Allow interaction */
    position: static !important;
}

html, body {
    height: 100%; /* Ensure the page takes up the full height of the viewport */
    margin: 0; /* Remove default margin */
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Push the footer to the bottom by taking up remaining space */
}

footer {
    margin-top: auto; /* Ensure the footer stays at the bottom */
}

.site-footer {
    background-color: #f5f5f4;
    color: #666;
    font-size: 10px;
    padding: 24px;
}

    .site-footer a {
        color: #007cb0;
    }

.site-disclaimer {
    padding-top: 0.5rem;
}

.border-start {
    border-left-width: 1.8px !important;
}

.no-select {
    user-select: none; /* Prevent text selection */
}

.no-drag {
    pointer-events: none; /* Prevent dragging */
}

.mw-600 {
    max-width: 600px !important;
}

.btn-sz-slg {
    width: 14.5rem !important;
}

.btn-sz-md {
    width: 12.5rem !important;
}

.btn-sz-sm {
    width: 11rem !important;
}

.tab-btn.active {
    border: 2px solid #3693F7 !important;
    background: #3693F7 !important;
    color: #fff !important;
}

/* Segmented option-switcher group */
.option-switcher-group {
    display: inline-flex;
}

.option-switcher-group .option-btn {
    border-radius: 0 !important;
    border-right-width: 0 !important;
    width: 14.5rem !important;
    position: relative;
}

.option-switcher-group .option-btn .option-btn-check {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.option-switcher-group .option-btn:first-child {
    border-radius: 0.375rem 0 0 0.375rem !important;
}

.option-switcher-group .option-btn:last-child {
    border-radius: 0 0.375rem 0.375rem 0 !important;
    border-right-width: 1px !important;
}

.option-switcher-group .option-btn:not(.active) {
    opacity: 0.55;
}

/* ── Multi-select dropdown ─────────────────────────────────────────────────── */
.ms-wrapper {
    position: relative;
    font-size: 0.95rem;
}

.ms-trigger {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 38px;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 0.75rem center / 16px 12px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
}

.ms-trigger:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.ms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ms-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /*background: #0d6efd;*/
    background: #3693F7;
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

.ms-tag-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ms-tag-remove:hover {
    color: #fff;
}

.ms-placeholder {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.ms-arrow {
    display: none;
}

.ms-dropdown {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
}

.ms-search-wrapper {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    align-items: center;
}

.ms-search {
    flex: 1;
    min-width: 0;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.88rem;
    outline: none;
}

.ms-select-all-btn {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 3px 8px;
    white-space: nowrap;
}

.ms-search:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.ms-options-list {
    max-height: 220px;
    overflow-y: auto;
}

.ms-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    transition: background 0.1s;
}

.ms-option:hover,
.ms-option:has(input:checked):hover {
    background: #e8f0fe;
}

.ms-option:has(input:checked) {
    background: #EBF3FF;
}

.ms-option input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #0d6efd;
    flex-shrink: 0;
    cursor: pointer;
}

.ms-option span {
    flex: 1;
    font-size: 0.92rem;
}

/* Disabled state */
.ms-wrapper.disabled .ms-trigger {
    background-color: #e9ecef;
    opacity: 0.65;
    pointer-events: none;
    cursor: not-allowed;
}

/* "No options found" message */
.ms-no-options {
    padding: 10px 14px;
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Custom form validation styling - override Bootstrap defaults */
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #198754;
    padding-right: 2.5rem;
    background-image: none !important; /* Remove Bootstrap's default checkmark */
}

.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Custom checkmark icon for validated inputs */
.bc-validation-check {
    position: absolute;
    left: 574px; /*582px;*/
    top: 50%;
    /*transform: translateY(-50%);*/
    color: #198754;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 5;
}

/* Readonly inputs styling - make them look disabled but still submit with form */
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
    /* cursor: not-allowed; */
}

.form-control[readonly].is-valid {
    background-color: #e9ecef;
}

/* ─────────────────────────────────────────────────────────────────────────── */