/* Заявки (ProstoChill). Loaded only on /request/ (forward/interface_always.php); every rule is under .request-module.
   Vipe palette only. Controls follow the control panel kit (module_page_controlpanel «Розробнику»): button 40 px
   (32 in rows), radius 8, field 40 px, label 11 px, switch 32×18, chips / statuses 20 px pills; tiles and empty states
   on the dark --fon, panels on --navbar-first-color; green #64ce82 = chosen / on, red #ef7777 = off. Icons: ZMDI. */

/* ------------------------------------------------------------------ base */
.request-module { color: var(--color-default); letter-spacing: 0; }
/* The template column adds 16px on top — the module starts flush with the page container, as other pages (/bans/). */
.request-module > .col-md-12 { margin-top: 0; }
.request-module *, .request-module *::before, .request-module *::after { box-sizing: border-box; }
.request-module [hidden] { display: none !important; }
.request-module a { color: inherit; text-decoration: none; }
.request-module p, .request-module ul, .request-module h2, .request-module h3, .request-module h4 { margin: 0; padding: 0; letter-spacing: 0; }
.request-module ul { list-style: none; }
.request-module span { color: inherit; }
.request-module .zmdi { font-size: 14px; line-height: 1; flex: none; }
.request-module ::-webkit-scrollbar { width: 4px; height: 4px; }
.request-module ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--color-default) 15%, transparent); border-radius: 4px; }
.request-module ::-webkit-scrollbar-track { background: transparent; }
.request-module * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--color-default) 15%, transparent) transparent; }
.request-module :focus-visible { outline: 1px solid color-mix(in srgb, var(--span-color) 45%, transparent); outline-offset: 2px; }

/* --------------------------------------------------------------- buttons */
.request-module .rq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 0 18px;
    border: 2px solid var(--navbar-first-color); border-radius: 8px;
    background: var(--tablcolor); color: var(--span-color);
    font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap;
    cursor: pointer; transition: border-color .15s ease, transform .15s ease, opacity .15s ease;
}
.request-module .rq-btn:hover, .request-module .rq-btn:focus-visible { border-color: var(--span-color); outline: none; }
.request-module .rq-btn:not(:disabled):active { transform: scale(.97); }
.request-module .rq-btn:disabled, .request-module .rq-btn.is-busy { opacity: .5; pointer-events: none; }
.request-module .rq-btn--small { min-height: 32px; padding: 0 12px; font-size: 11px; }
.request-module .rq-btn--icon { width: 32px; min-height: 32px; padding: 0; }
.request-module .rq-btn--wide { width: 100%; }

/* ---------------------------------------------------------------- fields */
.request-module input[type="text"], .request-module input[type="number"], .request-module input[type="search"],
.request-module input[type="url"], .request-module textarea, .request-module .rq-input {
    width: 100%; min-width: 0; min-height: 40px; padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--color-default) 8%, transparent); border-radius: 8px;
    background: var(--fon); color: color-mix(in srgb, var(--color-default) 90%, transparent);
    font: inherit; font-size: 13px; outline: none; transition: border-color .15s ease;
}
.request-module textarea, .request-module .rq-textarea { min-height: 120px; max-height: 260px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.request-module .rq-textarea--short { min-height: 72px; max-height: 180px; }
.request-module input::placeholder, .request-module textarea::placeholder { color: color-mix(in srgb, var(--color-default) 35%, transparent); }
.request-module input:hover, .request-module textarea:hover { border-color: color-mix(in srgb, var(--color-default) 15%, transparent); }
.request-module input:focus, .request-module textarea:focus { border-color: color-mix(in srgb, var(--span-color) 60%, transparent); }
.request-module .rq-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.request-module .rq-field > span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; line-height: 16px; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-hint { font-size: 11px; line-height: 1.45; color: color-mix(in srgb, var(--color-default) 50%, transparent); }
.request-module .rq-note-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: color-mix(in srgb, var(--color-default) 78%, transparent); }
.request-module .rq-note-line .zmdi { color: #64ce82; }
.request-module .hide-input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }

