@charset "UTF-8";

/* ---------- Блок record-wait как триггер + выпадающее меню ---------- */
/* Весь блок кликабелен (курсор задан в record.css/contact.css). Меню позиционируется от блока. */
.record-wait { position: relative; }

/* Меню раскрыто — снимаем обрезку анимации и поднимаем над соседним контентом (фикс перекрытия). */
.record-wait.menu-open { overflow: visible !important; z-index: 200; }

/* Мигание рамки блока в режиме редактирования (рамка через box-shadow — не влияет на геометрию). */
.record-wait.blink-border { animation: veBorderBlink 1.4s ease-in-out infinite; }
@keyframes veBorderBlink {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255, 212, 121, .15); }
    50%      { box-shadow: 0 0 0 2px #ffd479; }
}

/* Строка параметров визита в блоке ожидания + подсветка изменённых админом полей. */
.wait-params {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 6px 0;
    font-size: .9em;
    text-align: left;
}
.wait-p:empty { display: none; }
.wait-p__label { color: #9aa0a6; }
.wait-p--changed { color: #ffd479; font-weight: 700; }
.wait-p--changed .wait-p__label { color: #ffd479; }

.wait-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #2f3033;
    border: 1px solid #4a4b4f;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .3s ease, opacity .25s ease, transform .25s ease;
    min-width: 200px;
    z-index: 210;
}
.wait-dropdown.open {
    max-height: 240px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.wait-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #e4e5e5;
    padding: 12px 16px;
    font-size: 0.98em;
    cursor: pointer;
    transition: background .12s ease;
}
.wait-opt + .wait-opt { border-top: 1px solid #3a3b3f; }
.wait-opt:hover { background: #3a3b3f; }
.wait-opt svg { width: 18px; height: 18px; flex: 0 0 auto; color: #a9dfdf; }

.wait-editing {
    display: block;
    color: #ffd479;
    font-weight: 700;
    letter-spacing: .06em;
    margin-top: 6px;
}

/* ---------- Подсказка (toast) ---------- */
.visit-lock-toast {
    position: fixed;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    background: #3b3c3d;
    color: #e4e5e5;
    border: 1px solid #5a6575;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    max-width: 90%;
    text-align: center;
    font-size: 0.95em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.visit-lock-toast.show { opacity: 1; }
.visit-lock-toast svg { width: 18px; height: 18px; flex: 0 0 auto; color: #a9dfdf; vertical-align: middle; }

/* ---------- Модальные окна визита ---------- */
.ve-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 16px;
}
.ve-modal {
    background: #303134;
    color: #e4e5e5;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    width: 100%;
    max-width: 420px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}
.ve-title {
    font-size: 1.02em;
    line-height: 1.4;
    margin-bottom: 14px;
    color: #e9eaea;
}
.ve-inline-ico { display: inline-flex; vertical-align: middle; }
.ve-inline-ico svg { width: 20px; height: 20px; color: #74c0fc; }

.ve-input {
    width: 100%;
    box-sizing: border-box;
    background: #2a2b2e;
    color: #fff;
    border: 1px solid #5a6575;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1em;
    resize: vertical;
    outline: none;
    margin-bottom: 14px;
}
.ve-input:focus { border-color: #a9dfdf; box-shadow: 0 0 0 2px rgba(169, 223, 223, .25); }

.ve-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.ve-actions--col { flex-direction: column; }
.ve-actions--col .ve-btn { width: 100%; }
.ve-btn {
    font-size: 0.98em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    background: #4a4b4f;
    color: #e4e5e5;
    transition: filter .15s ease;
}
.ve-btn:hover { filter: brightness(1.1); }
.ve-btn--primary { background: #a9dfdf; color: #10312f; }
.ve-btn--danger { background: #b3282c; color: #ffd7d8; }

/* ---------- Сравнение изменений ---------- */
.ve-diff { margin-bottom: 16px; }
.ve-diff-row {
    display: grid;
    grid-template-columns: 92px 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #3a3b3f;
    font-size: 0.95em;
}
.ve-diff-label { color: #9aa0a6; }
.ve-diff-arrow { color: #74c0fc; }
.ve-diff-row.changed .ve-diff-new { color: #ffd479; font-weight: 700; }
.ve-diff-row.changed .ve-diff-old { color: #9aa0a6; text-decoration: line-through; }

/* ---------- Подсветка незаполненных полей формы (имя/телефон) ---------- */
#page-contact #form-contact input.field-invalid {
    border-color: #e5484d;
    box-shadow: 0 0 0 2px rgba(229, 72, 77, .25);
}
