/* ==========================================================================
   LandGEOMarketplace — глобальный CSS
   --------------------------------------------------------------------------
   Сегментированная версия app.css. Порядок каскада сохранён: поздние блоки
   overrides/fixes оставлены ниже тех правил, которые они переопределяют.

   Карта сегментов:
   01. Дизайн-токены, базовый reset, глобальные helpers
   02. Общие UI-примитивы: кнопки, бренд, маленькие labels
      
   04. Общая система модальных окон, auth-форм и уведомлений
   05. Клиентская зона: app shell, dashboard, список отчетов
   06. Страница заказа отчета: базовая order-форма и options
   
   07a. Связующие manager/order helper-правила
   08. Админка
   09. Общий адаптив для клиентки, заказа и админки
   10. Manager workspace
   11. Report builder workspace
   12. Адаптив manager/builder
   
   14. Registration form: select refinements
   
   16. Shop cart/source refinements
   
   20. Shop materials/source responsive refinements
   21. Registration consent и legal-модалки
   22. Manager organization card и invoice form



   03. Старый лендинг — удалено
   07. Client report order: первая версия правил — удалено
   13. Client report order: поздний screen-specific override — удалено
   15. Shop-style order page — удалено
   17. Текущий GeoAtlas landing (.geo-*) — удалено
   18. GeoAtlas landing: layout overrides под reference breakpoints — удалено
   19. GeoAtlas contacts/legal placement fix — удалено

   ========================================================================== */

/* ==========================================================================
   01. Дизайн-токены, базовый reset, глобальные helpers
   --------------------------------------------------------------------------
   CSS-переменные проекта, базовые правила для html/body/ссылок/форм и helper
   .is-hidden. Эти правила влияют на все страницы, где подключен файл.
   ========================================================================== */

@import url(styles/landing.css);
@import url(styles/order.css);
@import url(styles/order-old-v1.css);

:root {
    --blue: #2d6e92;
    --blue-dark: #174d6a;
    --blue-soft: #eaf5fb;
    --ink: #17232b;
    --muted: #687780;
    --line: #d9e3e8;
    --surface: #ffffff;
    --background: #f6f8f9;
    --green: #258844;
    --green-soft: #e6f7ea;
    --red: #bc2d2d;
    --red-soft: #fdecec;
    --orange: #c76a12;
    --orange-soft: #fff3e7;
    --shadow: 0 18px 50px rgba(20, 57, 76, .12);
    color: var(--ink);
    background: var(--background);
}

/* RESET */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--background); }
button, a { -webkit-tap-highlight-color: transparent; cursor: pointer}
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
input, button, textarea, select { font: inherit; border: none; outline: none; background: none; }


body {
    font-family: "Inter", sans-serif;
}


/*  ==========================================================================
    Типография
    ======================================================================= */

    :root { font-family: Inter, "Segoe UI", Arial, sans-serif; }



/* ==========================================================================
   02. Общие UI-примитивы
   --------------------------------------------------------------------------
   Базовые кнопки, варианты кнопок, текстовые кнопки, eyebrow-label и брендовые
   элементы. Используются на лендинге, в клиентке, заказах, менеджерке и модалках.
   ========================================================================== */

.button {
    display:block;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { 
    transform: translateY(-1px); 
}
.button-primary { 
    color: white; 
    background: var(--blue); 
    box-shadow: 0 8px 18px rgba(45, 110, 146, .16); 
}
.button-primary:hover { 
    background: #255f80; 
    box-shadow: 0 10px 24px rgba(45, 110, 146, .24); 
}
.button-outline { 
    color: var(--blue); 
    border-color: rgba(45, 110, 146, .35); 
    background: transparent; 
}
.button-soft { 
    color: var(--blue); 
    border-color: var(--line); 
    background: white; 
}
.button-full { width: 100%; }
.button-large {
    font-size: 17px; 
}
.text-button { 
    display: block; 
    margin: 18px auto 0; 
    border: 0; 
    color: var(--blue); 
    background: transparent; 
    cursor: pointer; 
}
.eyebrow { 
    color: var(--blue); 
    font-size: 12px; 
    font-weight: 800; 
    letter-spacing: .14em; 
    text-transform: uppercase; 
}

.brand { 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--blue-dark); 
    font-size: 20px; 
    font-weight: 800; 
}
.brand-mark { 
    width: 40px; 
    height: 40px; 
    display: grid; 
    place-items: center; 
    border-radius: 12px; 
    color: white; 
    background: var(--blue); 
}
.brand.compact { font-size: 17px; }
.brand.compact .brand-mark { 
    width: 36px; 
    height: 36px; 
    border-radius: 10px; 
}



