html,
body {
    height: 100%;
}

.placeholder::placeholder {
    color: red;
    opacity: 1;
}

.input-group-prepend {
    margin-right: 0px;
}

.name_room {
    word-wrap: break-word;
    word-break: break-all;
}

.limiter--counter {
    font-size: 10px;
    padding-bottom: 10px;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: #fff;
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
        border-radius 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
    .accordion-button {
        transition: none;
    }
}

.accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: #e7f1ff;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%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-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%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-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: transform 0.2s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .accordion-button::after {
        transition: none;
    }
}

.accordion-button:hover {
    z-index: 2;
}

.accordion-button:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-item {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.accordion-item:first-of-type {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.accordion-item:not(:first-of-type) {
    border-top: 0;
}

.accordion-item:last-of-type {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-bottom-right-radius: calc(0.25rem - 1px);
    border-bottom-left-radius: calc(0.25rem - 1px);
}

.accordion-item:last-of-type .accordion-collapse {
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.accordion-body {
    padding: 1rem 1.25rem;
}

.accordion-flush .accordion-collapse {
    border-width: 0;
}

.accordion-flush .accordion-item {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}
.is-invalid::placeholder {
    color: red;
}
.lead {
    font-size: 1rem;
}
.accordion-flush .accordion-item:first-child {
    border-top: 0;
}

.accordion-flush .accordion-item:last-child {
    border-bottom: 0;
}

.accordion-flush .accordion-item .accordion-button {
    border-radius: 0;
}

/* По умолчанию — в одну строку */
.responsive-input-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Очищаем стандартный Bootstrap отступ */
.responsive-input-group .input-group-prepend,
.responsive-input-group .input-group-text,
.responsive-input-group .form-control {
    margin: 0;
    border-radius: 0;
}

/* Стилизация input и span */
.responsive-input-group .input-group-prepend {
    display: flex;
    align-items: center;
}

.responsive-input-group .input-group-text {
    white-space: nowrap;
}

/* На мобильных — колонка, без отступа */
@media (max-width: 576px) {
    .responsive-input-group {
        flex-direction: column;
    }

    .responsive-input-group .input-group-prepend,
    .responsive-input-group .form-control {
        width: 100%;
    }

    .responsive-input-group .form-control {
        margin-top: 0;
    }
}

.accordion-my .accordion-button,
.accordion-my .accordion-body {
    padding-left: 1rem;
    padding-right: 1rem;
}

.accordion-my .accordion-button {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.accordion-my .accordion-body {
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.switch-field {
    width: 100% !important;

    padding-bottom: 0rem;
}

.text-middle {
    text-align: center;
}

.mr-3-my {
    margin-right: 1rem !important;
}

.ml-3-my {
    margin-left: 1rem !important;
}

.accordion-my {
    background-color: #e9ecef;
}

.switch-field {
    display: flex;
    overflow: hidden;
}

.switch-field input {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}

.switch-field label {
    margin-bottom: 0;
    background-color: #e4e4e4;
    color: rgba(0, 0, 0, 0.6);
    line-height: 40px;
    text-align: center;
    /* padding: 0 3.5rem; */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 1px rgba(255, 255, 255, 0.1);
    transition: all 0s ease-in-out;
    height: 30px;
}

.switch-field label:hover {
    cursor: pointer;
}

.switch-field input:checked + .on-button {
    background-color: #70b704;
    box-shadow: none;
    margin-bottom: 0;
    color: white;
}

.switch-field input:checked + .off-button {
    background-color: red;
    box-shadow: none;
    margin-bottom: 0;
    color: white;
}

.switch-field label:first-of-type {
    border-radius: 4px 0 0 4px;
}

.switch-field label:last-of-type {
    border-radius: 0 4px 4px 0;
}

/* .switch-field label {
  padding: 0 7.89rem;
} */

.display-my {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.2;
}

.input-group-text_magellan {
    min-width: 100px !important;
}

input.pw {
    font-family: "password";
    -webkit-text-security: disc;
}
input.error::placeholder {
    color: red; /* цвет при ошибке */
}
b,
strong {
    font-weight: normal;
}
.mb-2 {
    margin-bottom: 0rem !important;
}
button.close {
    display: none;
    width: 15px;
    height: 15px;
    position: absolute;
    z-index: 5;
    right: 208px;
    top: 6.5px;
    border-radius: 50%;
    text-align: center;
    color: #1d457f;
    opacity: 1;
}

.custom-select {
    height: 2.45rem;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    line-height: 1.55;
    min-width: 205px;
}

.input-group
    > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(
        .valid-feedback
    ):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: 0px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* @media (max-width: 1400px) {
  .switch-field label {
      padding: 0 3.71rem;
  }
} */

.input-width {
    width: 100%;
}

@media (max-width: 1200px) {
    /* .switch-field label {
      padding: 0 2.1rem;
  } */
    .input-group-text_magellan {
        min-width: 100% !important;
        border-radius: 0;
    }
    .form-control {
        border-radius: 0;
    }

    .header {
        grid-column: 1/4;
    }
    .main {
        grid-column: 2/3;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .input-group {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .input-group > .form-control,
    .input-group > .custom-select {
        width: 100%;
    }
    .input-width {
        /* width: calc(100% - 1px); */
        border-radius: 0;
    }
    .input-mb {
        border-radius: 0;
    }
    .text-magellan {
        border-radius: 0;
    }
    .switch-field label:first-of-type {
        border-radius: 0;
    }
    .switch-field label:last-of-type {
        border-radius: 0;
    }
    button.close {
        right: 13px;
    }
}
@media (max-width: 767.5px) {
    #btn-search-my {
        height: 2.5rem;
    }
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .header {
        grid-column: 1;
    }
    .name {
        grid-column: 1;
        grid-row: 2/3;
    }
    .date {
        grid-column: 1;
        grid-row: 3/4;
    }
    .grid_comment {
        grid-column: 1/2;
        grid-row: 4/5;
    }
    .main {
        grid-column: 1;
        grid-row: 5;
    }
    .text-media {
        font-size: 15px;
    }
    .name-my {
        font-size: 15px;
    }
    .mr-3-my {
        margin-right: 0.5rem !important;
    }
    .ml-3-my {
        margin-left: 0.5rem !important;
    }
}
@media (max-width: 576px) {
    .text-magellan {
        font-size: 15px;
    }
    .switch-field label {
        padding: 0 0.5rem;
    }
    .input-group-prepend {
        width: 100%;
    }
}

.timer__items {
    display: flex;
    justify-content: center;
}

.timer__item {
    position: relative;
    min-width: 60px;
    margin-left: 10px;
    margin-right: 10px;
    padding-bottom: 15px;
    text-align: center;
}

.timer__item::before {
    content: attr(data-title);
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    font-size: 14px;
}

.timer__item:not(:last-child)::after {
    content: ":";
    position: absolute;
    right: -15px;
}

.btn:disabled {
    opacity: 0.9;
}

.accordion-body {
    padding: 1rem 0;
}

.form-my-auth {
    display: none;
}

.showbox {
    display: none;
    background-color: rgba(255, 255, 255, 0.5);
}

.loader {
    display: none;
    position: relative;
    margin: 0 auto;
    width: 35px;
}
.loader:before {
    content: "";
    display: block;
    padding-top: 100%;
}

.circular {
    animation: rotate 2s linear infinite;
    height: 100%;
    transform-origin: center center;
    width: 100%;
    position: absolute;
    top: 132px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.limit_name {
    display: block;
    width: 100%;
}

.limit_name .limiter-progress_name {
    display: block;
    width: 100%;
    height: 5px;
    background: #d7dfe3;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin: 9px 0 2px;
}

.limit_name .limiter-progress-bg_name {
    display: block;
    width: 0;
    background: #70b704;
    max-width: 100%;
    height: inherit;
    position: absolute;
    left: 0;
    transition: background-color 0.2s linear;
}

.limit_name.warning .limiter-progress-bg_name {
    background: #e67e22;
}

.limit_name.warning .limiter-counter_name {
    color: #e67e22;
}

.limit_name.limited .limiter-progress-bg_name {
    background: #e74c3c;
}

.limit_name.limited .limiter-counter_name {
    color: #e74c3c;
}

.limit {
    display: block;
    width: 100%;
}

.limit .limiter-progress {
    display: block;
    width: 100%;
    height: 5px;
    background: #d7dfe3;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin: 9px 0 2px;
}

.limit .limiter-progress-bg {
    display: block;
    width: 0;
    background: #70b704;
    max-width: 100%;
    height: inherit;
    position: absolute;
    left: 0;
    transition: background-color 0.2s linear;
}

.limit.-warning .limiter-progress-bg {
    background: #e67e22;
}

.limit.-warning .limiter-counter {
    color: #e67e22;
}

.limit.-limited .limiter-progress-bg {
    background: #e74c3c;
}
.mt-3 {
    margin-top: 3px !important;
}
.text-left {
    padding-top: 20px;
    padding-bottom: 0px;
    font-size: 11px;
}

.limit.-limited .limiter-counter {
    color: #e74c3c;
}

.limiter {
    display: block;
    width: 100%;
}

.limiter .limiter--progress {
    display: block;
    width: 100%;
    height: 5px;
    background: #d7dfe3;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin: 0px 0 2px;
}

.limiter .limiter--progress-bg {
    display: block;
    width: 0;
    background: #70b704;
    max-width: 100%;
    height: inherit;
    position: absolute;
    left: 0;
    transition: background-color 0.2s linear;
}

.limiter.--warning .limiter--progress-bg {
    background: #e67e22;
}

.limiter.--warning .limiter--counter {
    color: #e67e22;
}

.limiter.--limited .limiter--progress-bg {
    background: #e74c3c;
}

.limiter.--limited .limiter--counter {
    color: #e74c3c;
}

.page-link {
    padding: 0.55rem 0.75rem;
}

.hidden {
    display: none;
}
