:root { color-scheme:light; --bg:#f6f5f2; --surface:#fff; --surface-soft:#fbfaf8; --text:#252525; --muted:#6e6b67; --line:#e3e0da; --line-strong:#d5d0c8; --brand:#d71920; --brand-dark:#ad1016; --brand-soft:#fff0f0; --gold:#b78b3a; --gold-soft:#f4ead7; --logo-red:#d71920; --sidebar-width:246px; }
* { box-sizing:border-box; } body { margin:0; font-family:Inter,Segoe UI,sans-serif; color:var(--text); background:var(--bg); }
a { color:var(--brand); text-decoration:none; } button,input { font:inherit; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:var(--sidebar-width) minmax(0,1fr); transition:grid-template-columns .2s ease; }
.app-shell.sidebar-hidden { grid-template-columns:0 minmax(0,1fr); }
.sidebar { min-width:var(--sidebar-width); background:var(--surface); border-right:1px solid var(--line); padding:16px; overflow:hidden; transition:transform .2s ease,visibility .2s ease; }
.sidebar-hidden .sidebar { transform:translateX(-100%); visibility:hidden; }
.sidebar-controls { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:30px; margin-bottom:12px; }.sidebar-control,.sidebar-close,.sidebar-toggle { border:1px solid var(--line); background:var(--surface); color:var(--muted); border-radius:7px; cursor:pointer; }.sidebar-control { padding:5px 8px; font-size:12px; }.sidebar-control.active { color:var(--brand); background:var(--brand-soft); }.sidebar-close { width:30px; height:30px; font-size:20px; line-height:1; }.sidebar-toggle { width:38px; height:38px; font-size:20px; flex:0 0 auto; }
.brand { display:grid; justify-items:center; gap:10px; color:var(--logo-red); font-size:20px; font-weight:700; margin:0 0 24px; text-align:center; }.brand:hover { color:#bc0f1d; }.brand-logo { display:block; width:112px; height:76px; object-fit:contain; border-radius:10px; }.brand-name { color:inherit; }
.sidebar nav { display:grid; gap:5px; }.sidebar nav a,.sidebar nav span { padding:10px 12px; border-radius:8px; color:var(--muted); }.sidebar nav .active { background:var(--brand-soft); color:var(--text); font-weight:600; }
.page { min-width:0; padding:24px 28px 28px; }.topbar { min-height:42px; display:flex; justify-content:space-between; align-items:center; gap:24px; }.topbar-start { display:flex; align-items:center; gap:14px; min-width:0; }.topbar h1 { margin:0; font-size:24px; }.user-menu { display:flex; gap:14px; align-items:center; color:var(--muted); }.user-menu form { margin:0; }.user-menu button { border:0; background:none; color:var(--brand); cursor:pointer; }
.workspace-nav { display:flex; align-items:center; gap:24px; margin:16px 0 20px; padding:12px 16px; background:var(--surface); border:1px solid var(--line); border-radius:11px; }.workspace-nav strong { font-size:17px; }.workspace-nav div { display:flex; gap:6px; flex-wrap:wrap; }.workspace-nav a { padding:8px 13px; color:var(--muted); border-radius:8px; }.workspace-nav a.active { color:var(--text); background:var(--brand-soft); font-weight:600; }
.stage-pipeline { margin:12px 0 20px; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow-x:auto; }.stage-pipeline__title { margin-bottom:10px; color:var(--muted); font-size:13px; font-weight:600; }.stage-pipeline__steps { display:flex; align-items:stretch; min-width:max-content; }.stage-pipeline__steps form { margin:0; display:flex; }.stage-step { position:relative; display:flex; align-items:center; justify-content:center; min-width:130px; min-height:42px; padding:9px 24px 9px 30px; border:0; background:#edf1ee; color:var(--muted); font:inherit; cursor:default; clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%,16px 50%); }.stage-pipeline__steps>*:first-child .stage-step,.stage-pipeline__steps>.stage-step:first-child { padding-left:18px; clip-path:polygon(0 0,calc(100% - 16px) 0,100% 50%,calc(100% - 16px) 100%,0 100%); }.stage-pipeline form .stage-step { cursor:pointer; }.stage-pipeline form .stage-step:hover { background:#dcebe2; color:var(--text); }.stage-step.active { background:var(--brand); color:#fff; font-weight:700; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:28px 0; }.metrics article,.empty-state,.auth-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:20px; }.metrics strong { display:block; font-size:28px; }.metrics span { color:var(--muted); }
.panel p>a,.panel p>small { display:block; }.panel p>small { margin-top:4px; color:var(--muted); }
.empty-state h2 { margin-top:0; }.empty-state p { color:var(--muted); }.auth-page { grid-column:1 / -1; display:grid; place-items:center; }.auth-card { width:min(420px,100%); }.auth-card h1 { margin-top:0; }.auth-card label { display:grid; gap:6px; margin:16px 0; }.auth-card input { width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; }.primary { width:100%; padding:11px; border:0; border-radius:8px; background:var(--brand); color:#fff; margin:4px 0 16px; cursor:pointer; }.error { color:#ad3232; }
.toolbar,.section-head,.detail-actions,.form-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:18px 0; }.tabs { display:flex; gap:6px; }.tabs a { padding:8px 12px; border-radius:8px; color:var(--muted); }.tabs .active { background:var(--brand-soft); color:var(--text); }.button,.search button,.add-row { display:inline-block; border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:8px; padding:9px 13px; cursor:pointer; }.primary-inline { background:var(--brand); border-color:var(--brand); color:#fff; }.search { display:flex; max-width:620px; margin:16px 0; }.search input { flex:1; padding:10px 12px; border:1px solid var(--line); border-radius:8px 0 0 8px; }.search button { border-radius:0 8px 8px 0; }.table-wrap { overflow-x:auto; }table { width:100%; border-collapse:collapse; background:var(--surface); }th,td { text-align:left; padding:12px; border-bottom:1px solid var(--line); vertical-align:top; }th { color:var(--muted); font-weight:600; }td small { display:block; color:var(--muted); margin-top:4px; }.pagination { display:flex; justify-content:center; gap:14px; margin:18px; }.back,.muted { color:var(--muted); }.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.panel { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:20px; margin:16px 0; }.panel h2 { margin-top:0; font-size:18px; }dl { display:grid; grid-template-columns:minmax(130px,.4fr) 1fr; gap:10px 16px; }dt { color:var(--muted); }dd { margin:0; }.tag { background:var(--brand-soft); color:var(--brand); padding:3px 6px; border-radius:5px; font-size:12px; }.documents { display:grid; grid-template-columns:1fr auto; gap:8px 16px; }.document-form { border-top:1px solid var(--line); margin-top:16px; padding-top:12px; }.entity-form { max-width:900px; }.entity-form p { display:grid; gap:5px; }.entity-form input:not([type=checkbox]),.entity-form select,.entity-form textarea { width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:8px; }.entity-form select[multiple] { min-height:130px; }.repeatable { display:grid; gap:10px; }.repeatable-row { display:grid; grid-template-columns:2fr 1fr auto auto; gap:10px; border-bottom:1px solid var(--line); }.repeatable-row p { margin:5px 0; }.add-row { margin-top:12px; }
.actions { display:flex; gap:8px; }.lead-filters { max-width:900px; }.lead-filters select { border:1px solid var(--line); padding:8px; }.notice { background:var(--brand-soft); color:var(--brand); padding:12px; border-radius:8px; }.error-list { color:#ad3232; border-left:3px solid #ad3232; padding-left:12px; }.invalid-row { background:#fff1f1; }.import-confirm { border-top:1px solid var(--line); margin-top:18px; padding-top:16px; }
.deal-filters { max-width:none; }.deal-filters select,.kanban-filter select { border:1px solid var(--line); padding:9px; background:var(--surface); }.kanban-filter { margin:16px 0; }.kanban-filter label { display:flex; gap:8px; align-items:center; }.kanban-board { display:flex; gap:14px; overflow-x:auto; align-items:flex-start; padding-bottom:16px; }.kanban-column { width:290px; min-width:290px; background:#edf1ee; border-radius:12px; padding:12px; }.kanban-column>header { display:flex; justify-content:space-between; margin-bottom:12px; }.kanban-column>header span { color:var(--muted); }.kanban-cards { display:grid; gap:10px; }.deal-card { display:grid; gap:7px; background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:9px; padding:12px; }.deal-card span,.deal-card small { color:var(--muted); }.deal-card b { color:var(--brand); }
.catalog-filters { max-width:none; }.catalog-filters select { border:1px solid var(--line); padding:9px; background:var(--surface); }
.link-button { border:0; padding:0; background:none; color:#ad3232; cursor:pointer; }.actions form { margin:0; }tfoot th { color:var(--text); }
.contract-filters { max-width:none; }.contract-filters select { border:1px solid var(--line); padding:9px; background:var(--surface); }
.activity-filters { max-width:none; }.activity-filters select { border:1px solid var(--line); padding:9px; background:var(--surface); }.danger { color:#ad3232; }.danger-tag { background:#fff0f0; color:#ad3232; }.overdue-row { background:#fff8f8; }.notification-badge { display:inline-block; min-width:20px; padding:2px 6px; border-radius:10px; background:#ad3232; color:#fff; text-align:center; font-size:12px; }.activity-timeline { display:grid; gap:8px; }.activity-timeline article,.notification-list article { display:flex; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); padding:10px 0; }.activity-timeline article:last-child,.notification-list article:last-child { border-bottom:0; }.activity-timeline small,.notification-list small { display:block; color:var(--muted); margin-top:4px; }.activity-timeline .overdue { border-left:3px solid #ad3232; padding-left:10px; }.notification-list .unread { background:var(--brand-soft); padding:12px; border-radius:8px; }.notification-list form { margin:auto 0; }
@media(max-width:720px) { :root { --sidebar-width:210px; }.app-shell,.app-shell:not(.sidebar-hidden) { grid-template-columns:0 minmax(0,1fr); }.sidebar { position:fixed; z-index:20; inset:0 auto 0 0; width:var(--sidebar-width); box-shadow:8px 0 24px rgba(20,40,28,.12); }.page { padding:16px; }.metrics { grid-template-columns:1fr; }.topbar { align-items:flex-start; }.user-menu>span { display:none; }.workspace-nav { align-items:flex-start; flex-direction:column; gap:8px; } }
@media(max-width:720px) { .detail-grid { grid-template-columns:1fr; }.repeatable-row { grid-template-columns:1fr; }.toolbar { align-items:flex-start; flex-direction:column; }dl { grid-template-columns:1fr; }.documents { grid-template-columns:1fr; } }

/* Утверждённая корпоративная дизайн-система КФ «Азовчанка». */
body { background:var(--bg); color:var(--text); font-size:15px; line-height:1.45; }
a { color:#9f151a; transition:color .15s ease,background-color .15s ease,border-color .15s ease; }
a:hover { color:var(--brand); }
.sidebar { background:rgba(255,255,255,.98); border-right:1px solid var(--line); padding:18px 16px 22px; box-shadow:5px 0 20px rgba(42,32,22,.025); }
.sidebar-controls { margin-bottom:8px; }
.sidebar-control,.sidebar-close,.sidebar-toggle { border-color:var(--line-strong); background:#fff; color:#77726c; box-shadow:0 1px 2px rgba(42,32,22,.04); }
.sidebar-control.active { color:var(--brand-dark); background:var(--brand-soft); border-color:#f3c9ca; }
.sidebar-control:hover,.sidebar-close:hover,.sidebar-toggle:hover { color:var(--brand); border-color:#e7aeb0; background:#fffafa; }
.brand { gap:5px; margin:2px 0 25px; padding:4px 2px 15px; color:var(--text); border-bottom:1px solid var(--gold-soft); }
.brand:hover { color:var(--text); }
.brand-logo { width:132px; height:132px; border-radius:0; object-fit:contain; }
.brand-name { margin-top:3px; color:var(--text); font-size:18px; font-weight:700; letter-spacing:.01em; }
.brand-subtitle { color:var(--muted); font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; }
.sidebar nav { gap:4px; }
.sidebar nav a,.sidebar nav span { position:relative; min-height:43px; display:flex; align-items:center; padding:11px 12px 11px 14px; border-radius:7px; color:#514f4c; }
.sidebar nav a:hover { color:var(--brand-dark); background:#fff7f7; }
.sidebar nav .active { color:var(--brand-dark); background:var(--brand-soft); font-weight:700; }
.sidebar nav .active::before { content:""; position:absolute; inset:7px auto 7px 0; width:3px; border-radius:0 3px 3px 0; background:var(--brand); }
.page { padding:20px 28px 32px; }
.topbar { min-height:54px; padding:0 0 13px; border-bottom:1px solid var(--gold-soft); }
.topbar h1 { font-size:25px; letter-spacing:-.015em; }
.user-menu { gap:16px; color:var(--muted); font-size:14px; }
.user-menu a,.user-menu button { color:#7e181c; }
.workspace-nav { margin:17px 0 22px; padding:0 4px; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; gap:26px; }
.workspace-nav strong { padding:12px 8px 13px; font-size:19px; }
.workspace-nav div { gap:12px; }
.workspace-nav a { position:relative; padding:13px 14px 14px; border-radius:0; color:#5d5955; }
.workspace-nav a:hover { color:var(--brand-dark); background:transparent; }
.workspace-nav a.active { color:var(--brand); background:transparent; font-weight:700; }
.workspace-nav a.active::after { content:""; position:absolute; right:10px; bottom:-1px; left:10px; height:2px; background:var(--brand); }
.metrics { gap:16px; margin:22px 0; }
.metrics article,.empty-state,.auth-card { border-color:var(--line); border-radius:9px; box-shadow:0 3px 12px rgba(42,32,22,.035); }
.metrics article { position:relative; padding:20px 21px; overflow:hidden; }
.metrics article::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--brand); }
.metrics strong { font-size:29px; letter-spacing:-.02em; }
.metrics span { color:var(--muted); }
.panel { border-color:var(--line); border-radius:9px; padding:21px; box-shadow:0 3px 12px rgba(42,32,22,.03); }
.panel h2 { font-size:18px; letter-spacing:-.01em; }
.toolbar,.section-head,.detail-actions,.form-actions { margin:18px 0; }
.tabs { gap:12px; border-bottom:1px solid var(--line); }
.tabs a { position:relative; padding:9px 12px 11px; border-radius:0; color:#65615d; }
.tabs a:hover { color:var(--brand-dark); }
.tabs .active { color:var(--brand); background:transparent; font-weight:700; }
.tabs .active::after { content:""; position:absolute; right:8px; bottom:-1px; left:8px; height:2px; background:var(--brand); }
.button,.search button,.add-row { border-color:var(--line-strong); border-radius:6px; background:#fff; color:#34312f; box-shadow:0 1px 2px rgba(42,32,22,.03); }
.button:hover,.search button:hover,.add-row:hover { color:var(--brand-dark); border-color:#e5adaf; background:#fffafa; }
.primary,.primary-inline { background:var(--brand); border-color:var(--brand); color:#fff; box-shadow:0 3px 8px rgba(183,18,25,.16); }
.primary:hover,.primary-inline:hover { background:var(--brand-dark); border-color:var(--brand-dark); color:#fff; }
.search input,.search select,.entity-form input:not([type=checkbox]),.entity-form select,.entity-form textarea,.lead-filters select,.deal-filters select,.kanban-filter select,.catalog-filters select,.contract-filters select,.activity-filters select { border-color:var(--line-strong); border-radius:6px; background:#fff; }
.search input:focus,.search select:focus,.entity-form input:focus,.entity-form select:focus,.entity-form textarea:focus { outline:2px solid rgba(215,25,32,.12); border-color:#dd7d80; }
.search input { border-radius:6px 0 0 6px; }
.search button { border-radius:0 6px 6px 0; }
.table-wrap { overflow:hidden; border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:0 3px 12px rgba(42,32,22,.025); }
table { background:transparent; }
th { padding:13px 14px; color:#68645f; background:#fbfaf8; font-size:13px; font-weight:700; letter-spacing:.015em; }
td { padding:13px 14px; border-bottom-color:#ebe8e3; }
tbody tr:hover { background:#fffafa; }
.tag { background:var(--brand-soft); color:var(--brand-dark); border:1px solid #f3c8ca; border-radius:4px; }
.notice { background:#fff4f4; color:#8e171b; border-left:3px solid var(--brand); }
.pagination { color:var(--muted); }
.stage-pipeline { padding:15px 16px 16px; overflow:visible; border-color:var(--line); border-radius:9px; box-shadow:0 3px 12px rgba(42,32,22,.025); }
.stage-pipeline__title { color:#65615c; letter-spacing:.02em; }
.stage-pipeline__steps { min-width:100%; }
.stage-pipeline__steps form,.stage-pipeline__steps>.stage-step { flex:1 1 0; min-width:0; }
.stage-step { width:100%; min-width:0; min-height:44px; padding:9px 18px 9px 24px; background:#f1efeb; color:#605c57; font-size:13px; line-height:1.2; white-space:normal; }
.stage-pipeline form .stage-step:hover { background:#f8dfe0; color:var(--brand-dark); }
.stage-step.active { background:var(--brand); color:#fff; }
.kanban-column { background:#eeece8; border:1px solid var(--line); border-radius:9px; }
.deal-card { border-color:var(--line); border-radius:7px; box-shadow:0 2px 7px rgba(42,32,22,.035); }
.deal-card b { color:var(--brand-dark); }
.notification-badge { background:var(--brand); }
.notification-list .unread { background:var(--brand-soft); }
.auth-page { background:linear-gradient(135deg,#faf9f6 0%,#f4f0e8 100%); }
.auth-card { border-top:3px solid var(--brand); }
@media(max-width:720px) { .brand-logo { width:112px; height:112px; }.workspace-nav { padding-bottom:4px; }.workspace-nav strong { padding-bottom:4px; }.table-wrap { overflow-x:auto; }.stage-pipeline { overflow-x:auto; }.stage-pipeline__steps { min-width:max-content; }.stage-pipeline__steps form,.stage-pipeline__steps>.stage-step { flex:0 0 auto; }.stage-step { width:auto; min-width:130px; } }

.completion-stage { position:relative; flex:1 1 0; min-width:0; }
.completion-stage summary { list-style:none; cursor:pointer; background:var(--gold); color:#fff; font-weight:700; }
.completion-stage summary::-webkit-details-marker { display:none; }
.completion-popover { position:absolute; z-index:12; right:0; top:calc(100% + 8px); width:300px; padding:15px; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 12px 28px rgba(42,32,22,.18); }
.completion-popover form { display:grid; gap:9px; margin:0 0 10px; }
.completion-popover form:last-child { margin-bottom:0; }
.completion-popover label { display:grid; gap:5px; font-size:13px; }
.completion-popover select { width:100%; padding:9px; border:1px solid var(--line-strong); border-radius:6px; background:#fff; }
.outcome-won { background:#2e8b57!important; border-color:#2e8b57!important; color:#fff!important; }
.outcome-lost { background:#c92a2a!important; border-color:#c92a2a!important; color:#fff!important; }
.record-tabs { display:flex; gap:5px; margin:-4px 0 20px; padding:0 5px; border-bottom:1px solid var(--line); }
.record-tabs a { padding:11px 16px; color:#5f5b57; border-bottom:2px solid transparent; }
.record-tabs a.active { color:var(--brand); border-color:var(--brand); font-weight:700; }
.record-tabs span { display:inline-block; min-width:20px; margin-left:5px; padding:1px 5px; border-radius:10px; background:#f0ede8; color:var(--muted); font-size:12px; text-align:center; }

/* Иерархия навигации: модуль → раздел → локальная вкладка. */
.module-title { margin:0; font-size:25px; letter-spacing:-.015em; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; margin:0 0 16px; }
.page-heading:empty { display:none; }
.page-heading h1 { margin:0; font-size:20px; }
.workspace-nav { align-items:center; padding:11px 13px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 3px 12px rgba(65,45,35,.04); }
.workspace-nav strong { padding:8px 10px; border-right:1px solid var(--line); }
.workspace-nav div { gap:8px; }
.workspace-nav a { padding:10px 17px; border:1px solid transparent; border-radius:8px; }
.workspace-nav a:hover { background:#faf5f1; }
.workspace-nav a.active { color:#fff; background:var(--brand); border-color:var(--brand); box-shadow:0 4px 10px rgba(211,20,31,.18); }
.workspace-nav a.active::after { display:none; }
.entity-tabs { display:flex; align-items:flex-end; gap:2px; margin:0; padding:0 8px; border-bottom:1px solid var(--line); }
.entity-tabs a { position:relative; bottom:-1px; padding:11px 19px; color:var(--muted); background:#f3f0ed; border:1px solid var(--line); border-radius:8px 8px 0 0; }
.entity-tabs a.active { z-index:1; color:var(--brand); background:#fff; border-bottom-color:#fff; font-weight:700; }
.toolbar > .tabs { display:flex; align-items:flex-end; gap:2px; padding:0 8px; border-bottom:1px solid var(--line); }
.toolbar > .tabs a { position:relative; bottom:-1px; padding:10px 15px; color:var(--muted); background:#f3f0ed; border:1px solid var(--line); border-radius:8px 8px 0 0; }
.toolbar > .tabs a.active { color:var(--brand); background:#fff; border-bottom-color:#fff; font-weight:700; }
.action-menu { position:relative; display:inline-block; }
.action-menu summary { width:40px; height:38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; font-size:20px; list-style:none; }
.action-menu summary::-webkit-details-marker { display:none; }
.action-menu__popover { position:absolute; z-index:12; right:0; top:44px; min-width:190px; padding:7px; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 30px rgba(35,25,20,.14); }
.action-menu__popover a,.action-menu__popover button { display:block; width:100%; padding:9px 11px; color:var(--text); background:none; border:0; border-radius:7px; text-align:left; cursor:pointer; font:inherit; }
.action-menu__popover a:hover,.action-menu__popover button:hover { background:#f7f2ef; }
.action-menu__popover .danger { color:var(--brand); }
.bulk-actions { display:flex; align-items:center; gap:8px; margin:10px 0; padding:8px 10px; background:#faf8f6; border:1px solid var(--line); border-radius:9px; }
.bulk-actions .button { margin:0; }
.row-check { width:32px; text-align:center; }
.danger-card { border-left:4px solid var(--brand); }
.button-danger { color:#fff !important; background:var(--brand) !important; border-color:var(--brand) !important; }
.confirm-check { display:block; margin:18px 0; padding:12px; background:#fff5f5; border:1px solid #f0c7ca; border-radius:8px; }
.related-warning { padding:10px 14px; background:#fff9ec; border:1px solid #eadbb7; border-radius:8px; }
.related-warning li { margin:6px 0; }
.badge-warning { color:#875d00; background:#fff1c5; }
.inline-actions { display:flex; gap:6px; flex-wrap:wrap; }
.inline-actions form { margin:0; }
.comparison-table label,.choice-list label { display:block; cursor:pointer; }
.choice-list { display:grid; gap:8px; margin:14px 0; }
.choice-list label { padding:9px 11px; border:1px solid var(--line); border-radius:8px; }
.product-sheet { position:relative; }
.product-editor { display:grid; grid-template-columns:minmax(280px,2fr) repeat(3,minmax(110px,.6fr)) auto; gap:12px; align-items:end; margin:15px 0 18px; padding:15px; background:var(--surface-soft); border:1px solid var(--line); border-radius:8px; }
.product-editor[hidden] { display:none; }
.product-editor label { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.product-editor input { width:100%; padding:9px; border:1px solid var(--line-strong); border-radius:6px; background:#fff; }
.product-lookup { position:relative; }
.autocomplete-results { position:absolute; z-index:10; top:100%; right:0; left:0; max-height:300px; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:0 0 7px 7px; box-shadow:0 12px 24px rgba(42,32,22,.12); }
.autocomplete-results button { width:100%; display:block; padding:10px 12px; border:0; border-bottom:1px solid var(--line); background:#fff; color:var(--text); text-align:left; cursor:pointer; }
.autocomplete-results button:hover { background:var(--brand-soft); }
.autocomplete-results small { display:block; color:var(--muted); }
.product-editor-meta { grid-column:1/-1; min-height:18px; color:var(--muted); font-size:13px; }
.icon-button { min-width:32px; min-height:32px; padding:4px 8px; border:1px solid var(--line-strong); border-radius:6px; background:#fff; color:var(--text); cursor:pointer; }
.bulk-dialog { width:min(1060px,92vw); max-height:86vh; padding:0; border:1px solid var(--line); border-radius:10px; box-shadow:0 24px 70px rgba(42,32,22,.24); }
.bulk-dialog::backdrop { background:rgba(35,29,25,.35); }
.dialog-head,.bulk-filters,.bulk-toolbar,.bulk-dialog .form-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 18px; border-bottom:1px solid var(--line); }
.dialog-head { margin:0; }
.dialog-head h2 { margin:0; }
.bulk-filters { display:grid; grid-template-columns:2fr repeat(3,1fr) auto; }
.bulk-filters input,.bulk-filters select,.bulk-toolbar input { padding:9px; border:1px solid var(--line-strong); border-radius:6px; background:#fff; }
.bulk-results { max-height:50vh; overflow:auto; padding:8px 18px; }
.bulk-row { display:grid; grid-template-columns:28px minmax(300px,1fr) 150px 120px; gap:12px; align-items:center; padding:10px 4px; border-bottom:1px solid var(--line); }
.bulk-row span,.bulk-row small { display:block; }
.bulk-row small { color:var(--muted); }
.bulk-quantity { width:100%; padding:8px; border:1px solid var(--line-strong); border-radius:6px; }
@media(max-width:900px) { .product-editor { grid-template-columns:1fr 1fr; }.bulk-filters { grid-template-columns:1fr 1fr; }.bulk-row { grid-template-columns:24px 1fr 100px; }.bulk-row .bulk-quantity { grid-column:2/-1; }.completion-popover { position:fixed; top:24vh; right:12px; left:12px; width:auto; } }

.ozon-tabs { margin-top:16px; }
.ozon-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.ozon-product-filters { max-width:none; display:grid; grid-template-columns:minmax(260px,2fr) repeat(4,minmax(150px,1fr)) auto; }
.ozon-product-filters input,.ozon-product-filters select { min-width:0; padding:9px 10px; border:1px solid var(--line-strong); background:#fff; }
.ozon-product-filters input { border-radius:6px 0 0 6px; }
.ozon-product-filters select { border-radius:0; }
.ozon-product-filters button { border-radius:0 6px 6px 0; }
button[disabled] { opacity:1; cursor:not-allowed; box-shadow:none; background:#eeece8!important; border-color:#dedad4!important; color:#98928b!important; }
.ozon-gallery { display:flex; flex-wrap:wrap; gap:12px; }
.ozon-gallery a { display:block; width:112px; height:112px; padding:6px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.ozon-gallery img { display:block; width:100%; height:100%; object-fit:contain; }
@media(max-width:1100px) { .ozon-product-filters { grid-template-columns:1fr 1fr; }.ozon-product-filters input,.ozon-product-filters select,.ozon-product-filters button { border-radius:6px; }.ozon-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .ozon-product-filters,.ozon-metrics { grid-template-columns:1fr; } }
.ozon-operation-filters { max-width:none; display:grid; grid-template-columns:minmax(240px,2fr) minmax(120px,.6fr) minmax(160px,1fr) repeat(2,minmax(135px,.7fr)) auto; }
.ozon-operation-filters input,.ozon-operation-filters select { min-width:0; padding:9px 10px; border:1px solid var(--line-strong); background:#fff; border-radius:0; }
.ozon-operation-filters input { border-radius:6px 0 0 6px; }
.ozon-operation-filters button { border-radius:0 6px 6px 0; }
.ozon-operation-tabs { margin-top:18px; }
td details summary { color:var(--brand-dark); cursor:pointer; }
@media(max-width:900px) { .ozon-operation-filters { grid-template-columns:1fr 1fr; }.ozon-operation-filters input,.ozon-operation-filters select,.ozon-operation-filters button { border-radius:6px; } }
@media(max-width:720px) { .ozon-operation-filters { grid-template-columns:1fr; } }
.analytics-tabs { overflow-x:auto; }
.analytics-filters { max-width:none; display:grid; grid-template-columns:repeat(2,minmax(145px,.65fr)) minmax(210px,1.2fr) repeat(3,minmax(165px,1fr)) auto; gap:8px; }
.analytics-filters label { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px; color:var(--muted); }
.analytics-filters input,.analytics-filters select { min-width:0; padding:9px; border:1px solid var(--line-strong); border-radius:6px; background:#fff; }
.analytics-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.analytics-metrics small { display:block; color:var(--muted); }
@media(max-width:1000px) { .analytics-filters,.analytics-metrics { grid-template-columns:1fr 1fr; } }
@media(max-width:720px) { .analytics-filters,.analytics-metrics { grid-template-columns:1fr; } }