/* switch = kit .cp__switch */
.request-module .rq-switches { display: flex; flex-direction: column; gap: 10px; }
.request-module .rq-switch-row { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; color: color-mix(in srgb, var(--color-default) 78%, transparent); cursor: pointer; }
.request-module input.switch {
    appearance: none; -webkit-appearance: none; position: relative; flex: none;
    width: 32px; height: 18px; margin: 0;
    border: 1px solid color-mix(in srgb, var(--color-dark) 20%, transparent); border-radius: 10px;
    background: var(--fon); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.request-module input.switch::before {
    content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-dark); transition: transform .2s, background-color .2s;
}
.request-module input.switch:checked { border-color: var(--span-color); background: color-mix(in srgb, var(--span-color) 12%, var(--fon)); }
.request-module input.switch:checked::before { transform: translateX(14px); background: var(--span-color); }

/* segment (role type) = kit .cp__seg */
.request-module .rq-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--fon); }
.request-module .rq-seg label { margin: 0; cursor: pointer; }
.request-module .rq-seg input { position: absolute; opacity: 0; pointer-events: none; }
.request-module .rq-seg span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 6px; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--color-default) 62%, transparent); transition: color .15s, background .15s; }
.request-module .rq-seg input:checked + span { background: var(--tablcolor); color: var(--span-color); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 22%, transparent); }
.request-module .rq-seg input:focus-visible + span { outline: 1px solid color-mix(in srgb, var(--span-color) 45%, transparent); }

