:root {
    --q-primary: #1266f1;
}

html {
    font-size: 15px;
}

.h1,
.h2,
.h3,
.h4,
body,
h1,
h2,
h3,
h4,
h5,
h6,
button,
html,
input,
select,
textarea {
    font-family: '-apple-system',BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue','PingFang SC','Noto Sans','Noto Sans CJK SC','Microsoft YaHei','微软雅黑',sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--q-primary);
}

#navbar_logo {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 19px;
    margin-right: 20px;
    min-height: 50px;
}

#navbar_logo > img {
    height: 30px;
    margin-right: 10px;
}

.root-container {
    max-width: 1140px;
    flex: 1;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0 15px;
}

.root-container > .container {
    width: 100%;
}

.root-container.items-stretch {
    align-items: stretch !important;
}

.q-btn-dropdown--simple *+.q-btn-dropdown__arrow {
    margin-left: 3px;
}

#top-toolbar {
    margin-bottom: 20px;
}

#top-toolbar .root-container {
    flex-wrap: nowrap;
    max-width: 1320px;
}

#top-toolbar .menus {
    flex-wrap: nowrap;
    white-space: nowrap;
}

#top-toolbar .menus .q-btn,
#top-toolbar .menus .q-btn-dropdown {
    padding-left: 8px;
    padding-right: 8px;
}

#top-toolbar .menus .mh-10 {
    margin-left: 4px !important;
    margin-right: 4px !important;
}

#top-toolbar .root-container > .q-btn, #top-toolbar .root-container > .flex > .q-btn {
    min-height: 50px;
    white-space: nowrap;
}

#top-toolbar .btn-menu {
    display: none;
}

.q-btn {
    font-weight: normal;
}

/* Flex and spacing utilities for tool card toolbars */
.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

.d-flex.justify-between,
.row.justify-between {
    gap: 12px;
}

.text-caption + .q-btn,
.text-subtitle2 + .q-btn,
.text-subtitle1 + .q-btn,
span + .q-btn {
    margin-left: 10px;
}

.ads-box {
    background-color: #f6f6f6;
    border-radius: 15px;
    width: 100%;
    min-height: 80px;
    margin-bottom: 15px;
}

.ads-box-banner {
    min-height: 180px;
}

.ads-box-tall {
    min-height: 600px;
}

.ads-container {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    width: 100%;
}

.ads-container-banner {
    min-height: 90px;
}

.ads-container-tall {
    min-height: 280px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .container-article {
        padding-left: 12px;
        padding-right: 12px;
    }
}

h3 {
    font-size: 2.25rem;
    line-height: 2.25rem;
}

h4 {
    font-size: 2rem;
    line-height: 2rem;
}

h5 {
    font-size: 1.75rem;
    line-height: 1.75rem;
}

h6 {
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.text-muted {
    color: #555;
}

fieldset.classic {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 30px 0 15px;
    padding: 25px 15px 12px;
    position: relative;
}

fieldset.classic legend {
    font-size: 13px;
    position: absolute;
    top: -11px;
    padding: 0 12px;
    background: #f3f3f3;
    width: auto;
    border-radius: 5px;
}

.q-btn .q-icon.on-left {
    margin-right: 6px;
}

.q-field--float .q-field__label {
    margin-top: -1px;
}

.q-field__control-container > .q-option-group {
    margin-top: 15px;
    margin-bottom: 15px;
}

.q-field__control-container > .q-option-group .q-checkbox__label {
    color: #333;
}

.q-field__messages, .q-field__counter {
    line-height: 1.3;
}

.q-select.q-field--float.hide-input-on-value .q-field__input {
    width: 0 !important;
    min-width: 0 !important;
    flex-grow: 0 !important;
    flex-shrink: 1 !important;
    flex-basis: 0 !important;
}

.result-card {
    font-size: 1rem;
}

.result-card .q-item__section--side .text-caption {
    font-size: 0.85rem;
}

@media (min-width: 1400px) {
    .root-container {
        max-width: 1320px;
    }
}

@media (min-width: 841px) and (max-width: 1200px) {
    #top-toolbar .menus .q-btn,
    #top-toolbar .menus .q-btn-dropdown {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 13px;
    }
    #top-toolbar .mh-10 {
        margin-left: 3px !important;
        margin-right: 3px !important;
    }
}

@media (max-width: 1140px) {
    #top-toolbar .q-toolbar .root-container {
        padding: 0;
    }
}

@media (max-width: 940px) {
    #top-toolbar .btn-register {
        display: none;
    }
}

@media (max-width: 899px) {
    #top-toolbar .btn_account > .q-btn__content > .q-icon {
        margin-right: 0;
    }

    #top-toolbar .btn_account > .q-btn__content > .block {
        display: none !important;
    }
}

@media (max-width: 840px) {
    #top-toolbar .btn-menu {
        display: flex;
        margin-left: auto;
    }

    #top-toolbar .menus {
        display: none;
    }

    #top-toolbar .menus.visible {
        display: flex;
        margin-left: -10px;
    }

    #top-toolbar .btn-register {
        display: flex;
    }
}
