/* NeoLoss — кабинет врача и админка заявок. Токены — styles.css */

.adm-page { min-height: 100dvh; background: var(--surface-2); }
[hidden] { display: none !important; }

/* ---------- вход ---------- */
.adm-login { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden; }
.adm-login__card { position: relative; z-index: 1; width: min(420px, 100%); display: grid; gap: 14px; padding: 36px 32px 32px; border-radius: var(--r-xl); background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--glass-edge), 0 40px 80px -40px rgb(16 40 90 / .35); }
.adm-login__card .logo { margin-bottom: 18px; }
.adm-login__title { font-size: 34px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.adm-login__lead { margin-bottom: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.adm-login__alt { text-align: center; font-size: 14px; color: var(--ink-3); }
.adm-login__alt a { color: var(--blue); font-weight: 500; }

/* ---------- поля ---------- */
.adm-fld { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.adm-fld small { font-weight: 400; color: var(--ink-4); }
.adm-fld input, .adm-fld select, .adm-select, .adm-note textarea { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); transition: box-shadow .2s ease; }
.adm-fld input:focus, .adm-fld select:focus, .adm-select:focus, .adm-note textarea:focus, .adm-search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgb(11 107 229 / .1); }
.adm-fld__row { display: flex; gap: 8px; }
.adm-fld__row .btn { height: 48px; flex: none; }
.adm-fld--inline { margin-top: 14px; }
.adm-err { font-size: 13.5px; color: #C2321F; }
.adm-err:empty { display: none; }
.adm-hint { padding: 12px 14px; border-radius: 14px; background: var(--mint-100); font-size: 13.5px; line-height: 1.5; color: #0E5E46; word-break: break-word; }
.adm-muted { color: var(--ink-4); }

/* ---------- каркас ---------- */
.adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.adm__side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 24px 14px 16px; background: #fff; box-shadow: inset -1px 0 0 var(--line); }
.adm__nav { display: grid; gap: 4px; }
.adm__nav button { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: none; font-size: 15px; font-weight: 500; color: var(--ink-2); text-align: left; transition: background-color .2s ease, color .2s ease; }
.adm__nav button:hover { background: var(--surface-2); }
.adm__nav button.is-on { background: var(--blue-50); color: var(--blue-hover); }
.adm__nav .icon { width: 20px; height: 20px; color: var(--ink-3); }
.adm__nav .is-on .icon { color: var(--blue); }
.adm__nav b { margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.adm__me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface-2); }
.adm__me p { display: grid; min-width: 0; font-size: 14px; line-height: 1.25; }
.adm__me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm__me small { font-size: 12px; color: var(--ink-3); }
.adm__me .adm__icon-btn { margin-left: auto; }
.adm__avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue); font-size: 14px; font-weight: 600; }
.adm__avatar .icon { width: 20px; height: 20px; }
.adm__icon-btn { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--ink-3); transition: background-color .2s ease, color .2s ease; }
.adm__icon-btn:hover { background: var(--blue-50); color: var(--blue-hover); }
.adm__icon-btn--danger:hover { background: #FDECEA; color: #C2321F; }
.adm__icon-btn .icon { width: 19px; height: 19px; }

.adm__main { min-width: 0; padding: 32px 40px 48px; }
.adm__view { display: none; }
.adm__view.is-on { display: block; animation: adm-in .4s var(--ease-out); }
@keyframes adm-in { from { opacity: 0; transform: translateY(6px); } }
.adm__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.adm__title { font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.adm__sub { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.adm__head .btn .icon { width: 17px; height: 17px; }

/* ---------- цифры ---------- */
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.adm-stat { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px #EAF0F7, 0 10px 30px -22px rgb(16 40 90 / .25); }
.adm-stat b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.adm-stat span { font-size: 13.5px; color: var(--ink-3); }
.adm-stat--blue b { color: var(--blue); }
.adm-stat--mint b { color: var(--mint); }
.adm-stat small { font-size: 12.5px; color: var(--ink-4); }
.adm-sub-sm { margin-bottom: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* доход в карточке заявки */
.adm-earn { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--mint-100); font-size: 14px; color: #0E5E46; }
.adm-earn .icon { width: 18px; height: 18px; flex: none; }
.adm-earn--wait { background: #FFF6E5; color: #8A5300; }

/* регистрации врачей */
.adm-pending { margin-bottom: 24px; padding: 20px; border-radius: 24px; background: #FFF8EC; box-shadow: inset 0 0 0 1px #F6E3BF; }
.adm-pending__title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 18px; font-weight: 600; }
.adm-pending__title b { min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--r-pill); background: #D98200; color: #fff; font-size: 13px; }
.adm-pending__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.adm-preg { display: grid; gap: 14px; }
.adm-preg__head { display: flex; align-items: center; gap: 12px; }
.adm-preg__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-preg__acts .btn .icon { width: 17px; height: 17px; }
.adm-preg__acts .adm-del { margin: 0 0 0 auto; }
.adm-preg .adm-kv__row { grid-template-columns: 150px minmax(0, 1fr); }

/* финансы */
.adm-fin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.adm-fin__docs { display: grid; gap: 14px; }
.adm-fin__doc { display: grid; gap: 16px; }
.adm-fin__head { display: flex; align-items: center; gap: 14px; }
.adm-fin__bal { margin-left: auto; display: grid; justify-items: end; }
.adm-fin__bal small { font-size: 12.5px; color: var(--ink-3); }
.adm-fin__bal b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm-fin__bal b.is-due { color: var(--blue); }
.adm-fin__nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.adm-fin__nums li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.adm-fin__nums b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-fin__nums span { font-size: 12.5px; color: var(--ink-3); }
.adm-fin__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.adm-rate .adm-fld__row select { width: 150px; }
.adm-rate .adm-fld__row input { width: 100px; }
.adm-fin__pay { gap: 8px; }
.adm-fin__pay .icon { width: 17px; height: 17px; }
.adm-fin__pay:disabled { opacity: .45; cursor: not-allowed; }
.adm-fin__hist summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--blue); }
.adm-fin__hist[open] summary { margin-bottom: 10px; }
.adm-fin__list { display: grid; }
.adm-fin__list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; box-shadow: inset 0 -1px 0 #EEF2F7; }
.adm-fin__list li span { min-width: 0; color: var(--ink-2); }
.adm-fin__list li b { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-fin__list .adm__icon-btn { width: 32px; height: 32px; }
.adm-fin__empty { padding: 12px 0; font-size: 14px; }

/* ---------- фильтры ---------- */
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.adm-search { position: relative; flex: 1 1 260px; }
.adm-search .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: var(--ink-4); transform: translateY(-50%); pointer-events: none; }
.adm-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 14.5px; color: var(--ink); }
.adm-select { width: auto; height: 44px; padding: 0 36px 0 14px; font-size: 14px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525E6F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.adm-fld select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525E6F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgb(20 50 100 / .04); }
.adm-chips button { height: 36px; padding: 0 14px; border: 0; border-radius: 11px; background: none; font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.adm-chips button:hover { color: var(--ink); }
.adm-chips button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(16 32 64 / .06), 0 4px 12px -6px rgb(16 32 64 / .2); }

/* ---------- таблица ---------- */
.adm-table { border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px #EAF0F7, 0 10px 30px -22px rgb(16 40 90 / .25); overflow: hidden; }
.adm-row { display: grid; grid-template-columns: 120px minmax(150px, 1.2fr) minmax(150px, 1fr) 130px minmax(150px, 1.2fr) 120px; align-items: center; gap: 16px; width: 100%; padding: 14px 20px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; box-shadow: inset 0 -1px 0 #EEF2F7; transition: background-color .15s ease; }
button.adm-row { cursor: pointer; }
button.adm-row:hover { background: var(--blue-50); }
.adm-row--head { padding-top: 12px; padding-bottom: 12px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.adm-row > span { min-width: 0; }
.adm-row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.adm-row__date { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.adm-row.is-new .adm-row__date { color: var(--blue); font-weight: 600; }
.adm-row.is-new .adm-row__date::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }
.adm-row__slot { display: flex; align-items: center; gap: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.adm-row__slot .icon { width: 16px; height: 16px; flex: none; color: var(--blue); }
.adm-row__slot small { color: var(--blue); font-weight: 500; }
.adm-row__slot small:empty { display: none; }

/* карточка приёма */
.adm-appt { display: grid; gap: 14px; margin-bottom: 12px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #EEF5FF, #F6F9FE 60%, #F1F0FF); box-shadow: inset 0 0 0 1px #E2ECFA; }
.adm-appt__top { display: flex; align-items: center; gap: 12px; }
.adm-appt__top p { display: grid; line-height: 1.25; }
.adm-appt__top small { font-size: 13px; color: var(--ink-3); }
.adm-appt__top b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.adm-appt__ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--blue); box-shadow: 0 6px 16px -10px rgb(16 40 90 / .4); }
.adm-appt__ico .icon { width: 20px; height: 20px; }
.adm-appt__timer { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; }
.adm-appt__label { padding-right: 4px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.adm-appt__cell { display: grid; justify-items: center; padding: 10px 6px 8px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -12px rgb(16 40 90 / .35); }
.adm-appt__cell b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.adm-appt__cell small { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.adm-appt__timer.is-soon .adm-appt__cell b { color: #D25A12; }
.adm-appt__live, .adm-appt__past { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 15px; font-weight: 600; }
.adm-appt__live { color: var(--mint); }
.adm-appt__live i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: adm-pulse 1.6s ease-in-out infinite; }
.adm-appt__past { color: var(--ink-3); }
@keyframes adm-pulse { 50% { box-shadow: 0 0 0 6px rgb(20 138 102 / .15); } }
.adm-appt__note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.adm-appt__note .icon { width: 17px; height: 17px; color: var(--blue); }
.adm-appt__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adm-appt__btns .btn { gap: 8px; padding: 0 14px; white-space: nowrap; }
.adm-appt__btns .btn .icon { width: 19px; height: 19px; }
.adm-appt__btns > :only-child { grid-column: 1 / -1; }
.adm-appt__nolink { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 12px; border-radius: 14px; border: 1.5px dashed #C9D7EA; font-size: 13.5px; line-height: 1.3; color: var(--ink-3); text-align: center; }
.adm-appt__nolink .icon { width: 18px; height: 18px; flex: none; }
.adm-meetform { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.adm-meetform .btn { height: 48px; }
.adm-row__doc { color: var(--ink-3); }
.adm-row__state { display: grid; justify-items: start; gap: 5px; }
.adm-pay { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.adm-pay--unpaid { background: #F3F5F8; color: var(--ink-3); }
.adm-pay--paid { background: var(--mint-100); color: var(--mint); }
.adm-chips--status .adm-chip--unpaid[aria-pressed="true"] { background: var(--ink-3); }
.adm-chips--status .adm-chip--paid[aria-pressed="true"] { background: var(--mint); }
.adm-payform { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-top: 12px; }
.adm-payform .btn { height: 48px; }
.adm-acts--pay { margin: 12px 0 0; }
.adm-paid-at { margin-top: 10px; font-size: 13px; }
.adm-row__src small { color: var(--lav); }
.adm-empty { padding: 48px 20px; text-align: center; font-size: 15px; color: var(--ink-3); }

.adm-type { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.adm-type--quiz { background: var(--blue-50); color: var(--blue-hover); }
.adm-type--signup { background: var(--lav-100); color: var(--lav); }
.adm-type--login { background: var(--peach-100); color: var(--peach); }
.adm-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.adm-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-status--new { background: var(--blue-50); color: var(--blue); }
.adm-status--contacted { background: #FFF6E5; color: #A15C00; }
.adm-status--booked { background: var(--mint-100); color: var(--mint); }
.adm-status--done { background: #EEF2F7; color: var(--ink-3); }
.adm-status--cancelled { background: #FDECEA; color: #C2321F; }

/* ---------- карточка заявки ---------- */
.adm-drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: -30px 0 80px -30px rgb(10 30 70 / .35); color: var(--ink); }
.adm-drawer::backdrop { background: rgb(15 26 42 / .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.adm-drawer[open] { animation: drawer-in .35s var(--ease-out); }
.adm-drawer.is-closing { animation: drawer-out .22s ease forwards; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes drawer-out { to { transform: translateX(40px); opacity: 0; } }
.adm-drawer__in { height: 100%; overflow-y: auto; padding: 24px 28px 40px; }
.adm-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.adm-drawer__head h2 { margin: 8px 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; word-break: break-word; }
.adm-drawer__head p { font-size: 14px; }

.adm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.adm-act { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 13px; background: var(--blue-50); font: inherit; font-size: 14px; font-weight: 600; color: var(--blue-hover); transition: background-color .2s ease, transform .15s var(--ease-out); }
.adm-act:hover { background: var(--blue-100); }
.adm-act:active { transform: scale(.97); }
.adm-act .icon { width: 18px; height: 18px; }
.adm-act--wa { background: #E3F7EC; color: #11804A; }
.adm-act--wa:hover { background: #CDEFDC; }
.adm-act--tg { background: #E4F3FC; color: #1A7DBF; }
.adm-act--tg:hover { background: #D0EAF9; }

.adm-sec { padding: 20px 0; box-shadow: inset 0 -1px 0 #EEF2F7; }
.adm-sec h3 { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.adm-chips--status { background: none; padding: 0; gap: 6px; }
.adm-chips--status button { box-shadow: inset 0 0 0 1px var(--line); }
.adm-chips--status button[aria-pressed="true"] { box-shadow: none; color: #fff; background: var(--ink); }
.adm-chips--status .adm-chip--new[aria-pressed="true"] { background: var(--blue); }
.adm-chips--status .adm-chip--contacted[aria-pressed="true"] { background: #D98200; }
.adm-chips--status .adm-chip--booked[aria-pressed="true"] { background: var(--mint); }
.adm-chips--status .adm-chip--done[aria-pressed="true"] { background: var(--ink-3); }
.adm-chips--status .adm-chip--cancelled[aria-pressed="true"] { background: #C2321F; }

.adm-kv { display: grid; gap: 0; border-radius: 16px; background: var(--surface-2); overflow: hidden; }
.adm-kv__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 14px; font-size: 14px; }
.adm-kv__row + .adm-kv__row { box-shadow: inset 0 1px 0 #fff; }
.adm-kv dt { color: var(--ink-3); }
.adm-kv dd { min-width: 0; word-break: break-word; }
.adm-kv code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: #fff; color: var(--ink-2); }
.adm-kv a { color: var(--blue); }
.adm-query { color: var(--lav); }
.adm-warn { color: var(--peach); }
.adm-flag { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #FDECEA; color: #C2321F; font-weight: 600; }

.adm-notes { display: grid; gap: 8px; margin-bottom: 12px; }
.adm-notes li { padding: 10px 14px; border-radius: 14px; background: #FFF8EE; }
.adm-notes p { font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.adm-notes small { font-size: 12px; color: var(--ink-3); }
.adm-note { display: grid; gap: 8px; justify-items: end; }
.adm-note textarea { height: auto; min-height: 64px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.adm-del { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: none; font-size: 14px; font-weight: 500; color: #C2321F; }
.adm-del:hover { background: #FDECEA; }
.adm-del .icon { width: 18px; height: 18px; }

/* ---------- врачи ---------- */
.adm-docs { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-card { padding: 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px #EAF0F7, 0 10px 30px -22px rgb(16 40 90 / .25); }
.adm-card__title { margin-bottom: 4px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.adm-newdoc { display: grid; gap: 14px; }
.adm-newdoc .btn .icon { width: 18px; height: 18px; }
.adm-doclist { display: grid; gap: 10px; }
.adm-doc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.adm-doc.is-off { opacity: .6; }
.adm-doc--empty { justify-content: center; padding: 40px 18px; color: var(--ink-3); font-size: 15px; }
.adm-doc__info { display: grid; min-width: 0; gap: 2px; }
.adm-doc__info b { font-size: 16px; font-weight: 600; }
.adm-doc__info small { font-size: 13px; color: var(--ink-3); }
.adm-doc__acts { margin-left: auto; display: flex; gap: 2px; }

/* ---------- уведомление ---------- */
.adm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 20px 40px -16px rgb(10 30 70 / .5); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s ease, transform .35s var(--ease-out); }
.adm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.btn.is-loading { position: relative; pointer-events: none; color: transparent; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgb(255 255 255 / .4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1180px) {
  .adm-row { grid-template-columns: 100px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 110px; }
  .adm-row > :nth-child(4) { display: none; }
  .adm-docs { grid-template-columns: minmax(0, 1fr); }
  .adm-fin__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-fin { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm__side { position: sticky; top: 0; z-index: 5; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 16px; box-shadow: inset 0 -1px 0 var(--line); }
  .adm__side .logo--sm { margin: 0 8px 0 0; }
  .adm__nav { display: flex; gap: 2px; }
  .adm__nav button { height: 40px; padding: 0 10px; font-size: 14px; }
  .adm__nav .icon { display: none; }
  .adm__me { margin: 0 0 0 auto; padding: 0; background: none; }
  .adm__me p, .adm__me .adm__avatar { display: none; }
  .adm__main { padding: 22px 16px 40px; }
  .adm__head { align-items: flex-start; }
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-stat { padding: 14px 16px; }
  .adm-stat b { font-size: 26px; }
  .adm-chips { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .adm-select { flex: 1 1 140px; }
  .adm-table { background: none; box-shadow: none; overflow: visible; }
  .adm-row--head { display: none; }
  [data-rows] { display: grid; gap: 10px; }
  .adm-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #EAF0F7; }
  .adm-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .adm-row > :nth-child(6) { grid-column: 2; grid-row: 1; justify-self: end; }
  .adm-row > :nth-child(2) { grid-column: 1 / -1; }
  .adm-row > :nth-child(3) { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
  .adm-row > :nth-child(3) small { margin: 0; }
  .adm-row > :nth-child(4) { display: flex; grid-column: 1 / -1; }
  .adm-row > :nth-child(5) { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
  .adm-row > :nth-child(5) b { flex: none; max-width: 50%; }
  .adm-row__slot:has(.adm-muted) { display: none !important; }
  .adm-row__state { justify-items: end; }
  .adm-payform { grid-template-columns: minmax(0, 1fr); }
  .adm__nav { overflow-x: auto; scrollbar-width: none; }
  .adm__nav b { min-width: 20px; height: 20px; font-size: 11.5px; }
  .adm__head { flex-wrap: wrap; }
  .adm-fin__head { flex-wrap: wrap; }
  .adm-fin__bal { margin-left: 0; width: 100%; justify-items: start; }
  .adm-fin__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-pending__list { grid-template-columns: minmax(0, 1fr); }
  .adm-preg .adm-kv__row { grid-template-columns: minmax(0, 1fr); }
  .adm-appt__timer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-appt__label { grid-column: 1 / -1; }
  .adm-appt__btns { grid-template-columns: minmax(0, 1fr); }
  .adm-kv__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .adm-drawer__in { padding: 18px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .adm__view.is-on, .adm-drawer[open], .adm-drawer.is-closing, .adm-appt__live i { animation: none; }
}
