body {
    margin: 0;
    padding: 0;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    background: #f7f7f7;
    font-size: 0.9rem;
}

:root {
    --white-color: #fff; /* цэнхэр өнгө */
    --active-color: #222; /* цэнхэр өнгө */
    --primary-color: #000; /* цэнхэр өнгө */
    --primary-border-color: #555;
    --success-color: #50CB93;
    --success-border-color: #71EFA3;
    --visited-color: transparent;
    --red-color: #FE7743;
}

.white {
    background-color: #f4f4f4;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.white-box {
    background: white !important;
    border: .05rem solid #dadee4 !important;
    border-radius: 4px;
}

.divider {
    border-top: .05rem solid #e1e3e5;
}

.tab {
    border-bottom: none;
}

.tab .tab-item {
    border-radius: 4px;
    background: var(--white-color) !important;
    border: .05rem solid #dadee4 !important;
}

.tab .tab-item.active {
    color: var(--white-color) !important;
    background: var(--primary-color) !important;
}

.tab .tab-item a, .tab .tab-item a.active {
    color: var(--primary-color) !important;
    border-bottom: none !important;
}

.tab .tab-item.active a, .tab .tab-item a.active {
    color: var(--white-color) !important;
}

.btn.btn-primary img {
    filter: invert(1);
}

.divider[data-content]::after, .divider-vert[data-content]::after {
    border: .05rem solid #dadee4 !important;
}

.bg-white {
    background: white !important;
}

.menu {
    background: #f7f7f7;
    box-shadow: none;
}

.black {
    background: black;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    display: flex;
}

.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered-container img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
}

.footer-logo {
    margin: 0 auto;
    width: 50px;
}

.button-group {
    position: absolute;
    bottom: 40px;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.button-group .btn {
    font-size: 16px;
    border: none;
    width: 100%;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.black .button-group .btn {
    background-color: white;
    color: black;
}

.white .button-group .btn {
    background-color: black;
    color: white;
}

.hidden {
    display: none !important;
}

.show {
    display: flex !important;
}


.overlay {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    z-index: 10000;
    align-content: center;
    justify-content: center;
}

.border-0 {
    border: none !important;
}

.mini {
    font-size: 0.8rem !important;
    vertical-align: inherit !important;
}

.extra_mini {
    font-size: 0.6rem !important;
}

button {
    padding: .25rem .9rem !important;
}

.label {
    padding: .1rem .5rem;
}

.toast {
    position: fixed;
    bottom: -100px; /* анх доор байлгана */
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 9999;
}

/* харагдаж эхлэх үед */
.toast.show {
    bottom: 40px;
    opacity: 1;
}

.overflowx {
    width: auto;
    display: flex;
    gap: 10px;
}

.overflow_parent {
    width: 100%;
    overflow-x: scroll;
    scrollbar-width: none;
}

.reload-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    padding: 0px !important;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    z-index: 1000;
}

.logout-btn {
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    padding: 0px !important;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    z-index: 1000;
}

.help-btn {
    position: fixed;
    bottom: 20px;
    right: 140px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    padding: 0px !important;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    z-index: 1000;
}

.table tr td, .table tr th {
    padding: .2rem .4rem;
    border-bottom: none;
}

th {
    font-weight: 500;
}

.form-label {
    color: #aaa;
}

.btn.btn-add::before {
    content: "\271B" !important;
}

.center-image {
    margin: 0 auto;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.1rem;
}

.chip {
    border: 1px solid #3b4351;
}

.item5 {
    background: #fff;
    padding: 0.5rem;
    border: 1px solid #f1f1f1;
    text-align: center;
}

.item4 {
    background: #fff;
    padding: 0.2rem;
    border: 1px solid #f1f1f1;
    text-align: center;
}

.app-logo {
    width: 170px;
    display: block;
    margin: 0 auto;
}

.hidden-row {
    display: none;
}

.card {
    border-radius: 8px;
    background: #f7f7f7;
    border: none;
}

.btn {
    border-radius: 4px;
    height: 2.4rem;
    padding: 12px 5px;
    /*text-transform: uppercase;*/
}

.form-select, .form-input {
    border-radius: 4px;
    border: .05rem solid #e9e9e9 !important;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-input {
    padding: 20px 10px;
}


input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px white inset !important; /* Шаргал дэвсгэр */
    font-size: 1.0rem !important;
}

.divider {
    text-transform: uppercase;
    font-style: italic;
}

.tab-item {
    text-transform: uppercase;
    font-size: 0.7rem;
}

.text-bold {
    font-weight: 500;
}