/* Модуль «Медицинские поверенные». Цвета и шрифты — как на сайте. */
.mp { --mp-red:#EC231A; --mp-red-h:#F24C45; --mp-ink:#292B47; --mp-grey:#6F727B; --mp-line:#D4D8E8; --mp-bg:#F6F7FB; color:var(--mp-ink); }
.mp-page { background:#F6F7FB; padding-bottom:40px; }
.mp .mp-title { margin:10px 0 24px; }
.mp a { color:var(--mp-red); }
.mp .block-white { margin-bottom:24px; }
.mp-lead { color:var(--mp-grey); margin-bottom:20px; }
.mp-muted { color:var(--mp-grey); }
.mp-hint { color:var(--mp-grey); font-size:13px; margin-top:6px; }
.mp-sub { color:var(--mp-grey); font-size:13px; line-height:1.35; word-break:break-word; }
.mp code, .mp .mp-hash { font-size:12px; word-break:break-all; background:var(--mp-bg); padding:1px 4px; border-radius:3px; color:var(--mp-ink); }

/* Формы */
.mp-form .mp-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 24px; }
@media (max-width: 767px) { .mp-form .mp-grid { grid-template-columns:1fr; } }
.mp-field { margin-bottom:18px; }
.mp-field label { display:block; font-size:14px; color:var(--mp-grey); margin-bottom:6px; }
.mp-field input, .mp-filters input, .mp-filters select, .mp-assign-bar select, .mp-assign-bar input, .mp-inline input {
  width:100%; height:44px; padding:0 12px; border:1px solid var(--mp-line); border-radius:4px; background:#fff; color:var(--mp-ink); font-size:15px;
}
.mp-field input:focus, .mp-inline input:focus { outline:none; border-color:var(--mp-ink); }
.mp-field--error input { border-color:var(--mp-red); }
.mp-error { color:var(--mp-red); font-size:13px; margin-top:5px; }
.mp-check { margin:12px 0; }
.mp-check label { display:flex; gap:10px; align-items:flex-start; cursor:pointer; font-size:14px; line-height:1.4; }
.mp-check input { margin-top:3px; flex:0 0 auto; width:16px; height:16px; }
.mp-actions { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin-top:20px; }
.mp-inline { display:flex; gap:10px; }
.mp-inline input { flex:1 1 auto; min-width:0; }
.mp-inline .button { flex:0 0 auto; white-space:nowrap; }
.mp .button { cursor:pointer; }
.mp .button[disabled] { opacity:.4; cursor:default; }
.mp-btn-sm { padding:6px 12px !important; font-size:13px !important; min-width:0 !important; height:auto !important; line-height:1.3 !important; }
.mp-inline-form { display:inline-block; margin:0 6px 6px 0; }
.mp-link-sm { font-size:13px; white-space:nowrap; }

/* Бейджи */
.mp-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-size:12px; font-weight:500; white-space:nowrap; }
.mp-badge--ok { background:#E5F5EC; color:#1E7A46; }
.mp-badge--wait { background:#FFF4DE; color:#8A5A00; }
.mp-badge--bad { background:#FDE7E6; color:#B3150E; }

/* Шапка кабинета */
.mp-hero { display:flex; flex-wrap:wrap; gap:24px; justify-content:space-between; align-items:flex-end; }
.mp-hero__name { font-size:20px; font-weight:600; margin-bottom:14px; }
.mp-hero__label { color:var(--mp-grey); font-size:13px; }
.mp-hero__number { font-size:34px; font-weight:700; letter-spacing:.5px; line-height:1.2; margin:2px 0 10px; font-family:Montserrat, sans-serif; }
.mp-hero__stats { display:flex; flex-wrap:wrap; gap:28px; }
.mp-hero__stats span { display:block; color:var(--mp-grey); font-size:13px; }
.mp-hero__stats b { font-size:22px; font-weight:600; }

.mp-two { display:grid; grid-template-columns:1fr 1fr; gap:0 24px; }
@media (max-width: 991px) { .mp-two { grid-template-columns:1fr; } }
.mp-dl { display:grid; grid-template-columns:minmax(140px, 40%) 1fr; gap:8px 16px; margin:0 0 12px; }
.mp-dl dt { color:var(--mp-grey); font-weight:400; font-size:14px; }
.mp-dl dd { margin:0; word-break:break-word; }
.mp-details summary { cursor:pointer; color:var(--mp-red); margin:8px 0 14px; }

/* Таблицы */
.mp-table-wrap { overflow-x:auto; }
.mp-table { width:100%; border-collapse:collapse; font-size:14px; }
.mp-table th { text-align:left; font-weight:500; color:var(--mp-grey); font-size:13px; padding:8px 10px; border-bottom:1px solid var(--mp-line); white-space:nowrap; }
.mp-table td { padding:12px 10px; border-bottom:1px solid #EEF0F6; vertical-align:top; }
.mp-table .mp-num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.mp-table tfoot th { color:var(--mp-ink); font-size:15px; border-bottom:0; border-top:1px solid var(--mp-line); }
@media (max-width: 767px) {
  .mp-table:not(.mp-table--plain) thead { display:none; }
  .mp-table:not(.mp-table--plain) tr { display:block; border-bottom:1px solid var(--mp-line); padding:8px 0; }
  .mp-table:not(.mp-table--plain) td { display:block; position:relative; border:0; padding:4px 0 4px 118px; min-height:26px; }
  .mp-table:not(.mp-table--plain) td:not([data-label]) { padding-left:0; }
  .mp-table:not(.mp-table--plain) td[data-label]::before { content:attr(data-label); position:absolute; left:0; top:5px; width:108px; color:var(--mp-grey); font-size:13px; }
  .mp-table:not(.mp-table--plain) .mp-num { text-align:left; }
}

/* Карточка поверенного (ЛК пациента) */
.mp-card { border:1px solid var(--mp-line); border-radius:6px; padding:16px 18px; margin:14px 0; background:#fff; }
.mp-card__name { font-size:18px; font-weight:600; margin-bottom:10px; }
.mp-card__row { display:flex; justify-content:space-between; gap:16px; padding:6px 0; border-top:1px solid #EEF0F6; font-size:14px; }
.mp-card__row span { color:var(--mp-grey); }
.mp-patient__num { margin-bottom:12px; }
.mp-patient .mp-lead { margin-bottom:14px; }

/* Админка */
.mp-tabs { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:20px; }
.mp-tab { padding:8px 16px; border-radius:20px; background:#fff; color:var(--mp-ink) !important; text-decoration:none !important; box-shadow:-2px 3px 6px rgba(0,0,0,.05); }
.mp-tab.is-active { background:var(--mp-ink); color:#fff !important; }
.mp-tabs__note { margin-left:auto; font-size:13px; color:var(--mp-grey); }
.mp-filters { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; }
.mp-filters label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--mp-grey); min-width:220px; }
.mp-assign-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:6px; }
.mp-assign-bar select { width:auto; min-width:260px; }
.mp-assign-bar input { width:auto; flex:1 1 200px; }
.mp-actions-cell { white-space:nowrap; }

/* Документы и чек */
.mp-doc { line-height:1.6; }
.mp-doc h2 { font-size:20px; margin:24px 0 10px; }
.mp-doc h3 { font-size:17px; margin:18px 0 8px; }
.mp-doc .mp-draft { background:#FFF4DE; border-left:4px solid #E0A100; padding:12px 16px; margin-bottom:20px; }
.mp-doc mark { background:#FFF0B3; }
/* Публичная оферта (/oferta) */
.mp-offer { max-width:860px; }
.mp-offer__head { text-align:center; margin-bottom:24px; }
.mp-offer__kind { font-size:22px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.mp-offer__sub { font-size:17px; margin-top:4px; }
.mp-offer__meta { color:#6F727B; margin-top:8px; font-size:14px; }
.mp-offer, .mp-offer p, .mp-offer li, .mp-offer td { font-weight:400; }
.mp-offer b, .mp-offer th { font-weight:700; }
.mp-offer h2 { font-weight:700; }
.mp-offer p { margin:0 0 10px; }
.mp-offer ul { margin:0 0 12px; padding-left:22px; }
.mp-offer li { margin-bottom:4px; }
.mp-offer__req { background:#F5F6FA; border-radius:8px; padding:14px 18px; margin-bottom:12px; }
.mp-offer__table { width:100%; border-collapse:collapse; margin-top:8px; }
.mp-offer__table th, .mp-offer__table td { border:1px solid #D4D8E8; padding:8px 10px; text-align:left; vertical-align:top; }
.mp-offer__table th { background:#F5F6FA; }
.mp-offer__table td:first-child { width:40px; text-align:center; }
.mp-offer__actions { margin-top:16px; }
.mp-offer__sides { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:767px) { .mp-offer__sides { grid-template-columns:1fr; } }
.mpl-doc { margin:12px 0; }
.mpl-doc a { font-weight:600; }
.mpl-doc__files { font-size:14px; color:#6F727B; }
.mpl-doc__files a { font-weight:500; }
.mp-offer__actions { display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width:575px) { .mp-offer__table th, .mp-offer__table td { padding:6px; font-size:14px; } }
.mp-receipt { max-width:640px; }
.mp-receipt__head { display:flex; justify-content:space-between; font-weight:600; font-size:17px; margin-bottom:4px; }
.mp-receipt .mp-table { margin:16px 0; }

@media print {
  header, footer, .header, .footer, .bread-crumbs, .mp-noprint, .modal, .mp-tabs { display:none !important; }
  .mp-page { background:#fff; }
  .mp .block-white { box-shadow:none; padding:0; }
}

/* ---------- Внутри админки WebBasic (/admin) ---------- */
.mp--admin { --mp-red:#dc3545; --mp-ink:#343a40; --mp-grey:#868e96; --mp-line:#dee2e6; --mp-bg:#f8f9fa; font-family:inherit; font-size:14px; color:#343a40; }
.mp--admin a { color:#1b84e7; }
.mp--admin .block-white { background:#fff; border:1px solid #dee2e6; border-radius:3px; box-shadow:none; padding:20px; margin-bottom:20px; }
.mp--admin .lk__subtitle { font-size:15px; font-weight:600; color:#343a40; margin-bottom:14px; }
.mp--admin .mp-lead, .mp--admin .mp-hint, .mp--admin .mp-sub, .mp--admin .mp-muted { color:#868e96; }
.mp--admin .button { display:inline-block; font-family:inherit; font-size:13px; font-weight:500; line-height:1.5; padding:6px 14px; border-radius:3px; border:1px solid transparent; background:#fff; text-decoration:none; min-width:0; height:auto; }
.mp--admin .button--red { background:#1b84e7; border-color:#1b84e7; color:#fff !important; }
.mp--admin .button--red:hover { background:#1570c4; border-color:#1570c4; }
.mp--admin .button--outline { background:#fff; border-color:#adb5bd; color:#495057 !important; }
.mp--admin .button--outline:hover { background:#f1f3f5; }
.mp--admin .mp-btn-sm { padding:3px 10px !important; font-size:12px !important; }
.mp--admin .mp-tab { border-radius:3px; box-shadow:none; border:1px solid #dee2e6; padding:6px 14px; font-size:13px; }
.mp--admin .mp-tab.is-active { background:#1b84e7; border-color:#1b84e7; color:#fff !important; }
.mp--admin .mp-table th { font-size:12px; text-transform:uppercase; letter-spacing:.3px; color:#868e96; }
.mp--admin .mp-table td { font-size:13px; }
.mp--admin .mp-field label, .mp--admin .mp-filters label { font-size:12px; color:#868e96; }
.mp--admin .mp-field input, .mp--admin .mp-filters input, .mp--admin .mp-filters select, .mp--admin .mp-assign-bar select, .mp--admin .mp-assign-bar input, .mp--admin .mp-inline input { height:36px; font-size:13px; border-radius:3px; border-color:#ced4da; }
.mp--admin .mp-hero__name { font-size:16px; }
.mp--admin .mp-hero__number { font-family:inherit; font-size:26px; }
.mp--admin .mp-hero__stats b { font-size:18px; }
.mp--admin .mp-card__name { font-size:15px; }
.mp--admin .mp-receipt__head { font-size:15px; }
.mp--admin .mp-two { gap:0 20px; }
.mp--admin .mp-actions-cell { white-space:normal; min-width:130px; }
.mp--admin .mp-actions-cell .mp-link-sm { display:inline-block; margin-top:4px; }

/* ---------- Лендинг для экспертов (/ekspertam) ---------- */
.mpl { background:#fff; }
.mpl-hero { background:linear-gradient(135deg, #292B47 0%, #3a3d63 100%); color:#fff; padding:72px 0 64px; }
.mpl-kicker { text-transform:uppercase; letter-spacing:1.5px; font-size:13px; color:#F4B9B4; margin-bottom:14px; font-weight:600; }
.mpl-h1 { font-family:Montserrat, sans-serif; font-size:40px; line-height:1.15; font-weight:700; margin:0 0 18px; max-width:760px; color:#fff; }
.mpl-lead { font-size:18px; line-height:1.5; max-width:640px; color:rgba(255,255,255,.85); margin-bottom:28px; }
.mpl .mpl-cta { padding:14px 32px; font-size:16px; }
.mpl-body { padding:24px 15px 60px; max-width:960px; }
.mpl-sec { padding:40px 0; border-bottom:1px solid #EEF0F6; }
.mpl-sec:last-child { border-bottom:0; }
.mpl-sec h2 { font-family:Montserrat, sans-serif; font-size:28px; font-weight:700; color:#292B47; margin:0 0 18px; }
.mpl-sec p { font-size:16px; line-height:1.65; color:#4a4d68; max-width:760px; }
.mpl-big { font-size:20px !important; font-weight:600; color:#292B47 !important; }
.mpl-note { background:#F6F7FB; border-radius:8px; padding:32px; border-bottom:0; margin:16px 0; }
.mpl-cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin-bottom:22px; }
.mpl-card { border:1px solid #D4D8E8; border-radius:8px; padding:20px; }
.mpl-card__t { font-weight:700; color:#292B47; margin-bottom:8px; font-size:16px; }
.mpl-card p { margin:0; font-size:15px; }
.mpl-rates { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:22px; }
.mpl-rate { border:1px solid #D4D8E8; border-radius:8px; padding:24px; }
.mpl-rate--main { border-color:#EC231A; box-shadow:0 0 0 1px #EC231A inset; }
.mpl-rate__n { font-family:Montserrat, sans-serif; font-size:48px; font-weight:700; color:#EC231A; line-height:1; margin-bottom:10px; }
.mpl-rate p { margin:0; font-size:15px; }
.mpl-steps { counter-reset:s; list-style:none; padding:0; display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-bottom:22px; }
.mpl-steps li { counter-increment:s; position:relative; padding-top:46px; font-size:15px; color:#4a4d68; }
.mpl-steps li::before { content:counter(s); position:absolute; top:0; left:0; width:34px; height:34px; border-radius:50%; background:#292B47; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.mpl-steps b { color:#292B47; }
.mpl-apply { display:grid; grid-template-columns:1fr 1.1fr; gap:32px; align-items:start; }
.mpl-apply__form { margin:0 !important; }
.mpl-form select { width:100%; height:44px; padding:0 12px; border:1px solid #D4D8E8; border-radius:4px; background:#fff; font-size:15px; }
.mpl .mpl-submit { width:100%; margin-top:8px; padding:14px; font-size:16px; }
.mpl-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.mpl-done { text-align:center; padding:24px 8px; }
.mpl-done__icon { width:56px; height:56px; border-radius:50%; background:#E5F5EC; color:#1E7A46; font-size:28px; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.mpl-done__title { font-size:22px; font-weight:700; color:#292B47; margin-bottom:6px; }
.mpl-done p { font-size:17px; margin:0 auto; }
@media (max-width: 767px) {
  .mpl-hero { padding:44px 0 40px; }
  .mpl-h1 { font-size:28px; }
  .mpl-lead { font-size:16px; }
  .mpl-sec h2 { font-size:22px; }
  .mpl-cards, .mpl-rates, .mpl-apply { grid-template-columns:1fr; }
  .mpl-steps { grid-template-columns:1fr 1fr; }
  .mpl-note { padding:22px; }
}

/* Заявки в админке */
.mp-apps-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.mp-apps-head a.is-on { font-weight:700; color:#343a40; }
.mp-app { border-top:1px solid #dee2e6; padding:14px 0; display:flex; flex-wrap:wrap; gap:8px 16px; }
.mp-app__main { flex:1 1 380px; }
.mp-app__num { font-weight:600; margin-bottom:4px; }
.mp-app__actions { flex:0 0 auto; }
.mp-app__invite { flex:1 1 100%; margin:0; }
.mpl .button { display:inline-flex; align-items:center; justify-content:center; height:auto; min-height:48px; line-height:1.2; }

/* Смена учётной записи */
.mp-accounts { max-width:720px; }
.mp-acc { display:flex; align-items:center; gap:14px; padding:14px 0; border-top:1px solid #EEF0F6; flex-wrap:wrap; }
.mp-acc.is-current .mp-acc__ava { background:#EC231A; }
.mp-acc__ava { width:42px; height:42px; border-radius:50%; background:#292B47; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex:0 0 auto; }
.mp-acc__info { flex:1 1 220px; min-width:0; }
.mp-acc__name { font-weight:600; }
.mp-acc__btns { flex:0 0 auto; }
.mp-acc-add { border-top:1px solid #EEF0F6; padding-top:18px; margin-top:4px; }

/* Глазок в поле пароля */
.pwd-eye { position:absolute; right:6px; top:50%; transform:translateY(-50%); z-index:5; width:36px; height:36px; display:flex; align-items:center; justify-content:center; padding:0; margin:0; border:0; background:transparent; color:#8A8F9C; cursor:pointer; border-radius:6px; }
.pwd-eye:hover, .pwd-eye:focus-visible { color:#E5231B; outline:none; background:rgba(0,0,0,.04); }
input::-ms-reveal, input::-ms-clear { display:none; }