/* chips / statuses = kit .cp__chip / .cp__status */
.request-module .rq-chip {
    display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px;
    background: var(--fon); color: color-mix(in srgb, var(--color-default) 78%, transparent);
    font-size: 11px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.request-module .rq-chip .zmdi { font-size: 12px; color: var(--span-color); }
.request-module .rq-chip--accent { color: var(--span-color); }
.request-module .rq-status { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--fon); font-size: 10.5px; font-weight: 600; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-status--on { background: color-mix(in srgb, #64ce82 10%, transparent); color: #64ce82; }
.request-module .rq-status--off { background: color-mix(in srgb, #ef7777 10%, transparent); color: #ef7777; }
.request-module .rq-ok { color: #64ce82; }
.request-module .rq-bad { color: #ef7777; }

/* ------------------------------------------------------------ navigation */
.request-module .rq-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 8px; background: var(--navbar-first-color); }
.request-module .rq-nav__item {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px;
    font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--color-default) 62%, transparent);
    transition: color .15s ease, box-shadow .15s ease;
}
.request-module .rq-nav__item .zmdi { color: var(--span-color); }
.request-module .rq-nav__item:hover { color: var(--color-default); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .rq-nav__item.is-active { color: var(--span-color); background: var(--tablcolor); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 22%, transparent); }

/* ------------------------------------------------------------ main page */
.request-module .rq-send { display: flex; flex-direction: column; gap: 12px; }
.request-module .rq-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: var(--navbar-first-color); }
.request-module .rq-head__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--tablcolor); color: var(--span-color); }
.request-module .rq-head__icon .zmdi { font-size: 20px; }
.request-module .rq-head__text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.request-module .rq-head__title { font-size: 15px; font-weight: 600; }
.request-module .rq-head__sub { font-size: 11px; line-height: 1.45; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.request-module .rq-layout {
    display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "roles form" "how form"; gap: 12px; align-items: start;
}
.request-module .rq-roles { grid-area: roles; display: flex; flex-direction: column; }
.request-module .rq-form-wrap { grid-area: form; }
.request-module .rq-how { grid-area: how; }
.request-module .rq-step { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.request-module .rq-step__num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--tablcolor); color: var(--span-color); font-size: 11px; font-weight: 700; }

.request-module .rq-roles__list { display: flex; flex-direction: column; gap: 4px; }
.request-module .rq-role {
    position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px; border-radius: 8px;
    background: var(--navbar-first-color); cursor: pointer; transition: box-shadow .15s ease, background .2s ease;
}
.request-module .rq-role:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .rq-role:has(.rq-role__input:checked) { background: color-mix(in srgb, #64ce82 7%, var(--navbar-first-color)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #64ce82 35%, transparent); }
.request-module .rq-role:has(.rq-role__input:focus-visible) { outline: 1px solid color-mix(in srgb, var(--span-color) 45%, transparent); outline-offset: 2px; }
.request-module .rq-role__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.request-module .rq-role__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.request-module .rq-role__title { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.request-module .rq-role__picked { display: none; flex: none; font-size: 11px; font-weight: 600; color: #64ce82; white-space: nowrap; }
.request-module .rq-role:has(.rq-role__input:checked) .rq-role__picked { display: inline; }
.request-module .rq-role__meta { display: flex; flex-wrap: wrap; gap: 4px; }
.request-module .rq-tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--fon); font-size: 11px; font-weight: 500; color: color-mix(in srgb, var(--color-default) 78%, transparent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.request-module .rq-tag .zmdi { font-size: 12px; color: var(--span-color); }
.request-module .rq-tag--fast .zmdi { color: #f2c94c; }
.request-module .rq-tag--wait { color: #f6b949; background: color-mix(in srgb, #f6b949 10%, transparent); }
.request-module .rq-tag--wait .zmdi { color: #f6b949; }

.request-module .rq-form, .request-module .rq-state, .request-module .rq-how, .request-module .rq-panel {
    display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: 8px; background: var(--navbar-first-color); min-width: 0;
}
.request-module .rq-form__body { display: flex; flex-direction: column; gap: 12px; }
.request-module .rq-form__body[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.request-module .rq-form__loading { padding: 24px 0; text-align: center; font-size: 12px; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-form__actions { display: flex; }
.request-module .rq-req { display: flex; flex-direction: column; gap: 10px; }
.request-module .rq-how__list.rq-req__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.request-module .rq-how__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.request-module .rq-how__title .zmdi { font-size: 15px; color: var(--span-color); }
.request-module .rq-how__title:not(:first-child) { margin-top: 4px; }
.request-module .rq-how__list { display: flex; flex-direction: column; gap: 4px; }
.request-module .rq-how__list li { position: relative; padding: 6px 10px 6px 22px; border-radius: 8px; background: var(--fon); font-size: 12px; line-height: 1.4; color: color-mix(in srgb, var(--color-default) 78%, transparent); }
.request-module .rq-how__list li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--span-color); }
.request-module .rq-how__text { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, #64ce82 7%, transparent); font-size: 12px; line-height: 1.45; color: color-mix(in srgb, var(--color-default) 78%, transparent); }
.request-module .rq-note { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--fon); font-size: 12px; color: color-mix(in srgb, var(--color-default) 78%, transparent); }
.request-module .rq-note__head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--color-default); }
.request-module .rq-note__head .zmdi { font-size: 15px; color: var(--span-color); }
.request-module .rq-note__list { display: flex; flex-direction: column; gap: 4px; }
.request-module .rq-note__list li { position: relative; padding-left: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.request-module .rq-note__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--span-color); }
.request-module .rq-note--wait { flex-direction: row; align-items: center; color: #f6b949; background: color-mix(in srgb, #f6b949 8%, transparent); }
.request-module .rq-question > span { align-items: flex-start; color: color-mix(in srgb, var(--color-default) 78%, transparent); line-height: 1.4; }
.request-module .rq-question__num { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--fon); font-size: 10px; font-weight: 700; }
.request-module .rq-state { align-items: center; text-align: center; padding: 24px 12px; }
.request-module .rq-state__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--tablcolor); color: var(--span-color); }
.request-module .rq-state__icon .zmdi { font-size: 18px; }
.request-module .rq-state__title { font-size: 14px; font-weight: 600; }
.request-module .rq-state__text { max-width: 420px; font-size: 12px; line-height: 1.5; color: color-mix(in srgb, var(--color-default) 62%, transparent); }

/* -------------------------------------------------------------- dropdown */
.request-module .adaptive-select-wrapper { position: relative; margin: 0; min-width: 0; }
.request-module .adaptive-select {
    display: flex; align-items: center; gap: 10px; width: 100%; min-width: 180px; height: 40px; padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--color-default) 8%, transparent); border-radius: 8px;
    background: var(--fon); color: color-mix(in srgb, var(--color-default) 90%, transparent); font-size: 13px; cursor: pointer; transition: border-color .15s ease;
}
.request-module .adaptive-select:hover, .request-module .adaptive-select[aria-expanded="true"] { border-color: color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .adaptive-select__fist-icon { color: var(--span-color); }
.request-module .adaptive-select__span_text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.request-module .adaptive-select__arrow { color: color-mix(in srgb, var(--color-default) 50%, transparent); transition: transform .25s; }
.request-module .adaptive-select[aria-expanded="true"] .adaptive-select__arrow { transform: rotate(180deg); }
.request-module .adaptive-select__dropdown-list {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; display: flex; flex-direction: column; gap: 2px;
    min-width: 100%; max-width: min(320px, 90vw); max-height: 250px; padding: 4px; overflow-y: auto; border-radius: 8px;
    background: var(--navbar-first-color); box-shadow: 0 6px 24px rgb(0 0 0 / 50%), inset 0 0 0 1px color-mix(in srgb, var(--color-default) 6%, transparent);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.request-module .adaptive-select__dropdown-list.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.request-module .adaptive-select__label { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0; padding: 0 10px; border-radius: 6px; cursor: pointer; color: color-mix(in srgb, var(--color-default) 78%, transparent); transition: box-shadow .15s; }
.request-module .adaptive-select__label:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .adaptive-select__label:has(input:checked) { color: #64ce82; background: color-mix(in srgb, #64ce82 7%, transparent); }
.request-module .adaptive-select__label-text { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* --------------------------------------------------------------- dialogs */
.request-module .popup_modal.modalDialog { width: min(540px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); overflow-y: auto; overflow-x: hidden; transition-duration: .25s; }
.request-module .popup_modal.modalDialog > .popup_modal_content { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.request-module .popup_modal_head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.request-module .popup_modal_close { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--color-dark); cursor: pointer; transition: color .15s; }
.request-module .popup_modal_close:hover, .request-module .popup_modal_close:focus-visible { color: var(--color-default); }
.request-module .popup_modal_close .zmdi { font-size: 16px; }
.request-module .popup_modal .adaptive-select-wrapper { display: flex; flex-direction: column; }
.request-module .popup_modal .adaptive-select-wrapper > .adaptive-select { order: -1; }
.request-module .popup_modal .adaptive-select__dropdown-list { position: static; margin-top: 4px; max-height: 200px; box-shadow: none; transform: none; }
.request-module .popup_modal .adaptive-select__dropdown-list:not(.visible) { display: none; }
.request-module .rq-confirm__text { font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--color-default) 78%, transparent); }
.request-module .rq-confirm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------------------------------------------------- open requests / archive */
.request-module .rq-tickets { display: flex; flex-direction: column; gap: 12px; }
.request-module .rq-filters { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; background: var(--navbar-first-color); }
.request-module .rq-filters > input[type="search"], .request-module .rq-filters > .adaptive-select-wrapper { flex: 1 1 200px; }
.request-module .rq-filters__size { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-size { min-width: 40px; height: 40px; border: 2px solid var(--navbar-first-color); border-radius: 8px; background: var(--fon); color: color-mix(in srgb, var(--color-default) 62%, transparent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.request-module .rq-size:hover { border-color: color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .rq-size.is-active { background: var(--tablcolor); color: var(--span-color); border-color: color-mix(in srgb, var(--span-color) 50%, transparent); }
.request-module .rq-tickets__list { display: flex; flex-direction: column; gap: 4px; }
.request-module .rq-tickets__list[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
.request-module .rq-ticket { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--navbar-first-color); transition: box-shadow .15s ease; }
.request-module .rq-ticket:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .rq-ticket__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--fon); }
.request-module .rq-ticket__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.request-module .rq-ticket__top, .request-module .rq-ticket__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.request-module .rq-ticket__title { font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.request-module .rq-ticket__date { flex: none; font-size: 11px; color: color-mix(in srgb, var(--color-default) 50%, transparent); font-variant-numeric: tabular-nums; }
.request-module .rq-ticket__text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-ticket__actions { display: flex; flex: none; gap: 4px; }
.request-module .rq-ticket__actions .rq-btn { min-width: 112px; }
.request-module .rq-empty { padding: 24px 12px; border-radius: 8px; background: var(--fon); text-align: center; font-size: 12px; color: color-mix(in srgb, var(--color-default) 50%, transparent); }
.request-module .rq-tickets__list > .rq-empty { background: var(--navbar-first-color); }
.request-module .rq-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.request-module .rq-pager__btn { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--navbar-first-color); color: color-mix(in srgb, var(--color-default) 62%, transparent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: box-shadow .15s; }
.request-module .rq-pager__btn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .rq-pager__btn.is-active { background: var(--tablcolor); color: var(--span-color); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 22%, transparent); }

/* ------------------------------------------------------------------ chat */
.request-module .rq-chat { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 12px; align-items: start; }
.request-module .rq-chat--staff { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); justify-content: stretch; }
.request-module .rq-chat__main, .request-module .rq-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; border-radius: 8px; background: var(--navbar-first-color); }
.request-module .rq-chat__head { display: flex; flex-direction: column; gap: 6px; }
.request-module .rq-back { align-self: flex-start; margin-bottom: 4px; }
.request-module .rq-chat__title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.request-module .rq-chat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.request-module .rq-closed-by { width: max-content; max-width: 100%; padding: 4px 10px; border-radius: 10px; font-size: 11px; color: #f6b949; background: color-mix(in srgb, #f6b949 10%, transparent); }
.request-module .rq-closed-by a { font-weight: 600; }
.request-module .rq-messages { display: flex; flex-direction: column; gap: 4px; min-height: 120px; max-height: 32rem; padding: 10px; overflow-y: auto; border-radius: 8px; background: var(--fon); }
.request-module .rq-msg { width: 85%; padding: 8px 10px; border-radius: 8px; background: var(--navbar-first-color); }
.request-module .rq-msg--mine { margin-left: auto; background: color-mix(in srgb, var(--span-color) 9%, var(--navbar-first-color)); }
.request-module .rq-msg__head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; min-height: 22px; }
.request-module .rq-msg__name { font-size: 11px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.request-module .rq-msg--staff .rq-msg__name { color: var(--span-color); }
.request-module .rq-msg__time { font-size: 11px; color: color-mix(in srgb, var(--color-default) 45%, transparent); font-variant-numeric: tabular-nums; }
.request-module .rq-msg__remove { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; padding: 0; border: 0; border-radius: 6px; background: none; color: color-mix(in srgb, var(--color-default) 50%, transparent); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s; }
.request-module .rq-msg__remove:hover { color: var(--span-color); }
.request-module .rq-msg:hover .rq-msg__remove, .request-module .rq-msg__remove:focus-visible { opacity: 1; }
@media (hover: none) { .request-module .rq-msg__remove { opacity: 1; } }
.request-module .rq-msg__text { font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--color-default) 85%, transparent); overflow-wrap: anywhere; }
.request-module .rq-msg__text a { color: var(--span-color); text-decoration: underline; }
.request-module .rq-msg__images { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.request-module .rq-msg--mine .rq-msg__images { justify-content: flex-end; }
.request-module .rq-msg__image img { display: block; max-width: 120px; max-height: 72px; border-radius: 6px; object-fit: cover; transition: opacity .15s; }
.request-module .rq-msg__image:hover img { opacity: .85; }
.request-module .rq-answers { display: flex; flex-direction: column; gap: 6px; }
.request-module .rq-answers__label { font-size: 11px; font-weight: 500; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-answers__list { display: flex; flex-wrap: wrap; gap: 4px; max-height: 120px; overflow-y: auto; }
.request-module .rq-reply { display: flex; flex-direction: column; gap: 10px; }
.request-module .rq-reply__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.request-module .rq-reply__close { margin-left: auto; }
.request-module .rq-reply__decide { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
/* Decision buttons: the template button, coloured by meaning (green = accept, red = reject), veil + border, no fill. */
.request-module .rq-btn--accept { color: #64ce82; border-color: color-mix(in srgb, #64ce82 40%, transparent); background: color-mix(in srgb, #64ce82 8%, var(--tablcolor)); }
.request-module .rq-btn--reject { color: #ef7777; border-color: color-mix(in srgb, #ef7777 40%, transparent); background: color-mix(in srgb, #ef7777 8%, var(--tablcolor)); }
.request-module .rq-btn--accept:hover, .request-module .rq-btn--accept:focus-visible { border-color: #64ce82; }
.request-module .rq-btn--reject:hover, .request-module .rq-btn--reject:focus-visible { border-color: #ef7777; }
.request-module .rq-reply__timer { font-variant-numeric: tabular-nums; }
.request-module .rq-slow.is-on { color: #64ce82; border-color: color-mix(in srgb, #64ce82 55%, transparent); }

.request-module .rq-side__title { font-size: 14px; font-weight: 600; }
.request-module .rq-side__hours { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--fon); font-size: 12px; font-weight: 600; }
.request-module .rq-side__hours .zmdi { color: var(--span-color); font-size: 15px; }
.request-module .rq-side__hours a { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--span-color); }
.request-module .rq-side__group { margin-top: 6px; font-size: 13px; font-weight: 600; }
.request-module .rq-side__sub { font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-side__list, .request-module .rq-side__empty { display: flex; flex-direction: column; gap: 4px; max-height: 10rem; overflow-y: auto; padding: 6px; border-radius: 8px; background: var(--fon); }
.request-module .rq-side__empty { padding: 10px; text-align: center; font-size: 12px; color: color-mix(in srgb, var(--color-default) 50%, transparent); }
.request-module .rq-side__list li { display: grid; grid-template-columns: 3fr 1fr 1.4fr; gap: 10px; align-items: center; padding: 4px 6px; }
.request-module .rq-side__list--mutes li { grid-template-columns: 1fr 2fr 1fr 1.4fr; }
.request-module .rq-side__list--pays li { grid-template-columns: 1.4fr 1fr .8fr .8fr 20px; }
.request-module .rq-side__list--store li { grid-template-columns: 1.2fr 1.2fr 1.6fr 1.2fr; }
.request-module .rq-side__list li > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: color-mix(in srgb, var(--color-default) 78%, transparent); }
.request-module .rq-side__cell { display: flex; align-items: center; gap: 4px; }
.request-module .rq-side__cell .zmdi { color: var(--span-color); font-size: 12px; }
.request-module .rq-side__gate { width: 48px; height: auto; }

/* ------------------------------------------------- blocks / access / settings */
.request-module .rq-panels { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 12px; align-items: start; }
.request-module .rq-panel__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.request-module .rq-panel__title .zmdi { font-size: 15px; color: var(--span-color); }
.request-module .rq-panel__title .rq-chip { margin-left: auto; }
.request-module .rq-table-wrap { overflow-x: auto; }
.request-module .rq-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.request-module .rq-table th { padding: 6px 8px; text-align: left; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--color-default) 62%, transparent); white-space: nowrap; }
.request-module .rq-table td { padding: 8px; border-top: 1px solid color-mix(in srgb, var(--color-default) 6%, transparent); color: color-mix(in srgb, var(--color-default) 78%, transparent); vertical-align: middle; }
.request-module .rq-table__flag { width: 32px; text-align: center !important; }
.request-module .rq-table th.rq-table__flag .zmdi { color: var(--span-color); }
.request-module .rq-table__name { font-weight: 600; color: var(--color-default); }
.request-module .rq-table__name, .request-module .rq-table__text { display: block; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.request-module .rq-table__actions { width: 1%; white-space: nowrap; text-align: right; }
.request-module .rq-table__actions .rq-btn + .rq-btn { margin-left: 4px; }
.request-module .rq-rows { display: flex; flex-direction: column; gap: 4px; }
.request-module .rq-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--fon); transition: box-shadow .15s ease; }
.request-module .rq-row:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--span-color) 40%, transparent); }
.request-module .rq-row__text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.request-module .rq-row__actions { display: flex; flex: none; gap: 4px; }
.request-module .rq-questions__list { display: flex; flex-direction: column; gap: 4px; }
.request-module .rq-question-row { display: flex; align-items: center; gap: 4px; }

/* ------------------------------------------------------------- uploader */
.request-module .filepond--root { margin: 0; font-family: inherit; cursor: pointer; }
.request-module .filepond--root .filepond--credits { display: none; }
.request-module .filepond--panel-root { background: var(--fon); border: 1px dashed color-mix(in srgb, var(--color-default) 15%, transparent); border-radius: 8px; }
.request-module .filepond--root:hover .filepond--panel-root { border-color: color-mix(in srgb, var(--span-color) 50%, transparent); }
.request-module .filepond--drop-label { color: color-mix(in srgb, var(--color-default) 62%, transparent); }
.request-module .rq-upload__text { display: block; font-size: 12px; color: color-mix(in srgb, var(--color-default) 78%, transparent); }
.request-module .rq-upload__hint { display: block; margin-top: 4px; font-size: 11px; color: color-mix(in srgb, var(--color-default) 45%, transparent); }
.request-module .filepond--label-action { color: var(--span-color); text-decoration: none; }

/* --------------------------------------------------------------- motion */
/* Blocks of every section appear with a short fade + rise, lists one after another; hover / press / open react.
   Also with the system «reduce motion» setting — the owner wants the module animated (as the New Year theme).
   Fill mode «backwards» only: a finished animation must not leave a transform (its own layer would cover dropdowns). */
@keyframes rqFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rqPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.request-module .rq-nav,
.request-module .rq-head,
.request-module .rq-roles,
.request-module .rq-form-wrap,
.request-module .rq-how,
.request-module .rq-panels > *,
.request-module .rq-filters,
.request-module .rq-chat__main,
.request-module .rq-side,
.request-module .rq-state { animation: rqFadeIn .35s cubic-bezier(.22, 1, .36, 1) backwards; }
.request-module .rq-head { animation-delay: .04s; }
.request-module .rq-roles, .request-module .rq-panels > :nth-child(1), .request-module .rq-chat__main { animation-delay: .08s; }
.request-module .rq-form-wrap, .request-module .rq-panels > :nth-child(2), .request-module .rq-side { animation-delay: .14s; }
.request-module .rq-how, .request-module .rq-panels > :nth-child(3) { animation-delay: .2s; }
.request-module .rq-panels > :nth-child(n+4) { animation-delay: .26s; }
.request-module .rq-role,
.request-module .rq-row,
.request-module .rq-table tbody tr,
.request-module .rq-ticket,
.request-module .rq-how__list li,
.request-module .rq-side__list li { animation: rqFadeIn .3s cubic-bezier(.22, 1, .36, 1) backwards; }
.request-module .rq-role:nth-child(2), .request-module .rq-row:nth-child(2), .request-module .rq-ticket:nth-child(2), .request-module .rq-how__list li:nth-child(2), .request-module .rq-side__list li:nth-child(2), .request-module .rq-table tbody tr:nth-child(2) { animation-delay: .04s; }
.request-module .rq-role:nth-child(3), .request-module .rq-row:nth-child(3), .request-module .rq-ticket:nth-child(3), .request-module .rq-how__list li:nth-child(3), .request-module .rq-side__list li:nth-child(3), .request-module .rq-table tbody tr:nth-child(3) { animation-delay: .08s; }
.request-module .rq-role:nth-child(4), .request-module .rq-row:nth-child(4), .request-module .rq-ticket:nth-child(4), .request-module .rq-how__list li:nth-child(4), .request-module .rq-side__list li:nth-child(4), .request-module .rq-table tbody tr:nth-child(4) { animation-delay: .12s; }
.request-module .rq-role:nth-child(5), .request-module .rq-row:nth-child(5), .request-module .rq-ticket:nth-child(5), .request-module .rq-how__list li:nth-child(5), .request-module .rq-side__list li:nth-child(5), .request-module .rq-table tbody tr:nth-child(5) { animation-delay: .16s; }
.request-module .rq-role:nth-child(n+6), .request-module .rq-row:nth-child(n+6), .request-module .rq-ticket:nth-child(n+6), .request-module .rq-how__list li:nth-child(n+6), .request-module .rq-side__list li:nth-child(n+6), .request-module .rq-table tbody tr:nth-child(n+6) { animation-delay: .2s; }
.request-module .rq-form__body > *,
.request-module .rq-msg { animation: rqFadeIn .3s cubic-bezier(.22, 1, .36, 1) backwards; }
.request-module .popup_modal_content > * { animation: rqFadeIn .3s cubic-bezier(.22, 1, .36, 1) backwards; }
.request-module .rq-role__picked { animation: rqPop .25s ease backwards; }
.request-module .rq-btn .zmdi, .request-module .rq-nav__item .zmdi { transition: transform .2s ease; }
.request-module .rq-btn:hover .zmdi, .request-module .rq-nav__item:hover .zmdi { transform: translateX(1px) scale(1.08); }
.request-module .rq-back:hover .zmdi { transform: translateX(-3px); }
.request-module .rq-msg__image img { transition: opacity .15s ease, transform .2s ease; }
.request-module .rq-msg__image:hover img { transform: scale(1.04); }

/* ----------------------------------------------------------- narrow screens */
@media (max-width: 1100px) {
    .request-module .rq-chat--staff { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .request-module .rq-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "roles" "form" "how"; }
    .request-module .rq-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .request-module .rq-nav { flex-wrap: nowrap; overflow-x: auto; }
    .request-module .rq-nav__item { flex: none; }
    .request-module .rq-how__list.rq-req__list { grid-template-columns: minmax(0, 1fr); }
    .request-module .rq-filters__size { margin-left: 0; }
    .request-module .rq-ticket { flex-wrap: wrap; }
    .request-module .rq-ticket__avatar, .request-module .rq-ticket__date { display: none; }
    .request-module .rq-ticket__actions { width: 100%; justify-content: flex-end; }
    .request-module .rq-ticket__actions .rq-btn { min-width: 0; }
    .request-module .rq-msg { width: 92%; }
    .request-module .rq-side__list li, .request-module .rq-side__list--mutes li, .request-module .rq-side__list--pays li, .request-module .rq-side__list--store li { grid-template-columns: 1fr 1fr; }
    .request-module .rq-confirm__actions { grid-template-columns: 1fr; }
    .request-module .popup_modal.modalDialog { padding: 15px; }
}
