:root {
    --pico-tfm-accent: #0b6e69;
    --pico-tfm-border: #d8e2e5;
    --pico-tfm-radius: 0.75rem;
}

html {
    font-size: 17px;
}

body {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

button,
.btn,
input,
select,
textarea,
a.nav-link,
.dropdown-item {
    min-height: 2.75rem;
}

.btn,
button {
    border-radius: var(--pico-tfm-radius);
}

.form-control,
.form-select {
    min-height: 2.75rem;
    border-radius: var(--pico-tfm-radius);
}

.table-responsive {
    border: 1px solid var(--pico-tfm-border);
    border-radius: var(--pico-tfm-radius);
    -webkit-overflow-scrolling: touch;
}

.table > :not(caption) > * > * {
    padding: 0.8rem 0.7rem;
    vertical-align: middle;
}

.navbar {
    padding: 0.65rem 1rem;
}

body.navbar-fixed {
    margin-top: 6rem !important;
}

#js-settings-form .row:has(> label) {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) minmax(14rem, 34rem);
    gap: 0.75rem 1.25rem;
    align-items: center;
}

#js-settings-form .row:has(> label) > label,
#js-settings-form .row:has(> label) > div {
    width: auto;
    max-width: none;
    margin: 0;
}

#js-settings-form .row:has(> label) .form-check {
    padding-left: 0;
}

#js-settings-form .form-check-input {
    width: 3.2rem;
    height: 1.8rem;
    float: none;
    margin: 0;
}

@media (max-width: 900px) {
    html {
        font-size: 18px;
    }

    #wrapper,
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-brand {
        max-width: 65vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table {
        min-width: 42rem;
    }

    .card-wrapper {
        width: min(100%, 28rem);
    }

    .card-wrapper .card {
        border-radius: 1rem;
    }

    #js-settings-form .row:has(> label) {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

@media (min-width: 1600px) {
    html {
        font-size: 19px;
    }

    #wrapper,
    .container,
    .container-fluid {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