/* ==========================================================================
   04. Общая система модальных окон, auth-форм и уведомлений
   --------------------------------------------------------------------------
   Backdrop, auth modal, modal header/body, line-field поля, auth form и notice
   состояния. Используется на лендинге и во внутренних интерфейсах.
   ========================================================================== */

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(13, 36, 48, .62); backdrop-filter: blur(5px); }
.modal-backdrop.is-open { display: flex; }
.auth-modal { width: min(680px, 100%); overflow: hidden; border-radius: 7px; background: white; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.modal-header { min-height: 92px; position: relative; display: flex; align-items: center; padding: 0 120px; color: white; background: var(--blue); }
.modal-header h2 { margin: 0; font-size: 25px; }
.modal-close { position: absolute; right: 24px; top: 18px; border: 0; color: white; background: transparent; font-size: 38px; font-weight: 200; line-height: 1; cursor: pointer; }
.modal-close.dark { color: var(--ink); }
.modal-body { min-height: 468px; padding: 70px 120px 78px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.line-field { position: relative; display: flex; flex-direction: column; gap: 7px; color: var(--blue); }
.line-field input { width: 100%; height: 38px; outline: none; border: 0; border-bottom: 2px solid #d6e3e9; color: var(--ink); background: transparent; }
.line-field input:focus { border-color: var(--blue); }
.auth-form .button-primary { margin-top: 40px; }
.notice { padding: 13px 16px; border-radius: 9px; font-size: 14px; line-height: 1.45; }
.notice-success { color: #276f39; border: 1px solid #bfe9c9; background: var(--green-soft); }
.notice-error { color: #913131; border: 1px solid #efcaca; background: var(--red-soft); }
.notice-info { color: #285f7d; border: 1px solid #c7e1ef; background: var(--blue-soft); }
.modal-body > .notice { margin-bottom: 22px; }

/* ==========================================================================
   05. Клиентская зона: app shell, dashboard, список отчетов
   --------------------------------------------------------------------------
   Header клиентской части, аккаунт, баланс, cart badge, dashboard empty state,
   фильтры, строки отчетов, бейджи статусов и вспомогательные элементы.
   ========================================================================== */

.app-page { background: #f7f8f8; }
.app-header { height: 80px; position: relative; z-index: 10; background: white; box-shadow: 0 6px 20px rgba(24, 53, 67, .06); }
.header-inner { max-width: 1200px; height: 100%; display: flex; align-items: center; margin: auto; padding: 0 20px; }
.header-order { margin-left: 42px; }
.account { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.balance { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border: 0; border-radius: 10px; color: var(--ink); background: #f4f7f8; cursor: pointer; }
.balance span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.balance b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--blue); }
.header-cart {
    position: relative;
    min-width: 48px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 10px;
    background: #f4f7f8;
}
.header-cart-icon {
    color: var(--blue);
    font-size: 21px;
    line-height: 1;
}
.header-cart b {
    min-width: 24px;
    height: 20px;
    display: grid;
    place-items: center;
    margin-left: -5px;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: #88434a;
    font-size: 11px;
    font-weight: 700;
}
.header-cart[href$="#cart"] {
    scroll-margin-top: 90px;
}
.avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; }
.account-copy { display: flex; flex-direction: column; gap: 2px; }
.account-copy strong { font-size: 14px; }.account-copy span { color: var(--muted); font-size: 12px; }
.logout-link { color: var(--blue); font-size: 20px; }
.dashboard-shell { max-width: 1200px; margin: auto; padding: 48px 20px 100px; }
.page-notice { margin-bottom: 24px; }
.empty-state { min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state h1 { margin: 24px 0 10px; font-size: 23px; }
.empty-state p { max-width: 480px; margin: 0 0 30px; color: var(--muted); line-height: 1.5; }
.empty-icon { width: 90px; height: 72px; position: relative; display: grid; place-items: center; border-radius: 18px; background: #eaf3f7; }
.empty-icon span { position: absolute; width: 44px; height: 5px; border-radius: 4px; background: #8ab5ca; }
.empty-icon span:first-child { transform: translateY(-15px); }.empty-icon span:last-child { transform: translateY(15px); width: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.section-heading h1 { margin: 7px 0 0; color: #17394a; font-size: 34px; }
.filter-row { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.filter-row button { border: 0; background: transparent; cursor: pointer; }
.filter-row i { height: 18px; border-left: 1px solid #9da9ae; }
.filter-icon { transform: rotate(180deg); font-size: 22px; }
.report-list { display: flex; flex-direction: column; gap: 14px; }
.report-row { min-height: 88px; display: grid; grid-template-columns: 60px 120px minmax(220px, 1fr) 120px 150px 150px; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid #edf1f2; border-radius: 11px; background: white; box-shadow: 0 8px 24px rgba(23, 54, 69, .06); }
.report-row > div { display: flex; flex-direction: column; gap: 5px; }
.report-row small { color: var(--muted); font-size: 11px; }
.report-title span { color: var(--muted); font-size: 12px; }
.report-number { width: 46px; height: 46px; display: grid !important; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.status { width: max-content; display: inline-flex; align-items: center; justify-content: center; padding: 7px 14px; border: 1px solid; border-radius: 999px; font-size: 13px; }
.status-blue { color: var(--blue); background: #f3f9fc; }.status-orange { color: var(--orange); background: var(--orange-soft); }.status-red { color: var(--red); background: var(--red-soft); }.status-green { color: var(--green); background: var(--green-soft); }
.report-action .button { width: 100%; min-height: 46px; }
.muted { color: var(--muted); font-size: 13px; }
.small-modal { width: min(460px, 100%); position: relative; padding: 42px; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.small-modal h2 { margin: 8px 0 12px; }.small-modal p { color: var(--muted); line-height: 1.5; }
.small-modal form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.boxed-field { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; }
.boxed-field input { height: 48px; padding: 0 14px; outline: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; }
.boxed-field input:focus { border-color: var(--blue); }

/* ==========================================================================
   06. Страница заказа отчета: базовая order-форма и options
   --------------------------------------------------------------------------
   Классический layout заказа, карточки анализа, switches, цены опций, sticky
   summary и мобильная кнопка отправки заказа.
   ========================================================================== */

.order-shell { max-width: 1280px; margin: auto; padding: 38px 20px 100px; }
.back-link { display: inline-flex; margin-bottom: 24px; color: var(--blue); font-weight: 600; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 20px; }
.order-card { overflow: hidden; border-radius: 8px; background: white; box-shadow: 0 7px 22px rgba(31, 55, 68, .04); }
.order-title { padding: 18px 40px; color: white; background: var(--blue); }
.order-title span { opacity: .72; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.order-title h1 { margin: 5px 0 0; font-size: 21px; }
.order-content { padding: 38px 40px 40px; }
.order-license { width: min(430px, 100%); margin-bottom: 40px; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.analysis-card { min-height: 190px; position: relative; padding: 26px 30px; border: 1px solid #cce1ed; border-radius: 8px; background: linear-gradient(135deg, #e8f5fc, #f9fcfd); transition: background .25s, border .25s; }
.analysis-card.included { border-color: #bfe5c7; background: linear-gradient(135deg, #dcfae3, #fbfdfb); }
.analysis-card h2 { display: flex; gap: 14px; margin: 0 0 17px; font-size: 18px; font-weight: 500; }
.analysis-card ul { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; color: var(--muted); list-style: none; }
.analysis-card li { position: relative; padding-left: 16px; }
.analysis-card li::before { content: "–"; position: absolute; left: 0; }
.switch-row { display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; color: var(--blue); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch { width: 52px; height: 32px; position: relative; border: 2px solid #2081c4; border-radius: 20px; background: #e8f4fc; }
.switch::after { content: ""; position: absolute; top: 5px; left: 6px; width: 18px; height: 18px; border-radius: 50%; background: #2081c4; transition: .2s; }
.switch-row input:checked + .switch { border-color: #249445; background: #249445; }
.switch-row input:checked + .switch::after { left: 24px; background: white; }
.option-price { position: absolute; left: 30px; bottom: 20px; color: var(--green); font-weight: 500; }
.analysis-card:has(.option-price) { min-height: 255px; padding-bottom: 55px; }
.order-summary { position: sticky; top: 100px; display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 28px; border-radius: 8px; background: white; box-shadow: 0 5px 15px rgba(31,55,68,.08); }
.order-summary > span { font-size: 19px; }.order-summary > strong { font-size: 20px; }.order-summary small { grid-column: 1 / -1; color: var(--muted); }.order-summary .button { grid-column: 1 / -1; margin-top: 8px; }
.submit-order-mobile { display: none; margin: 34px auto 0; }

/* ==========================================================================
   07. Client report order: первая версия правил
   --------------------------------------------------------------------------
   Начальная версия интерфейса заказа клиентского отчета. Поздний сегмент 13
   намеренно переопределяет часть .client-report-* и .client-option-* правил.
   ========================================================================== */



/* ==========================================================================
   07a. Связующие manager/order helper-правила
   --------------------------------------------------------------------------
   Небольшие helper-правила для manager-facing order/report фрагментов до
   основного блока manager workspace.
   ========================================================================== */

.manager-grow small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.manager-order-reports { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.manager-order-report { padding: 18px; border: 1px solid #d8e5eb; border-radius: 10px; background: #f8fcfe; }
.manager-order-report > div:first-child { display: flex; justify-content: space-between; gap: 16px; color: var(--blue); }
.manager-order-report p { margin: 12px 0 0; }
.manager-order-report form { margin-top: 16px; }
.manager-order-report .button { width: 100%; }

/* ==========================================================================
   08. Админка
   --------------------------------------------------------------------------
   Admin login, admin shell, таблицы, row layouts, mini action buttons и формы
   администрирования отчетов.
   ========================================================================== */

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(145deg, #eaf4f8, #f9fbfc); }
.admin-login-card h1 { margin: 10px 0 24px; }
.admin-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; background: white; box-shadow: 0 5px 16px rgba(23,54,69,.07); }
.admin-header > div { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.admin-shell { max-width: 1280px; margin: auto; padding: 45px 20px 100px; }
.admin-shell section + section { margin-top: 65px; }
.admin-table { overflow: hidden; border: 1px solid #e7edef; border-radius: 12px; background: white; }
.admin-row { min-height: 74px; display: grid; grid-template-columns: 1.3fr 1fr 1.4fr .7fr 1.3fr; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid #edf1f2; }
.admin-row-head { min-height: 48px; border-top: 0; color: var(--muted); background: #f4f7f8; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-row > span { display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; }
.admin-row small { color: var(--muted); }
.admin-actions { flex-direction: row !important; }
.admin-actions form { margin: 0; }
.mini-button { min-height: 34px; padding: 0 13px; border: 1px solid #cbdce4; border-radius: 7px; color: var(--blue); background: white; cursor: pointer; }
.mini-button.success { color: var(--green); border-color: #bcdcc4; }.mini-button.danger { color: var(--red); border-color: #ecc7c7; }
.admin-empty { padding: 30px; color: var(--muted); text-align: center; }
.reports-admin .admin-row { grid-template-columns: 1.1fr 1.2fr .6fr 2fr; }
.report-admin-form { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; }
.report-admin-form select, .report-admin-form input { min-width: 0; height: 36px; border: 1px solid var(--line); border-radius: 6px; background: white; }

/* ==========================================================================
   09. Общий адаптив для клиентки, заказа и админки
   --------------------------------------------------------------------------
   Breakpoints для dashboard, order page, client-report первой версии
   и admin tables. GeoAtlas landing вынесен в отдельный styles/landing.css.
   ========================================================================== */

@media (max-width: 980px) {
    .report-row { grid-template-columns: 54px 100px 1fr 120px; }
    .report-row .status { grid-column: 3; }
    .report-action { grid-column: 4; grid-row: 1 / span 2; }
    .account-copy { display: none; }
    .order-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; grid-row: 1; }
    .order-summary .button { display: none; }
    .submit-order-mobile { display: flex; }
    .client-option-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
    .client-report-body { grid-template-columns: 1fr; padding-left: 30px; }
    .admin-table { overflow-x: auto; }
    .admin-row { min-width: 950px; }
}

@media (max-width: 680px) {
    .brand { font-size: 17px; }.brand-mark { width: 36px; height: 36px; }
    .modal-backdrop { padding: 0; }
    .auth-modal { height: 100%; border-radius: 0; }
    .modal-header { min-height: 80px; padding: 0 24px; }.modal-header h2 { max-width: 85%; font-size: 21px; }
    .modal-body { min-height: 0; padding: 48px 24px; }
    .app-header { height: auto; }
    .header-inner { min-height: 72px; flex-wrap: wrap; padding: 10px 14px; }
    .brand.compact > span:last-child { display: none; }
    .header-order { order: 3; width: 100%; margin: 10px 0 0; min-height: 40px; }
    .balance span { display: none; }.balance { padding: 6px; }
    .account { gap: 7px; }.avatar { width: 38px; height: 38px; }
    .dashboard-shell { padding: 34px 14px 70px; }
    .empty-state { min-height: 520px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .filter-row { overflow-x: auto; }
    .report-row { grid-template-columns: 46px 1fr auto; gap: 12px; padding: 16px; }
    .report-row > div:nth-child(2) { grid-column: 2; }
    .report-title { grid-column: 1 / -1; }
    .report-row > div:nth-child(4) { grid-column: 1 / 3; }
    .report-row .status { grid-column: 3; grid-row: 1; font-size: 11px; padding: 6px 9px; }
    .report-action { grid-column: 1 / -1; grid-row: auto; }
    .small-modal { border-radius: 0; padding: 32px 24px; }
    .order-shell { padding: 28px 12px 60px; }
    .order-title { padding: 18px 20px; }.order-title h1 { font-size: 18px; }
    .order-content { padding: 28px 16px; }
    .section-grid { grid-template-columns: 1fr; }
    .analysis-card { padding: 24px 20px; }.option-price { left: 20px; }
    .order-summary { padding: 22px; }
    .client-report-list { padding: 24px 14px; gap: 22px; }
    .client-report-head { padding: 0 16px; }
    .client-report-body { padding: 0 16px 20px; }
    .client-option-grid { grid-template-columns: 1fr; }
    .client-report-actions { flex-direction: column; padding: 0 14px 24px; }
    .admin-header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px; }
    .admin-header > div { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   10. Manager workspace
   --------------------------------------------------------------------------
   Manager dashboard, tabs, rows, filters, report/client/payment rows, manager
   modals, registration manager modal и связанные формы.
   ========================================================================== */

/* Manager workspace */
.manager-page { min-height: 100vh; color: #161616; background: #f8f8f8; }
.manager-header { height: 80px; background: #fff; box-shadow: 0 7px 22px rgba(20, 44, 56, .06); }
.manager-header-inner { width: min(1200px, calc(100% - 40px)); height: 100%; display: flex; align-items: center; justify-content: space-between; margin: auto; }
.manager-tabs { display: flex; gap: 8px; }
.manager-tabs a { min-width: 116px; height: 49px; position: relative; display: grid; place-items: center; border: 1px solid #dfe8ed; border-radius: 8px; color: var(--blue); background: #fff; font-size: 14px; }
.manager-tabs a.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.manager-tabs b { min-width: 30px; height: 24px; position: absolute; top: -9px; right: -12px; display: grid; place-items: center; padding: 0 6px; border-radius: 14px; color: #fff; background: #803737; font-size: 13px; font-weight: 400; }
.manager-account { display: flex; align-items: center; gap: 18px; }
.manager-account > span:nth-child(2) { font-size: 16px; }
.manager-account a { font-size: 25px; line-height: 1; }
.manager-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 700; }
.manager-main { width: min(1200px, calc(100% - 40px)); min-height: calc(100vh - 80px); margin: auto; padding: 48px 16px 100px; }
.manager-notice { margin-bottom: 24px; }
.manager-empty { min-height: 650px; display: grid; place-items: center; color: #888; font-size: 24px; }
.manager-filters { height: 44px; display: flex; align-items: center; gap: 16px; }
.manager-filters > span { transform: rotate(180deg); font-size: 24px; }
.manager-filters button { padding: 0; border: 0; background: none; cursor: pointer; }
.manager-filters i { height: 17px; border-left: 1px solid #111; }
.manager-list { display: flex; flex-direction: column; gap: 18px; }
.manager-row { min-height: 66px; display: grid; align-items: center; gap: 20px; padding: 8px 16px; border-radius: 10px; background: #fff; box-shadow: 0 8px 18px rgba(33, 47, 55, .08); font-size: 16px; }
.manager-report-row { grid-template-columns: 24px 110px minmax(210px, 1fr) 130px 120px 152px 22px; }
.manager-client-row { grid-template-columns: 24px 38px 1fr 110px 1.2fr 100px 105px auto 220px 22px; gap: 16px; }
.manager-payment-row { grid-template-columns: 24px 92px 110px minmax(250px, 1fr) 115px 120px 92px 150px 22px; }
.manager-payment-row form { margin: 0; }
.manager-payments { display: flex; flex-direction: column; gap: 14px; }
.payment-group-title { margin: 28px 0 0; color: #777; font-size: 18px; font-weight: 500; }
.manager-grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-check { width: 24px; height: 24px; border-radius: 8px; background: #d9d9d9; }
.manager-row .status { justify-self: end; }
.manager-view, .manager-register, .manager-org { min-height: 49px; white-space: nowrap; }
.manager-more { width: 22px; padding: 0; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }
.manager-modal-backdrop { background: rgba(23, 35, 42, .34); }
.manager-modal { width: min(680px, 100%); }
#report-detail-modal .manager-modal { width: min(860px, 100%); }
.manager-modal .modal-header { padding-left: 120px; }
.manager-modal-body { min-height: auto; padding: 76px 120px 80px; }
.manager-readonly { min-height: 70px; display: flex; flex-direction: column; gap: 7px; color: var(--blue); border-bottom: 2px solid #d7e3e9; }
.manager-readonly + .manager-readonly { margin-top: 6px; }
.manager-readonly strong { min-height: 25px; color: #1b1b1b; font-weight: 400; }
.manager-readonly strong:empty::after { content: "—"; color: #80919a; }
.manager-option-block { margin-top: 20px; color: var(--blue); }
.manager-option-block > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.manager-option-chip { padding: 7px 14px; border: 1px solid var(--blue); border-radius: 18px; color: var(--blue); background: #f8fcfe; font-size: 14px; }
.manager-option-empty { color: #80919a; font-size: 14px; }
.manager-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 80px; }
.manager-modal-actions .button { min-width: 0; }
.registration-manager-modal { width: min(680px, 100%); }
.manager-registration-form { display: flex; flex-direction: column; gap: 17px; padding-top: 70px; }
.manager-registration-form .line-field input { height: 26px; }
.password-generate { display: grid; grid-template-columns: 1fr 170px; align-items: end; gap: 20px; }
.password-generate .button { min-height: 42px; }
.registration-actions { grid-template-columns: 116px 1fr; margin-top: 4px; }
.manager-mail-hint { color: var(--blue); font-size: 14px; }

/* ==========================================================================
   11. Report builder workspace
   --------------------------------------------------------------------------
   Интерфейс сборки отчета: shell, toolbar, навигация секций, editor fields,
   textarea-состояния, preview map и builder layout.
   ========================================================================== */

.report-builder-page { min-height: 100vh; color: #161616; background: #f1f1f1; }
.builder-header { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(calc((100vw - 1200px) / 2), 24px); background: #fff; }
.builder-header > div { display: flex; align-items: center; gap: 18px; }
.builder-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: #2d2d2d; }
.builder-shell { width: min(1280px, 100%); margin: auto; padding: 27px 0 80px; }
.builder-notice { margin: 0 20px 20px; }
.builder-toolbar { display: flex; justify-content: flex-end; gap: 8px; padding: 0 0 21px; }
.builder-toolbar form { margin: 0; }
.builder-toolbar button { min-width: 134px; height: 49px; border: 0; border-radius: 8px; background: #d3d3d3; cursor: pointer; }
.builder-toolbar button.dark { color: white; background: #2f2f2f; }
.builder-workspace { min-height: 1000px; display: grid; grid-template-columns: 400px minmax(0, 1fr); background: #fff; }
.builder-sections { display: flex; flex-direction: column; gap: 16px; padding: 148px 20px 30px; border-right: 1px solid #eee; }
.builder-sections button { min-height: 57px; display: flex; align-items: center; gap: 18px; padding: 0 32px; border: 1px solid #ddd; border-radius: 8px; background: #f0f0f0; font-size: 20px; text-align: left; cursor: pointer; }
.builder-sections button.active { color: white; border-color: #4b77c7; background: #4b77c7; }
.builder-sections b { min-width: 24px; }
.builder-editor { padding: 60px 48px; background: #f7fafc; }
.builder-license { display: grid; grid-template-columns: 120px 1fr; gap: 8px 18px; margin-bottom: 28px; padding: 20px; border: 1px solid #dbe3e7; border-radius: 8px; background: white; }
.builder-license span { color: var(--muted); }
.builder-editor > label { display: block; margin-bottom: 20px; color: #64606e; }
.builder-editor textarea { width: 100%; min-height: 120px; display: block; margin-top: -7px; padding: 20px 14px 12px; resize: vertical; border: 1px solid #777380; border-radius: 5px; background: transparent; }
.builder-editor textarea:not([readonly]) { outline: 2px solid rgba(75, 119, 199, .2); border-color: #4b77c7; background: #fff; }
.builder-map { min-height: 360px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; margin-top: 35px; border: 1px solid #d6e0e5; color: white; background: linear-gradient(145deg, #5f7553, #6f8c73 40%, #384e45); }
.builder-map .terrain-grid { opacity: .2; }
.builder-map span, .builder-map small { position: relative; z-index: 1; padding: 7px 13px; background: rgba(0, 0, 0, .38); }

/* ==========================================================================
   12. Адаптив manager/builder
   --------------------------------------------------------------------------
   Горизонтальный overflow для широких manager rows и мобильные адаптации
   manager workspace/report builder.
   ========================================================================== */

@media (max-width: 1100px) {
    .manager-list { overflow-x: auto; padding-bottom: 8px; }
    .manager-row { min-width: 1120px; }
    .builder-workspace { grid-template-columns: 310px 1fr; }
    .builder-sections button { padding: 0 20px; font-size: 17px; }
}

@media (max-width: 700px) {
    .manager-header { height: auto; }
    .manager-header-inner { width: 100%; min-height: 76px; flex-direction: column-reverse; align-items: stretch; gap: 12px; padding: 12px 14px; }
    .manager-tabs a { min-width: 0; flex: 1; }
    .manager-account { justify-content: flex-end; }
    .manager-main { width: 100%; min-height: calc(100vh - 140px); padding: 28px 12px 60px; }
    .manager-empty { min-height: 480px; padding: 20px; text-align: center; font-size: 20px; }
    .manager-modal .modal-header { padding-left: 24px; }
    .manager-modal-body { padding: 42px 24px; }
    .manager-modal-actions { margin-top: 45px; }
    .password-generate { grid-template-columns: 1fr; }
    .registration-actions { grid-template-columns: 1fr 1fr; }
    .builder-header { height: auto; min-height: 72px; padding: 12px 16px; }
    .builder-header > a { max-width: 55%; }
    .builder-shell { padding-top: 16px; }
    .builder-toolbar { overflow-x: auto; justify-content: flex-start; padding: 0 12px 16px; }
    .builder-workspace { display: block; }
    .builder-sections { overflow-x: auto; flex-direction: row; padding: 16px 12px; border-right: 0; }
    .builder-sections button { min-width: 210px; }
    .builder-editor { padding: 28px 16px; }
    .builder-license { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Client report order: поздний screen-specific override
   --------------------------------------------------------------------------
   Более точная реализация экрана заказа клиентского отчета под supplied mockup.
   Этот блок находится ниже и поэтому перекрывает одноименные правила сегмента 07.
   ========================================================================== */



/* ==========================================================================
   14. Registration form: select refinements
   --------------------------------------------------------------------------
   Select внутри .line-field стилизуется как input. Дубли сохранены в исходном
   cascade-order, чтобы не менять поведение файла.
   ========================================================================== */

/* Registration form updates */
.line-field select {
    width: 100%;
    height: 38px;
    outline: none;
    border: 0;
    border-bottom: 2px solid #d6e3e9;
    color: var(--ink);
    background: transparent;
}
.line-field select:focus { border-color: var(--blue); }



/* ==========================================================================
   16. Shop cart/source refinements
   --------------------------------------------------------------------------
   Поздние точечные overrides для типов карточек license/map, source behavior,
   скрытия global license и top-up modal акцента.
   ========================================================================== */

/* Cart/source type refinements */
.shop-product-card-license .shop-product-body,
.shop-product-card-map .shop-product-body {
    margin-top: 22px;
}
.shop-product-card-map .shop-map-button {
    margin-left: 48px;
}
.shop-global-license {
    display: none;
}


.topup-needed-modal .small-modal p strong {
    color: var(--blue);
}





/* ==========================================================================
   20. Shop materials/source responsive refinements
   --------------------------------------------------------------------------
   Поздние responsive-правки для кнопки скачивания материалов и single source
   row в shop order interface.
   ========================================================================== */

/* Materials download button responsive */
@media (max-width: 980px) {
    .shop-product-head { padding-right: 0; }
    .shop-materials-download {
        position: static;
        width: max-content;
        max-width: 100%;
        margin: 12px 0 0 48px;
    }
}
@media (max-width: 680px) {
    .shop-materials-download {
        width: 100%;
        margin: 12px 0 0;
    }
}


/* Single top source row */
.shop-product-card-map .shop-card-source-row .shop-map-button {
    margin-left: 0;
}
@media (max-width: 680px) {
    .shop-card-source-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .shop-card-source-row .shop-map-button,
    .shop-card-source-row .shop-materials-download {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 980px) {
    .shop-card-source-row .shop-materials-download {
        width: auto;
        max-width: 100%;
        margin: 0 0 0 auto;
    }
}

/* ==========================================================================
   21. Registration consent и legal-модалки
   --------------------------------------------------------------------------
   Список согласий, checkbox layout, кнопки открытия legal-текстов и стили
   legal modal body. Используется в request/registration flow лендинга.
   ========================================================================== */

/* Registration consent and legal modals */
.consent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 8px;
}
.consent-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--blue);
    font-size: 13px;
    line-height: 1.35;
}
.consent-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--blue);
}
.consent-check button {
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.legal-modal {
    width: min(760px, 100%);
}
.legal-modal-body {
    min-height: auto;
    max-height: min(70vh, 620px);
    overflow: auto;
    padding-top: 42px;
    padding-bottom: 42px;
}
.legal-modal-body p {
    margin: 0 0 16px;
    color: var(--blue);
    line-height: 1.55;
}
.legal-modal-body .button {
    margin-top: 12px;
}

/* ==========================================================================
   22. Manager organization card и invoice form
   --------------------------------------------------------------------------
   Organization manager modal, сетка полей организации, invoice create panel и
   responsive действия формы.
   ========================================================================== */

/* Manager organization card and invoice form */
.organization-manager-modal {
    width: min(820px, 100%);
}
.organization-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.invoice-create-box {
    display: grid;
    gap: 16px;
    margin-top: 8px;
    padding: 18px;
    border: 1px solid #d6e3e9;
    border-radius: 10px;
    background: #f6fbff;
}
.invoice-create-box h3 {
    margin: 0;
    color: var(--blue);
    font-size: 17px;
}
.invoice-create-box small {
    color: var(--muted);
    line-height: 1.45;
}
.organization-card-form .manager-modal-actions {
    grid-template-columns: 1fr 1fr 1.4fr;
}
@media (max-width: 720px) {
    .organization-fields-grid,
    .organization-card-form .manager-modal-actions {
        grid-template-columns: 1fr;
    }
}


