* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
input, select, button, textarea {
font-family: inherit;
}
body {
font-family: var(--font);
font-size: 14px;
line-height: 1.5;
color: var(--ink);
background: var(--surface-2);
overflow-x: hidden;
}
.header {
background: var(--fill-strong);
color: var(--on-fill);
padding: 0 16px;
display: flex;
align-items: center;
height: 48px;
gap: 16px;
}
.header-title {
font-size: 16px;
font-weight: 600;
white-space: nowrap;
display: flex;
align-items: center;
gap: 6px;
}
.header-logo {
flex-shrink: 0;
}
.nav {
display: flex;
gap: 4px;
}
.nav-link {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
padding: 6px 10px;
border-radius: var(--r-sm);
font-size: 13px;
white-space: nowrap;
transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
color: var(--on-fill);
background: rgba(255, 255, 255, 0.1);
}
.nav-link.active {
color: var(--on-fill);
background: rgba(255, 255, 255, 0.2);
}
.header-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 12px;
}
.sync-status {
font-size: 10px;
color: rgba(255, 255, 255, 0.5);
white-space: nowrap;
}
.main {
max-width: 100%;
margin: 0 auto;
padding: 24px;
overflow-x: clip;
}
.footer {
text-align: center;
padding: 20px;
color: var(--ink-3);
font-size: 12px;
}
.filter-row {
display: flex;
align-items: flex-start;
gap: 12px;
margin-bottom: 24px;
}
.date-picker-wrapper {
position: relative;
margin-bottom: 24px;
}
.filter-row .date-picker-wrapper {
margin-bottom: 0;
}
.date-picker-trigger {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-md);
cursor: pointer;
font-size: 14px;
color: var(--ink);
box-shadow: var(--shadow-1);
transition: border-color 0.2s, box-shadow 0.2s;
}
.date-picker-trigger:hover {
border-color: var(--accent);
box-shadow: 0 2px 6px var(--accent-ring);
}
.date-picker-trigger.active {
border-color: var(--accent);
box-shadow: 0 2px 6px var(--accent-ring);
}
.date-picker-icon {
color: var(--ink-2);
}
.date-picker-text {
font-weight: 500;
}
.date-picker-arrow {
color: var(--ink-3);
transition: transform 0.2s;
}
.date-picker-trigger.active .date-picker-arrow {
transform: rotate(180deg);
}
.date-picker-popup {
position: absolute;
top: calc(100% + 8px);
left: 0;
z-index: 1000;
background: var(--surface);
border-radius: var(--r-lg);
box-shadow: var(--shadow-pop);
display: none;
}
.date-picker-popup.show {
display: block;
animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}
.date-picker-presets {
display: flex;
flex-direction: column;
gap: 4px;
padding: 12px;
background: var(--surface-2);
border-right: 1px solid var(--line-soft);
min-width: 160px;
position: absolute;
left: 0;
top: 0;
bottom: 60px;
}
.preset-btn {
padding: 8px 12px;
background: transparent;
border: none;
border-radius: var(--r-md);
cursor: pointer;
font-size: 13px;
color: var(--ink);
text-align: left;
transition: background 0.15s;
}
.preset-btn:hover {
background: var(--surface-3);
}
.preset-btn.active {
background: var(--accent-fill);
color: var(--on-fill);
}
.date-picker-calendars {
display: flex;
gap: 24px;
padding: 16px 16px 16px 180px;
}
.calendar {
width: 280px;
}
.calendar-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
padding: 0 4px;
}
.calendar-title {
font-weight: 600;
font-size: 15px;
color: var(--ink);
}
.calendar-nav {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: var(--r-md);
cursor: pointer;
font-size: 16px;
color: var(--ink-2);
transition: background 0.15s;
}
.calendar-nav:hover {
background: var(--surface-3);
}
.calendar-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
margin-bottom: 8px;
}
.calendar-weekdays span {
text-align: center;
font-size: 12px;
font-weight: 500;
color: var(--ink-3);
padding: 4px 0;
}
.calendar-days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
}
.calendar-day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
color: var(--ink);
border-radius: 50%;
cursor: pointer;
transition: background 0.15s, color 0.15s;
position: relative;
}
.calendar-day:hover:not(.empty):not(.disabled) {
background: var(--surface-3);
}
.calendar-day.empty {
cursor: default;
}
.calendar-day.disabled {
color: var(--ink-4);
cursor: not-allowed;
}
.calendar-day.other-month {
color: var(--ink-4);
}
.calendar-day.today {
font-weight: 600;
color: var(--accent);
}
.calendar-day.selected {
background: var(--accent-fill);
color: var(--on-fill);
}
.calendar-day.in-range {
background: var(--accent-bg);
border-radius: 0;
}
.calendar-day.range-start {
background: var(--accent-fill);
color: var(--on-fill);
border-radius: 50% 0 0 50%;
}
.calendar-day.range-end {
background: var(--accent-fill);
color: var(--on-fill);
border-radius: 0 50% 50% 0;
}
.calendar-day.range-start.range-end {
border-radius: 50%;
}
.date-picker-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: var(--surface-2);
border-top: 1px solid var(--line-soft);
margin-left: 160px;
}
.date-picker-range-display {
font-size: 14px;
color: var(--ink-2);
}
.date-picker-actions {
display: flex;
gap: 8px;
}
.btn-cancel {
padding: 8px 16px;
background: transparent;
border: 1px solid var(--line);
border-radius: var(--r-md);
cursor: pointer;
font-size: 14px;
color: var(--ink-2);
transition: background 0.15s;
}
.btn-cancel:hover {
background: var(--surface-3);
}
.btn-apply {
padding: 8px 20px;
background: var(--accent-fill);
border: none;
border-radius: var(--r-md);
cursor: pointer;
font-size: 14px;
color: var(--on-fill);
font-weight: 500;
transition: background 0.15s;
}
.btn-apply:hover {
background: var(--accent-fill);
}
@media (max-width: 900px) {
.date-picker-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: calc(100vw - 32px);
max-height: calc(100vh - 32px);
overflow-y: auto;
}
.date-picker-popup.show {
animation: none;
}
.date-picker-presets {
position: relative;
flex-direction: row;
flex-wrap: wrap;
border-right: none;
border-bottom: 1px solid var(--line-soft);
bottom: auto;
}
.date-picker-calendars {
flex-direction: column;
padding: 16px;
gap: 16px;
}
.date-picker-footer {
margin-left: 0;
}
.calendar {
width: 100%;
}
}
.group-buttons {
display: inline-flex;
gap: 0;
}
.group-btn {
padding: 10px 16px;
border: 1px solid var(--line);
background: var(--surface);
color: var(--ink);
font-size: 14px;
text-decoration: none;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.group-btn:first-child {
border-radius: var(--r-md) 0 0 var(--r-md);
}
.group-btn:last-child {
border-radius: 0 var(--r-md) var(--r-md) 0;
}
.group-btn:not(:first-child) {
border-left: none;
}
.group-btn:hover {
background: var(--surface-3);
}
.group-btn.active {
background: var(--accent-fill);
color: var(--on-fill);
border-color: var(--accent);
}
.group-btn.active + .group-btn {
border-left: 1px solid var(--line);
}
.metrics-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 16px;
margin-bottom: 24px;
}
@media (max-width: 1200px) {
.metrics-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.metrics-grid {
grid-template-columns: repeat(2, 1fr);
}
}
.metric-card {
background: var(--surface);
border-radius: var(--r-md);
padding: 20px;
text-align: center;
box-shadow: var(--shadow-1);
}
.metric-value {
font-size: 24px;
font-weight: 600;
color: var(--ink);
margin-bottom: 4px;
white-space: nowrap;
}
.metric-label {
font-size: 12px;
color: var(--ink-3);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.table-wrapper {
width: 100%;
overflow-x: auto;
border-radius: var(--r-md);
box-shadow: var(--shadow-1);
}
.data-table {
width: 100%;
background: var(--surface);
border-collapse: separate;
border-spacing: 0;
font-size: 14px;
}
.data-table th,
.data-table td {
padding: 12px 16px;
text-align: left;
border-bottom: 1px solid var(--line-soft);
white-space: nowrap;
}
.data-table td.col-text {
max-width: 250px;
overflow: hidden;
text-overflow: ellipsis;
}
.budget-table {
table-layout: fixed;
min-width: 1450px;
}
.budget-table td.col-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.data-table th {
background: var(--surface-2);
font-weight: 600;
color: var(--ink-2);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
position: sticky;
top: 0;
z-index: 3;
}
.data-table tbody tr:hover {
background: var(--surface-2);
}
.split-table {
display: flex;
border-radius: var(--r-md);
box-shadow: var(--shadow-1);
background: var(--surface);
overflow: hidden;
}
.split-table-fixed {
flex-shrink: 0;
position: relative;
z-index: 2;
background: var(--surface);
border-right: 1px solid var(--line);
}
.split-table-fixed::after {
content: '';
position: absolute;
top: 0;
right: -7px;
bottom: 0;
width: 6px;
background: linear-gradient(to right, var(--wash), transparent);
pointer-events: none;
z-index: 3;
}
.split-table-scroll {
flex: 1;
overflow-x: auto;
min-width: 0;
}
.split-table-fixed .data-table td:first-child {
overflow: hidden;
}
.drill-name-wrap {
display: flex;
align-items: center;
gap: 4px;
}
.drill-name-wrap .drill-link {
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
min-width: 0;
}
.drill-name-wrap .dynamics-btn {
flex-shrink: 0;
}
.drill-parent-name {
overflow: hidden;
text-overflow: ellipsis;
}
.col-resize-handle {
position: absolute;
top: 0;
right: 0;
width: 6px;
bottom: 0;
cursor: col-resize;
z-index: 10;
opacity: 0;
transition: opacity 0.15s;
}
.col-resize-handle::after {
content: '';
position: absolute;
top: 25%;
bottom: 25%;
right: 2px;
width: 2px;
background: var(--fill-3);
border-radius: 1px;
}
.data-table th:hover .col-resize-handle,
.col-resize-handle.active {
opacity: 1;
}
.col-resize-handle.active::after {
background: var(--accent-fill);
}
body.col-resizing,
body.col-resizing * {
cursor: col-resize !important;
user-select: none !important;
-webkit-user-select: none !important;
}
.split-table-fixed .data-table {
width: auto;
}
.split-table .data-table tbody tr.row-hover {
background: var(--surface-2);
}
.split-table .data-table tbody tr.row-drr-good.row-hover {
background: var(--success-bg-strong) !important;
}
.split-table .data-table tbody tr.row-drr-bad.row-hover {
background: var(--danger-bg) !important;
}
.data-table tbody tr:last-child td {
border-bottom: none;
}
.data-table td:nth-child(n+2),
.data-table th:nth-child(n+2) {
text-align: left;
}
.data-table td:first-child,
.data-table th:first-child {
text-align: left;
}
.compact-table {
font-size: 13px;
}
.compact-table th,
.compact-table td {
padding: 8px 8px;
}
.creatives-table .campaign-row {
font-weight: 600;
cursor: pointer;
background: var(--surface);
}
.creatives-table .campaign-row:hover {
background: var(--surface-2);
}
.creatives-table .banner-row {
background: var(--surface-2);
}
.creatives-table .banner-row td:first-child {
padding-left: 32px;
}
.expand-icon {
display: inline-block;
width: 16px;
transition: transform 0.2s;
color: var(--ink-3);
}
.badge {
display: inline-block;
background: var(--fill-2);
color: var(--ink-2);
font-size: 11px;
font-weight: normal;
padding: 2px 8px;
border-radius: var(--r-lg);
margin-left: 8px;
}
.badge-success-none {
background: var(--fill-2);
color: var(--ink-2);
}
.badge-success-some {
background: var(--accent-bg);
color: var(--accent);
}
.badge-success-high {
background: var(--accent-fill);
color: var(--on-fill);
}
.badge-success-few {
background: transparent;
color: var(--ink-2);
border: 1px dashed var(--line-strong);
padding: 1px 7px;
}
.btn {
display: inline-block;
padding: 8px 16px;
background: var(--fill-2);
color: var(--ink);
border: none;
border-radius: var(--r-sm);
cursor: pointer;
font-size: 14px;
text-decoration: none;
}
.btn:hover {
background: var(--fill-2);
}
.btn-primary {
background: var(--accent-fill);
color: var(--on-fill);
}
.btn-primary:hover {
background: var(--accent-fill);
}
.btn-danger {
background: var(--danger-fill);
color: var(--on-fill);
}
.btn-danger:hover {
background: var(--danger-fill);
}
.btn-small {
padding: 4px 10px;
font-size: 12px;
}
.form-inline {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 24px;
background: var(--surface);
padding: 16px;
border-radius: var(--r-md);
box-shadow: var(--shadow-1);
}
.form-inline label {
display: flex;
align-items: center;
gap: 8px;
color: var(--ink-2);
}
.form-inline input[type="text"],
.form-inline input[type="number"],
.form-inline input[type="date"] {
padding: 8px 12px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
font-size: 14px;
}
.alert {
padding: 12px 16px;
border-radius: var(--r-sm);
margin-bottom: 16px;
}
.alert.success {
background: var(--success-bg);
color: var(--success);
border: 1px solid var(--success-line);
}
.alert.error {
background: var(--danger-bg);
color: var(--danger);
border: 1px solid var(--danger-line);
}
.text-muted {
color: var(--ink-3);
}
.text-success {
color: var(--success);
}
.text-warning {
color: var(--warning);
}
.text-danger {
color: var(--danger);
}
.indent {
color: var(--ink-2);
}
#sync-status {
margin-top: 8px;
font-size: 13px;
color: var(--ink-2);
}
h2 {
font-size: 18px;
font-weight: 600;
color: var(--ink);
margin: 24px 0 16px;
}
h2:first-of-type {
margin-top: 0;
}
.row-good-drr {
background: var(--success-bg) !important;
}
.row-inefficient {
background: var(--danger-bg) !important;
}
.row-total {
font-weight: 700;
background: var(--surface-3) !important;
border-top: 2px solid var(--line-strong);
}
.row-total td {
border-bottom: 2px solid var(--line-strong);
}
.row-unattributed {
background: var(--warning-bg) !important;
font-style: italic;
}
.status-badge {
display: inline-block;
padding: 2px 8px;
border-radius: var(--r-lg);
font-size: 12px;
font-weight: 500;
white-space: nowrap;
}
.status-badge-active {
background: var(--success-bg);
color: var(--success);
}
.status-badge-blocked {
background: var(--danger-bg);
color: var(--danger);
}
.status-icon {
display: inline-block;
width: 12px;
height: 12px;
vertical-align: -2px;
margin-right: 3px;
}
.pause-icon {
display: inline-block;
width: 10px;
height: 10px;
vertical-align: -1px;
margin-right: 3px;
}
.status-badge-deleted {
background: var(--surface-2);
color: var(--ink-2);
}
.status-badge-other {
background: var(--surface-2);
color: var(--ink-2);
}
.badge-cbo {
display: inline-block;
background: var(--accent-fill);
color: var(--on-fill);
font-size: 10px;
font-weight: 600;
padding: 2px 6px;
border-radius: var(--r-xs);
margin-left: 6px;
}
.badge-abo {
display: inline-block;
background: var(--success-fill);
color: var(--on-fill);
font-size: 10px;
font-weight: 600;
padding: 2px 6px;
border-radius: var(--r-xs);
margin-left: 6px;
}
.group-row {
background: var(--surface-2) !important;
font-weight: 500;
}
.group-row td:first-child {
padding-left: 24px;
}
.banner-row td:first-child {
padding-left: 48px;
}
@media (max-width: 1400px) {
.data-table {
font-size: 13px;
}
.data-table th,
.data-table td {
padding: 10px 12px;
}
}
@media (max-width: 1200px) {
.data-table {
font-size: 12px;
}
.data-table th,
.data-table td {
padding: 8px 10px;
}
}
@media (max-width: 1024px) {
.data-table {
font-size: 11px;
}
.data-table th,
.data-table td {
padding: 6px 8px;
}
}
@media (max-width: 768px) {
.data-table {
font-size: 10px;
}
.data-table th,
.data-table td {
padding: 4px 6px;
}
}
.user-info {
display: flex;
align-items: center;
gap: 8px;
font-size: 10px;
}
.user-name {
color: rgba(255, 255, 255, 0.5);
}
.logout-link {
color: var(--danger);
text-decoration: none;
font-size: 10px;
}
.logout-link:hover {
text-decoration: underline;
}
.account-switcher {
position: relative;
}
.account-trigger {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 10px 6px 12px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: var(--r-md);
color: var(--on-fill);
font-size: 13px;
font-family: inherit;
cursor: pointer;
white-space: nowrap;
transition: background 0.2s, border-color 0.2s;
}
.account-trigger:hover {
background: rgba(255, 255, 255, 0.18);
border-color: rgba(255, 255, 255, 0.25);
}
.account-trigger.open {
background: rgba(255, 255, 255, 0.22);
border-color: rgba(255, 255, 255, 0.35);
}
.account-trigger-text {
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 500;
}
.account-trigger-arrow {
color: rgba(255, 255, 255, 0.7);
flex-shrink: 0;
transition: transform 0.2s;
}
.account-trigger.open .account-trigger-arrow {
transform: rotate(180deg);
}
.account-popup {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 1000;
min-width: 240px;
max-width: 320px;
max-height: 70vh;
overflow-y: auto;
background: var(--surface);
color: var(--ink);
border-radius: var(--r-lg);
box-shadow: var(--shadow-pop);
padding: 6px;
display: none;
}
.account-popup.show {
display: block;
animation: fadeIn 0.15s ease-out;
}
.account-option {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
padding: 8px 10px;
background: transparent;
border: none;
border-radius: var(--r-md);
cursor: pointer;
font-size: 13px;
color: var(--ink);
text-align: left;
font-family: inherit;
transition: background 0.1s;
}
.account-option:hover {
background: var(--surface-2);
}
.account-option.active {
color: var(--accent);
font-weight: 500;
}
.account-option-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.account-option-check {
color: var(--accent);
flex-shrink: 0;
opacity: 0;
}
.account-option.active .account-option-check {
opacity: 1;
}
.account-option-sep {
height: 1px;
margin: 6px 8px;
background: var(--surface-3);
}
.account-multiselect-popup {
min-width: 300px;
padding-bottom: 0;
}
.account-quick-option {
font-weight: 500;
}
.account-multi-option {
display: flex;
align-items: center;
gap: 4px;
border-radius: var(--r-md);
transition: background 0.1s;
}
.account-multi-option:hover {
background: var(--surface-2);
}
.account-multi-label {
min-width: 0;
flex: 1;
padding: 8px 6px 8px 10px;
overflow: hidden;
background: transparent;
border: 0;
color: var(--ink);
cursor: pointer;
font: inherit;
font-size: 13px;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
}
.account-multi-check {
display: grid;
width: 26px;
height: 26px;
margin-right: 6px;
padding: 0;
place-items: center;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-sm);
color: var(--on-fill);
cursor: pointer;
flex: 0 0 auto;
}
.account-multi-option.active .account-multi-check {
background: var(--accent-fill);
border-color: var(--accent);
}
.account-multiselect-footer {
position: sticky;
bottom: 0;
margin: 6px -6px 0;
padding: 10px 12px;
background: var(--surface);
border-top: 1px solid var(--line);
}
.account-multiselect-apply {
width: 100%;
padding: 8px 14px;
background: var(--accent-fill);
border: 0;
border-radius: var(--r-md);
color: var(--on-fill);
cursor: pointer;
font: inherit;
font-size: 13px;
font-weight: 600;
}
.account-multiselect-apply:hover {
background: var(--accent-fill);
}
.account-selection-error .account-multiselect-footer::before {
display: block;
margin-bottom: 8px;
color: var(--danger);
content: 'Выберите хотя бы один аккаунт';
font-size: 12px;
}
.data-table th.col-left,
.data-table td.col-text {
text-align: left !important;
}
.data-table th.col-center,
.data-table td.col-center {
text-align: center !important;
}
.row-drr-good {
background: var(--success-bg) !important;
}
.row-drr-good:hover {
background: var(--success-bg-strong) !important;
}
.row-drr-bad {
background: var(--danger-bg) !important;
}
.row-drr-bad:hover {
background: var(--danger-bg) !important;
}
.row-no-active-ads,
.row-no-active-ads:hover {
background: var(--warning-bg) !important;
}
.status-badge-warning {
display: inline-flex;
align-items: center;
margin: 3px 0 0 6px;
background: var(--warning-bg);
color: var(--warning);
border: 1px solid var(--warning);
}
.group-delivery-filter {
margin: -8px 0 12px;
}
.group-delivery-filter .preset-btn-filter.active {
background: var(--warning-bg);
border-color: var(--warning);
color: var(--warning);
font-weight: 600;
}
.copyable-group {
cursor: pointer;
position: relative;
border-bottom: 1px dashed var(--line-strong);
transition: color 0.2s;
}
.copyable-group:hover {
color: var(--accent);
}
.copy-toast {
position: fixed;
top: 20px;
right: 20px;
background: var(--success-fill);
color: var(--on-fill);
padding: 10px 20px;
border-radius: var(--r-md);
font-size: 13px;
z-index: 9999;
opacity: 0;
transform: translateY(-10px);
transition: opacity 0.3s, transform 0.3s;
pointer-events: none;
}
.copy-toast.show {
opacity: 1;
transform: translateY(0);
}
.drill-tabs {
display: flex;
gap: 0;
border-bottom: 1px solid var(--line);
margin-bottom: 16px;
margin-top: 16px;
}
.drill-tab {
padding: 10px 20px;
font-size: 15px;
font-weight: 500;
color: var(--ink-2);
text-decoration: none;
border-bottom: 2px solid transparent;
cursor: pointer;
transition: color 0.15s, border-color 0.15s;
}
.drill-tab:hover {
color: var(--ink);
}
.drill-tab.active {
color: var(--ink);
border-bottom-color: var(--ink-2);
font-weight: 600;
}
.drill-search-wrap {
margin-left: auto;
position: relative;
display: flex;
align-items: center;
}
.drill-search-icon {
position: absolute;
left: 12px;
color: var(--ink-3);
pointer-events: none;
}
.drill-search-input {
padding: 8px 12px 8px 36px;
border: 1px solid var(--line);
border-radius: var(--r-md);
font-size: 14px;
width: 250px;
background: var(--surface-2);
outline: none;
transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.drill-search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-ring);
background: var(--surface);
}
.drill-search-input::placeholder {
color: var(--ink-3);
}
.copyable-id {
cursor: pointer;
border-bottom: 1px dashed var(--line-strong);
transition: color 0.2s;
white-space: nowrap;
}
.copyable-id:hover {
color: var(--accent);
}
.copyable-id.copied {
color: var(--ink-3);
border-bottom-color: var(--line);
}
.copyable-id.copied::after {
content: ' ✓';
color: var(--success);
font-size: 0.85em;
}
.ag-id-badge {
font-size: 0.75em;
color: var(--ink-3);
background: var(--surface-3);
padding: 1px 5px;
border-radius: var(--r-xs);
margin-left: 4px;
border-bottom: 1px dashed var(--line-strong);
vertical-align: middle;
}
.ag-id-badge:hover {
color: var(--accent);
background: var(--surface-3);
}
.ag-id-badge.copied {
color: var(--ink-3);
background: var(--surface-2);
border-bottom-color: var(--line);
}
.btn-reset-copied {
background: none;
border: 1px solid var(--line);
border-radius: var(--r-sm);
color: var(--ink-3);
font-size: 0.75rem;
padding: 2px 8px;
cursor: pointer;
margin-left: 8px;
vertical-align: middle;
}
.btn-reset-copied:hover {
border-color: var(--line-strong);
color: var(--ink-2);
}
.drill-parent-name {
font-size: 12px;
color: var(--ink-3);
margin-top: 2px;
line-height: 1.3;
}
.drill-link {
color: var(--accent);
text-decoration: none;
}
.drill-link:visited {
color: var(--accent);
}
.drill-link:hover {
color: var(--accent);
}
.breadcrumbs {
margin-bottom: 12px;
font-size: 13px;
color: var(--ink-2);
}
.breadcrumb-link {
color: var(--accent);
text-decoration: none;
}
.breadcrumb-link:visited {
color: var(--accent);
}
.breadcrumb-link:hover {
text-decoration: underline;
}
.breadcrumb-sep {
margin: 0 4px;
color: var(--ink-3);
}
.breadcrumb-current {
color: var(--ink);
font-weight: 500;
}
.data-table th.sort-asc::after,
.data-table th.sort-desc::after {
margin-left: 4px;
font-size: 10px;
}
.data-table th.sort-asc::after {
content: '▲';
}
.data-table th.sort-desc::after {
content: '▼';
}
.data-table thead th {
cursor: pointer;
user-select: none;
}
.data-table thead th:hover {
background: var(--wash);
}
.preset-bar {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 16px;
padding: 12px 16px;
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: var(--r-md);
}
.preset-categories-row {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: nowrap;
min-width: 0;
}
.preset-category {
display: flex;
align-items: center;
gap: 8px;
}
.preset-category-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
white-space: nowrap;
}
.preset-category-red .preset-category-label {
color: var(--danger);
}
.preset-category-green .preset-category-label {
color: var(--success);
}
.preset-category-diag .preset-category-label {
color: var(--accent);
}
.preset-buttons {
display: flex;
gap: 4px;
}
.preset-btn-filter {
display: inline-block;
padding: 4px 10px;
font-size: 12px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--surface);
color: var(--ink);
text-decoration: none;
cursor: pointer;
transition: all 0.15s;
white-space: nowrap;
}
.preset-btn-filter:hover {
border-color: var(--line-strong);
background: var(--surface-2);
}
.preset-category-red .preset-btn-filter.active {
background: var(--danger-bg);
border-color: var(--danger);
color: var(--danger);
font-weight: 600;
}
.preset-category-green .preset-btn-filter.active {
background: var(--success-bg);
border-color: var(--success);
color: var(--success);
font-weight: 600;
}
.preset-category-diag .preset-btn-filter.active {
background: var(--surface-2);
border-color: var(--accent);
color: var(--accent);
font-weight: 600;
}
.preset-controls {
display: flex;
align-items: center;
gap: 12px;
}
.preset-threshold {
display: flex;
align-items: center;
gap: 4px;
}
.preset-threshold-label {
font-size: 12px;
color: var(--ink-2);
white-space: nowrap;
}
.preset-threshold-input {
width: 80px;
padding: 4px 8px;
font-size: 13px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
text-align: center;
background: var(--surface);
}
.preset-threshold-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-ring);
}
.preset-threshold-unit {
font-size: 12px;
color: var(--ink-3);
}
.preset-default-btn {
padding: 4px 10px;
font-size: 12px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
background: var(--surface);
color: var(--ink-2);
cursor: pointer;
white-space: nowrap;
}
.preset-default-btn:hover {
background: var(--surface-2);
}
.preset-reset-btn {
padding: 4px 10px;
font-size: 12px;
border: 1px solid var(--danger);
border-radius: var(--r-sm);
background: var(--surface);
color: var(--danger);
text-decoration: none;
cursor: pointer;
white-space: nowrap;
}
.preset-reset-btn:hover {
background: var(--danger-bg);
}
.cf-bar {
margin-bottom: 16px;
}
.cf-toggle {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 7px 12px;
font-size: 13px;
font-weight: 600;
color: var(--ink);
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: var(--r-md);
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
}
.cf-toggle:hover {
background: var(--surface-2);
border-color: var(--line);
}
.cf-toggle svg {
color: var(--ink-2);
}
.cf-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
font-size: 11px;
font-weight: 700;
color: var(--on-fill);
background: var(--accent-fill);
border-radius: var(--r-lg);
}
.cf-chevron {
transition: transform 0.2s;
}
.cf-toggle[aria-expanded="true"] .cf-chevron {
transform: rotate(180deg);
}
.cf-panel {
margin-top: 8px;
padding: 14px 16px;
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: var(--r-md);
display: flex;
flex-direction: column;
gap: 14px;
}
.cf-panel[hidden] {
display: none;
}
.cf-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 10px 20px;
}
.cf-field {
display: flex;
align-items: center;
gap: 6px;
}
.cf-field-label {
font-size: 12px;
color: var(--ink-2);
min-width: 62px;
}
.cf-input {
width: 84px;
padding: 5px 8px;
font-size: 13px;
border: 1px solid var(--line);
border-radius: var(--r-sm);
text-align: center;
background: var(--surface);
}
.cf-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px var(--accent-ring);
}
.cf-input::-webkit-outer-spin-button,
.cf-input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.cf-input {
-moz-appearance: textfield;
}
.cf-dash {
color: var(--ink-3);
font-size: 13px;
}
.cf-unit {
font-size: 12px;
color: var(--ink-3);
min-width: 26px;
}
.cf-statuses {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px 14px;
padding-top: 4px;
border-top: 1px solid var(--line);
}
.cf-status-opt {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 13px;
color: var(--ink);
cursor: pointer;
}
.cf-status-opt input {
cursor: pointer;
}
.cf-actions {
display: flex;
align-items: center;
gap: 10px;
}
.cf-apply {
padding: 6px 16px;
font-size: 13px;
font-weight: 600;
color: var(--on-fill);
background: var(--accent-fill);
border: 1px solid var(--accent);
border-radius: var(--r-md);
cursor: pointer;
}
.cf-apply:hover {
background: var(--accent-fill);
border-color: var(--accent);
}
.cf-reset {
padding: 6px 14px;
font-size: 13px;
color: var(--danger);
background: var(--surface);
border: 1px solid var(--danger);
border-radius: var(--r-md);
cursor: pointer;
}
.cf-reset:hover {
background: var(--danger-bg);
}
.cf-reset[hidden] {
display: none;
}
.summary-cards {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}
.metric-card {
flex: 1;
min-width: 110px;
padding: 10px 12px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-md);
text-align: center;
}
.metric-value {
font-size: 16px;
font-weight: 700;
color: var(--ink);
}
.metric-label {
font-size: 11px;
color: var(--ink-3);
margin-top: 2px;
}
.metric-card.card-good {
border-color: var(--success);
background: var(--success-bg);
}
.metric-card.card-bad {
border-color: var(--danger);
background: var(--danger-bg);
}
.metric-card.card-warn {
border-color: var(--warning);
background: var(--warning-bg);
}
.metric-card.card-muted {
border-color: var(--line);
background: var(--surface-2);
}
.creators-table .creator-row {
font-weight: 600;
cursor: pointer;
background: var(--surface);
}
.creators-table .creator-row:hover {
background: var(--surface-2);
}
.creative-row {
background: var(--surface-2);
}
.creative-row td:first-child {
padding-left: 32px;
}
.group-detail-row {
background: var(--surface-3);
}
.group-detail-row td:first-child {
padding-left: 56px;
}
.group-vk-link {
color: var(--accent);
text-decoration: none;
}
.group-vk-link:visited {
color: var(--accent);
}
.group-vk-link:hover {
color: var(--accent);
text-decoration: underline;
}
.payment-cell {
color: var(--success);
font-weight: 700;
}
.metric-card.card-payment {
border-color: var(--success);
background: var(--success-bg);
}
.info-badge {
display: inline-block;
padding: 6px 14px;
background: var(--surface-2);
border: 1px solid var(--accent-line);
border-radius: var(--r-md);
color: var(--accent);
font-size: 13px;
font-weight: 500;
margin-bottom: 16px;
}
.dynamics-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
padding: 0;
margin-left: 6px;
border: none;
border-radius: var(--r-sm);
background: transparent;
color: var(--ink-3);
cursor: pointer;
vertical-align: middle;
transition: background 0.15s, color 0.15s;
}
.dynamics-btn:hover {
background: var(--accent-fill);
color: var(--on-fill);
}
.dynamics-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.4);
z-index: 2000;
}
.dynamics-overlay.open {
display: block;
}
.dynamics-drawer {
position: fixed;
top: 0;
right: 0;
width: 85vw;
max-width: 1500px;
height: 100vh;
background: var(--surface);
z-index: 2001;
transform: translateX(100%);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-pop);
}
.dynamics-drawer.open {
transform: translateX(0);
}
.dynamics-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 1px solid var(--line);
flex-shrink: 0;
}
.dynamics-title {
font-size: 16px;
font-weight: 600;
color: var(--ink);
}
.dynamics-subtitle {
font-size: 12px;
color: var(--ink-3);
margin-top: 2px;
}
.dynamics-close {
width: 32px;
height: 32px;
border: none;
border-radius: var(--r-md);
background: transparent;
font-size: 24px;
color: var(--ink-2);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s;
}
.dynamics-close:hover {
background: var(--surface-2);
}
.dynamics-controls {
display: flex;
gap: 4px;
padding: 12px 20px;
border-bottom: 1px solid var(--line);
flex-shrink: 0;
}
.dynamics-group-btn {
padding: 6px 14px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--surface);
color: var(--ink);
font-size: 13px;
cursor: pointer;
transition: all 0.15s;
}
.dynamics-group-btn:hover {
background: var(--surface-3);
}
.dynamics-group-btn.active {
background: var(--accent-fill);
color: var(--on-fill);
border-color: var(--accent);
}
.dynamics-body {
flex: 1;
overflow-y: auto;
padding: 16px 20px;
}
.dynamics-loading {
text-align: center;
padding: 40px;
color: var(--ink-3);
font-size: 14px;
}
.dynamics-error {
text-align: center;
padding: 40px;
color: var(--danger);
font-size: 14px;
}
.dynamics-table-wrap {
overflow-x: auto;
}
.dynamics-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.dynamics-table th,
.dynamics-table td {
padding: 8px 10px;
text-align: left;
border-bottom: 1px solid var(--line-soft);
white-space: nowrap;
}
.dynamics-table th {
background: var(--surface-2);
font-weight: 600;
color: var(--ink-2);
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
position: sticky;
top: 0;
}
.dynamics-table tbody tr:hover {
background: var(--surface-2);
}
.dynamics-table .row-total {
font-weight: 700;
background: var(--surface-3) !important;
}
.dynamics-table .row-total td {
border-top: 2px solid var(--line-strong);
border-bottom: 2px solid var(--line-strong);
}
@media (max-width: 768px) {
.dynamics-drawer {
width: 100vw;
max-width: none;
}
}
.discrepancy-link {
padding: 10px 16px;
border: 1px solid var(--line);
background: var(--surface);
color: var(--ink);
font-size: 14px;
text-decoration: none;
border-radius: var(--r-md);
margin-left: auto;
white-space: nowrap;
}
.discrepancy-link:hover {
background: var(--surface-3);
}
.disc-good { color: var(--success); font-weight: 600; }
.disc-warn { color: var(--warning); font-weight: 600; }
.disc-bad  { color: var(--danger); font-weight: 600; }
.empty-state {
text-align: center;
padding: 60px 20px;
color: var(--ink-3);
font-size: 16px;
background: var(--surface-2);
border: 1px dashed var(--line);
border-radius: var(--r-md);
margin-top: 16px;
}
.vscroll-viewport {
max-height: calc(100vh - 320px);
overflow: auto;
border-radius: var(--r-md);
box-shadow: var(--shadow-1);
background: var(--surface);
}
.drill-table {
border-collapse: separate;
border-spacing: 0;
--col0-width: 200px;
--col1-width: 90px;
--col2-width: 110px;
--col1-left: 200px;
--col2-left: 290px;
}
.drill-table tbody tr {
background: var(--surface);
}
.drill-table .sticky-col {
position: sticky;
z-index: 2;
background: inherit;
}
.drill-table .sticky-col-0 {
left: 0;
width: var(--col0-width);
min-width: 120px;
max-width: 400px;
}
.drill-table .sticky-col-1 {
left: var(--col1-left);
width: var(--col1-width);
min-width: 60px;
}
.drill-table .sticky-col-2 {
left: var(--col2-left);
width: var(--col2-width);
min-width: 80px;
}
.drill-table .sticky-col-2::after {
content: '';
position: absolute;
top: 0; right: -6px; bottom: 0;
width: 6px;
background: linear-gradient(to right, var(--wash), transparent);
pointer-events: none;
}
.drill-table thead th {
position: sticky;
top: 0;
z-index: 4;
background: var(--surface);
}
.drill-table thead th.sticky-col { z-index: 5; }
.drill-table .row-total td {
position: sticky;
z-index: 3;
background: inherit;
}
.drill-table .row-total td.sticky-col { z-index: 4; }
.drill-table tbody tr.row-drr-good { background: var(--success-bg); }
.drill-table tbody tr.row-drr-bad { background: var(--danger-bg); }
.drill-table tbody tr:hover { background: var(--surface-2); }
.drill-table tbody tr.row-drr-good:hover { background: var(--success-bg-strong) !important; }
.drill-table tbody tr.row-drr-bad:hover { background: var(--danger-bg) !important; }
.drill-table tbody tr:hover > .sticky-col { background: var(--surface-2); }
.drill-table tbody tr.row-drr-good:hover > .sticky-col { background: var(--success-bg-strong); }
.drill-table tbody tr.row-drr-bad:hover > .sticky-col { background: var(--danger-bg); }
.drill-table td,
.drill-table th {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.drill-table .sticky-col-0 {
white-space: normal;
overflow: visible;
}
.drill-table.vscroll-active tbody tr:not(.row-total):not(.vscroll-spacer) {
height: 40px;
}
.drill-table.vscroll-active tbody td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.drill-table.vscroll-active .drill-parent-name {
font-size: 11px;
color: var(--ink-3);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-height: 14px;
line-height: 14px;
}
.drill-table.vscroll-active .sticky-col-0 {
white-space: normal;
line-height: 1.2;
padding-top: 4px;
padding-bottom: 4px;
}
.vscroll-spacer td {
padding: 0 !important;
border: none !important;
line-height: 0;
}
.drill2-wrapper {
overflow-x: auto;
border-radius: var(--r-md);
box-shadow: var(--shadow-1);
background: var(--surface);
}
.drill2-table {
font-size: 12px;
border-collapse: separate;
border-spacing: 0;
}
.drill2-table th,
.drill2-table td {
padding: 6px 10px;
}
.drill2-table td:first-child {
max-width: 280px;
overflow: hidden;
text-overflow: ellipsis;
}
.drill2-table td:first-child .drill-parent-name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.drill2-table thead th {
position: sticky;
top: 0;
z-index: 3;
background: var(--surface-2);
}
.drill2-table .row-total td {
position: sticky;
z-index: 2;
background: var(--surface-3);
}
.drill2-table tbody tr.row-drr-good { background: var(--success-bg); }
.drill2-table tbody tr.row-drr-bad { background: var(--danger-bg); }
.drill2-table tbody tr:hover { background: var(--surface-2); }
.drill2-table tbody tr.row-drr-good:hover { background: var(--success-bg-strong) !important; }
.drill2-table tbody tr.row-drr-bad:hover { background: var(--danger-bg) !important; }
.drill2-table tbody tr { background: var(--surface); }
.drill2-table tbody tr.row-total { background: var(--surface-3); }
.info-tip {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
margin-left: 4px;
border-radius: 50%;
background: var(--fill-3);
color: var(--on-fill);
font-size: 10px;
font-weight: 700;
cursor: help;
vertical-align: middle;
position: relative;
line-height: 1;
text-transform: none;
}
.info-tip:hover { background: var(--fill-3); }
.info-tip-popup {
display: none;
position: fixed;
top: 0;
right: 0;
left: auto;
background: var(--surface);
color: var(--ink);
text-align: left;
font-weight: 400;
font-size: 13px;
line-height: 1.45;
padding: 12px 14px;
border-radius: var(--r-md);
border: 1px solid var(--line);
box-shadow: var(--shadow-pop);
width: 260px;
z-index: 100;
white-space: normal;
letter-spacing: normal;
}
.info-tip:hover .info-tip-popup { display: block; }
.info-tip-title {
display: block;
font-weight: 600;
font-size: 14px;
margin-bottom: 4px;
color: var(--ink);
}
.info-tip-popup::before {
content: "";
position: absolute;
bottom: 100%;
right: 1px;
left: auto;
border: 6px solid transparent;
border-bottom-color: var(--line-soft);
}
.group-select-cb {
flex-shrink: 0;
width: 15px;
height: 15px;
margin: 0 4px 0 0;
cursor: pointer;
accent-color: var(--accent);
align-self: center;
}
.gm-selall {
display: inline-flex;
align-items: center;
margin-right: 7px;
cursor: pointer;
}
.gm-selall input {
width: 15px;
height: 15px;
cursor: pointer;
accent-color: var(--accent);
}
.group-action-bar {
position: fixed;
left: 50%;
bottom: 24px;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 12px;
background: var(--fill-strong);
color: var(--on-fill);
padding: 10px 14px;
border-radius: var(--r-lg);
box-shadow: var(--shadow-pop);
z-index: 9998;
font-size: 14px;
max-width: calc(100vw - 32px);
flex-wrap: wrap;
}
.group-action-bar[hidden] { display: none; }
.group-action-bar .gm-info { margin-right: 4px; white-space: nowrap; }
.group-action-bar .gm-info b { font-size: 15px; }
.group-action-bar .gm-budget { color: var(--ink-4); }
.gm-btn {
border: none;
border-radius: var(--r-md);
padding: 8px 14px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
color: var(--on-fill);
transition: filter 0.15s, opacity 0.15s;
}
.gm-btn:hover { filter: brightness(1.08); }
.gm-btn:disabled { opacity: 0.55; cursor: default; filter: none; }
.gm-btn-stop  { background: var(--danger-fill); }
.gm-btn-start { background: var(--success-fill); }
.gm-btn-clear { background: transparent; color: var(--ink-4); padding: 8px 8px; font-weight: 500; }
.gm-btn-clear:hover { color: var(--on-fill); filter: none; }
.group-action-bar .gm-budget-edit {
display: flex;
align-items: center;
gap: 6px;
padding-left: 12px;
margin-left: 2px;
border-left: 1px solid var(--ink-2);
}
.gm-select, .gm-input {
border: 1px solid var(--ink-2);
border-radius: var(--r-md);
background: var(--fill-strong);
color: var(--on-fill);
font-size: 13px;
padding: 7px 8px;
height: 34px;
box-sizing: border-box;
}
.gm-select { cursor: pointer; }
.gm-input { width: 84px; }
.gm-input::placeholder { color: var(--ink-2); }
.gm-select:focus, .gm-input:focus { outline: none; border-color: var(--accent); }
.gm-btn-budget { background: var(--accent-fill); }
.gm-toast {
position: fixed;
left: 50%;
bottom: 84px;
transform: translateX(-50%) translateY(10px);
background: var(--fill-strong);
color: var(--on-fill);
padding: 10px 18px;
border-radius: var(--r-md);
font-size: 13px;
z-index: 9999;
opacity: 0;
transition: opacity 0.25s, transform 0.25s;
pointer-events: none;
box-shadow: var(--shadow-pop);
}
.gm-toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
.gm-toast.gm-toast-report {
white-space: pre-line;
text-align: left;
max-width: min(720px, calc(100vw - 32px));
}
.gm-toast.gm-toast-report.show {
pointer-events: auto;
cursor: pointer;
}
.budget-cell .budget-display {
color: var(--accent);
cursor: pointer;
border-bottom: 1px dashed var(--accent-line);
padding-bottom: 1px;
}
.budget-cell .budget-display:hover {
color: var(--accent);
border-bottom-color: var(--accent);
border-bottom-style: solid;
}
.budget-edit-wrap { display: inline-flex; align-items: center; gap: 4px; }
.budget-input {
width: 84px;
padding: 2px 5px;
border: 1px solid var(--accent);
border-radius: var(--r-sm);
font-size: 13px;
font-family: inherit;
}
.budget-save, .budget-cancel {
border: none;
border-radius: var(--r-sm);
cursor: pointer;
font-size: 12px;
padding: 3px 7px;
line-height: 1.1;
color: var(--on-fill);
}
.budget-save { background: var(--success-fill); }
.budget-cancel { background: var(--fill-3); }
.budget-save:disabled, .budget-cancel:disabled, .budget-input:disabled { opacity: 0.6; cursor: default; }
.cohort-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:18px 0 12px}.cohort-heading h1{font-size:22px;margin:0 0 5px}.cohort-heading p{color:var(--ink-2);font-size:14px;margin:0}.cohort-back{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);color:var(--ink);font-size:13px;padding:9px 13px;text-decoration:none;white-space:nowrap}.cohort-note{background:var(--surface-2);border:1px solid var(--accent-line);border-radius:var(--r-lg);color:var(--accent);font-size:13px;line-height:1.5;margin-bottom:16px;padding:12px 14px}.cohort-summary{margin-bottom:16px}.cohort-summary-sub{color:var(--ink-2);font-size:12px;margin-top:5px}.cohort-search{margin:0 0 10px;width:min(360px,100%)}.cohort-search .drill-search-input{width:100%}.cohort-table-wrap{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:auto}.cohort-table{min-width:1100px;width:100%}.cohort-table th{background:var(--surface-2);position:sticky;top:0;z-index:1}.cohort-table td{vertical-align:top}.cohort-name{min-width:230px}.cohort-name>a{display:block;font-weight:600;max-width:280px;overflow:hidden;text-overflow:ellipsis}.cohort-name>span{color:var(--ink-2);display:block;font-size:11px;margin-top:5px}.cohort-cell{border-left:3px solid transparent;min-width:205px}.cohort-cell.good{border-left-color:var(--success)}.cohort-cell.warn{border-left-color:var(--warning)}.cohort-cell.bad,.cohort-cell.no-sale{border-left-color:var(--danger)}.cohort-drr{font-size:14px;font-weight:700;margin-bottom:7px}.cohort-cell.good .cohort-drr{color:var(--success)}.cohort-cell.warn .cohort-drr{color:var(--warning)}.cohort-cell.bad .cohort-drr,.cohort-cell.no-sale .cohort-drr{color:var(--danger)}.cohort-details{color:var(--ink-2);display:grid;font-size:11px;gap:3px;line-height:1.35}.cohort-unavailable{color:var(--ink-3);min-width:205px}.cohort-unavailable strong,.cohort-unavailable span{display:block}.cohort-unavailable span{font-size:11px;margin-top:5px}.cohort-decision{min-width:155px}.cohort-badge{border-radius:var(--r-pill);display:inline-block;font-size:11px;font-weight:700;padding:5px 8px}.cohort-badge.scale{background:var(--success-bg);color:var(--success)}.cohort-badge.watch{background:var(--warning-bg);color:var(--warning)}.cohort-badge.reduce{background:var(--danger-bg);color:var(--danger)}.cohort-badge.low_data,.cohort-badge.early{background:var(--surface-2);color:var(--ink-2)}.cohort-decision small{color:var(--ink-2);display:block;font-size:10px;margin-top:6px}
@media(max-width:700px){.cohort-heading{align-items:stretch;flex-direction:column}.cohort-back{text-align:center}.cohort-table-wrap{margin-left:-12px;margin-right:-12px;border-radius:0}.cohort-heading h1{font-size:19px}.cohort-note{font-size:12px}}
.cohort-table th:first-child,.cohort-table td:first-child{background:var(--surface);left:0;position:sticky;z-index:2}.cohort-table th:first-child{background:var(--surface-2);z-index:3}.cohort-table td:first-child{box-shadow:var(--shadow-1)}.cohort-badge.inactive{background:var(--surface-2);color:var(--ink-2)}
.drill-status-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
margin: 12px 0;
padding: 12px 16px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--surface);
}
.drill-status-bar .cf-reset { color: var(--ink); border-color: var(--line); }
.drill-status-bar .cf-reset[aria-pressed="true"] { color: var(--accent); font-weight: 600; text-decoration: underline; }
.drill-status-caption, .drill-summary-caption { color: var(--ink-2); font-size: 13px; }
.drill-summary-caption { margin: 12px 0 8px; }
#drillSearchEmpty[hidden] { display: none; }
.drill-status-bar button:focus-visible, .drill-status-bar input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#drillTable2.drill-sticky-enabled > thead > tr > th { z-index: 6; }
#drillTable2.drill-sticky-enabled > tbody > .row-total > td { z-index: 5; }
#drillTable2.drill-sticky-enabled > :is(thead, tbody) > tr > :is(th, td):nth-child(-n+3),
#drillTable2.drill-sticky-enabled.drill-sticky-budget > :is(thead, tbody) > tr > :is(th, td):nth-child(4) {
position: sticky;
left: var(--drill-sticky-left);
}
#drillTable2 > :is(thead, tbody) > tr > :is(th, td):nth-child(1) { --drill-sticky-left: 0px; }
#drillTable2 > :is(thead, tbody) > tr > :is(th, td):nth-child(2) { --drill-sticky-left: var(--drill-sticky-col-2); }
#drillTable2 > :is(thead, tbody) > tr > :is(th, td):nth-child(3) { --drill-sticky-left: var(--drill-sticky-col-3); }
#drillTable2 > :is(thead, tbody) > tr > :is(th, td):nth-child(4) { --drill-sticky-left: var(--drill-sticky-col-4); }
#drillTable2.drill-sticky-enabled > tbody > tr > td:nth-child(-n+3),
#drillTable2.drill-sticky-enabled.drill-sticky-budget > tbody > tr > td:nth-child(4) {
z-index: 4;
background: inherit;
}
#drillTable2.drill-sticky-enabled > tbody > .row-total > td:nth-child(-n+3),
#drillTable2.drill-sticky-enabled.drill-sticky-budget > tbody > .row-total > td:nth-child(4) {
z-index: 6;
background: var(--surface-3);
}
#drillTable2.drill-sticky-enabled > thead > tr > th:nth-child(-n+3),
#drillTable2.drill-sticky-enabled.drill-sticky-budget > thead > tr > th:nth-child(4) {
z-index: 7;
background: var(--surface-2);
}
#drillTable2.drill-sticky-enabled:not(.drill-sticky-budget) > :is(thead, tbody) > tr > :is(th, td):nth-child(3),
#drillTable2.drill-sticky-enabled.drill-sticky-budget > :is(thead, tbody) > tr > :is(th, td):nth-child(4) {
box-shadow: inset -2px 0 0 0 var(--line-strong);
}
.vk-estimate-col { display: none; }
body.show-vk-estimate th.vk-estimate-col,
body.show-vk-estimate td.vk-estimate-col { display: table-cell; }
.btn-vk-estimate {
padding: 6px 12px; border: 1px solid var(--line); background: var(--surface-2);
border-radius: var(--r-md); cursor: pointer; font-size: 13px;
}
.btn-vk-estimate[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-fill); border-color: var(--accent); }
.btn-vk-estimate:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vk-estimate-note { flex-basis: 100%; margin: 8px 0; font-size: 13px; color: var(--ink-2); white-space: normal; }
.crm-toggle-row { gap: 8px; flex-wrap: wrap; }
.vk-estimate-toolbar { margin: 8px 0 10px; }
.crm-toggle-row .vk-estimate-note { order: 1; }
:root {
--success: #2e7d32;
--success-fill: #27ae60;
--success-bg: #e8f5e9;
--success-bg-strong: #c8e6c9;
--success-line: #c3e6cb;
--success-ring: rgba(39, 174, 96, 0.28);
--warning: #7a4b00;
--warning-fill: #f39c12;
--warning-bg: #fff3cd;
--warning-bg-strong: #f2cc60;
--warning-line: #f2cc60;
--warning-ring: rgba(243, 156, 18, 0.28);
--danger: #d32f2f;
--danger-fill: #e74c3c;
--danger-bg: #ffebee;
--danger-bg-strong: #ffcdd2;
--danger-line: #f5c6cb;
--danger-ring: rgba(231, 76, 60, 0.28);
--row-kpi: #c8e6c9;
--row-kpi-soft: #c8e6c9;
--row-kpi-hover: #b5dcb7;
--row-bad: #ffebee;
--row-bad-hover: #ffcdd2;
--row-inefficient: #f4cccc;
--row-attention: #fff7d6;
--tbl-head-bg: #3a4150;
--tbl-head-bg-hover: #4a5263;
--tbl-head-ink: #ffffff;
--tbl-head-tip: rgba(255, 255, 255, 0.16);
--tbl-head-tip-hover: rgba(255, 255, 255, 0.3);
--tbl-head-tip-line: rgba(255, 255, 255, 0.4);
--tbl-zebra: #f4f4f2;
--tbl-row-hover: #e9ebf0;
--tbl-line: #e5e3df;
--tbl-total-bg: #e4e7ee;
--tbl-band: rgba(58, 65, 80, 0.05);
--selbar-shadow: 0 14px 36px rgba(15, 15, 15, 0.22);
--selbar-graphite: #3a4150;
--selbar-graphite-shadow: 0 14px 36px rgba(15, 15, 15, 0.28);
--selbar-graphite-go: #6fd08c;
--selbar-graphite-hold: #f5c063;
--selbar-graphite-danger: #ff9f96;
}
:root,
:root[data-ds="notion"] {
--font: -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
--w-regular: 400;
--w-medium: 500;
--w-bold: 600;
--ink: #1a1a1a;
--ink-2: #5d5b54;
--ink-3: #787671;
--ink-4: #a4a097;
--on-fill: #ffffff;
--canvas: #ffffff;
--surface: #ffffff;
--surface-2: #fafaf9;
--surface-3: #f6f5f4;
--fill-2: #ede9e4;
--fill-3: #a4a097;
--fill-strong: #1a1a1a;
--wash: rgba(15, 15, 15, 0.04);
--line-soft: #ede9e4;
--line: #e5e3df;
--line-strong: #c8c4be;
--accent: #0075de;
--accent-fill: #0075de;
--accent-fill-hover: #005bab;
--accent-bg: #dcecfa;
--accent-bg-strong: #c3ddf6;
--accent-line: #a9cdf1;
--accent-ring: rgba(0, 117, 222, 0.28);
--r-xs: 4px;
--r-sm: 6px;
--r-md: 8px;
--r-lg: 12px;
--r-pill: 9999px;
--r-control: 8px;
--r-button: 8px;
--r-badge: 6px;
--r-panel: 8px;
--r-popover: 12px;
--shadow-1: none;
--shadow-pop: rgba(15, 15, 15, 0.16) 0 16px 48px -8px;
--fs-body: 14px;
--fs-table: 13px;
--fs-small: 12px;
--fs-title: 22px;
--ls-title: 0;
--lh-body: 1.5;
--control-h: 32px;
--control-px: 12px;
--cell-py: 8px;
--cell-px: 10px;
--header-bg: #ffffff;
--header-h: 52px;
--nav-fs: 14px;
--nav-ink: #787671;
--nav-active-bar: #1a1a1a;
--panel-line: #e5e3df;
--th-bg: #fafaf9;
--focus-outline: 2px solid #0075de;
}
:root[data-ds="apple"] {
--font: -apple-system, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
--w-regular: 400;
--w-medium: 600;
--w-bold: 600;
--ink: #1d1d1f;
--ink-2: #333333;
--ink-3: #7a7a7a;
--ink-4: #a1a1a6;
--on-fill: #ffffff;
--canvas: #ffffff;
--surface: #ffffff;
--surface-2: #fafafc;
--surface-3: #f5f5f7;
--fill-2: #e8e8ed;
--fill-3: #a1a1a6;
--fill-strong: #1d1d1f;
--wash: rgba(0, 0, 0, 0.04);
--line-soft: #f0f0f0;
--line: #e0e0e0;
--line-strong: #d2d2d7;
--accent: #0066cc;
--accent-fill: #0066cc;
--accent-fill-hover: #0071e3;
--accent-bg: #e8f1fb;
--accent-bg-strong: #d3e5f8;
--accent-line: #b9d6f2;
--accent-ring: rgba(0, 113, 227, 0.3);
--r-xs: 5px;
--r-sm: 8px;
--r-md: 11px;
--r-lg: 18px;
--r-pill: 9999px;
--r-control: 11px;
--r-button: 9999px;
--r-badge: 9999px;
--r-panel: 18px;
--r-popover: 18px;
--shadow-1: none;
--shadow-pop: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
--fs-body: 14px;
--fs-table: 13px;
--fs-small: 12px;
--fs-title: 28px;
--ls-title: -0.3px;
--lh-body: 1.43;
--control-h: 34px;
--control-px: 15px;
--cell-py: 10px;
--cell-px: 12px;
--header-bg: #f5f5f7;
--header-h: 48px;
--nav-fs: 13px;
--nav-ink: #333333;
--nav-active-bar: transparent;
--panel-line: #e0e0e0;
--th-bg: #ffffff;
--focus-outline: 2px solid #0071e3;
}
body.rd {
font-family: var(--font);
font-size: var(--fs-body);
line-height: var(--lh-body);
color: var(--ink);
background: var(--canvas);
-webkit-font-smoothing: antialiased;
}
.rd a { color: var(--accent); }
.rd :focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
.rd h2 { font-size: 16px; font-weight: var(--w-bold); color: var(--ink); margin: 28px 0 12px; }
.rd .text-muted { color: var(--ink-3); }
.rd .main { padding: 24px 32px 48px; }
.rd .footer { display: none; }
.rd-pagehead { margin: 0 0 18px; }
.rd-title {
font-size: var(--fs-title);
line-height: 1.2;
font-weight: var(--w-bold);
letter-spacing: var(--ls-title);
color: var(--ink);
}
.rd .header {
background: var(--header-bg);
color: var(--ink);
height: auto;
min-height: var(--header-h);
padding: 0 32px;
gap: 20px;
border-bottom: 1px solid var(--line);
}
.rd .header-title { font-size: 15px; font-weight: var(--w-bold); gap: 8px; color: var(--ink); }
.rd .header-logo { width: 22px; height: 22px; }
.rd .nav { gap: 2px; align-self: stretch; }
.rd .nav-link {
display: flex;
align-items: center;
color: var(--nav-ink);
font-size: var(--nav-fs);
font-weight: var(--w-regular);
padding: 0 10px;
border-radius: 0;
background: none;
box-shadow: inset 0 -2px 0 transparent;
transition: color 0.15s;
}
.rd .nav-link:hover { color: var(--ink); background: none; }
.rd .nav-link.active {
color: var(--ink);
font-weight: var(--w-medium);
background: none;
box-shadow: inset 0 -2px 0 var(--nav-active-bar);
}
.rd .header-right { gap: 14px; }
.rd .sync-status { font-size: var(--fs-small); color: var(--ink-3); }
.rd .sync-status::before { content: "Данные на "; }
.rd .user-info { font-size: var(--fs-small); gap: 10px; }
.rd .user-name { color: var(--ink-2); }
.rd .logout-link { font-size: var(--fs-small); color: var(--ink-3); }
.rd .logout-link:hover { color: var(--danger); text-decoration: none; }
.rd-switch {
display: inline-flex;
padding: 2px;
background: var(--fill-2);
border-radius: var(--r-button);
}
.rd-switch-btn {
font: inherit;
font-size: var(--fs-small);
padding: 3px 12px;
border: 0;
border-radius: var(--r-button);
background: transparent;
color: var(--ink-2);
cursor: pointer;
}
.rd-switch-btn[aria-pressed="true"] {
background: var(--surface);
color: var(--ink);
font-weight: var(--w-medium);
}
.rd .account-trigger {
height: var(--control-h);
padding: 0 10px 0 12px;
background: var(--surface);
border: 1px solid var(--line-strong);
border-radius: var(--r-button);
color: var(--ink);
font-size: 13px;
}
.rd .account-trigger:hover,
.rd .account-trigger.open { background: var(--surface-3); border-color: var(--line-strong); }
.rd .account-trigger-arrow { color: var(--ink-3); }
.rd .account-popup { border: 1px solid var(--line); border-radius: var(--r-popover); color: var(--ink); }
.rd .account-option,
.rd .account-multi-label { color: var(--ink); border-radius: var(--r-sm); }
.rd .account-option:hover,
.rd .account-multi-option:hover { background: var(--surface-3); }
.rd .account-multi-check { border-radius: var(--r-xs); }
.rd .account-multiselect-footer { background: var(--surface); }
.rd .filter-row { align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.rd .btn,
.rd .btn-cancel,
.rd .cf-reset,
.rd .cf-toggle,
.rd .gm-btn,
.rd .preset-default-btn,
.rd .preset-reset-btn,
.rd .btn-crm-toggle,
.rd .btn-vk-estimate,
.rd .btn-video-toggle,
.rd .discrepancy-link,
.rd .btn-reset-copied,
.rd .date-picker-trigger,
.rd .st-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: var(--control-h);
padding: 0 var(--control-px);
font: inherit;
font-size: 13px;
font-weight: var(--w-medium);
line-height: 1;
color: var(--ink);
background: var(--surface);
border: 1px solid var(--line-strong);
border-radius: var(--r-button);
box-shadow: none;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rd .btn:hover,
.rd .btn-cancel:hover,
.rd .cf-reset:hover,
.rd .cf-toggle:hover,
.rd .gm-btn:hover,
.rd .preset-default-btn:hover,
.rd .btn-crm-toggle:hover,
.rd .btn-vk-estimate:hover,
.rd .btn-video-toggle:hover,
.rd .discrepancy-link:hover,
.rd .btn-reset-copied:hover,
.rd .date-picker-trigger:hover,
.rd .st-btn:hover {
background: var(--surface-3);
border-color: var(--line-strong);
box-shadow: none;
color: var(--ink);
}
.rd .date-picker-trigger.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.rd .date-picker-icon,
.rd .date-picker-arrow { color: var(--ink-3); }
.rd .date-picker-text { font-weight: var(--w-medium); }
.rd .btn-primary,
.rd .btn-apply,
.rd .cf-apply,
.rd .account-multiselect-apply,
.rd .btn-login,
.rd .st-btn-primary {
min-height: var(--control-h);
padding: 0 calc(var(--control-px) + 4px);
font: inherit;
font-size: 13px;
font-weight: var(--w-medium);
color: var(--on-fill);
background: var(--accent-fill);
border: 1px solid var(--accent-fill);
border-radius: var(--r-button);
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
}
.rd .btn-primary:hover,
.rd .btn-apply:hover,
.rd .cf-apply:hover,
.rd .account-multiselect-apply:hover,
.rd .btn-login:hover,
.rd .st-btn-primary:hover {
color: var(--on-fill);
background: var(--accent-fill-hover);
border-color: var(--accent-fill-hover);
}
.rd .btn-danger,
.rd .preset-reset-btn,
.rd .st-btn-danger {
color: var(--danger);
background: var(--surface);
border-color: var(--danger-line);
}
.rd .btn-danger:hover,
.rd .preset-reset-btn:hover,
.rd .st-btn-danger:hover {
color: var(--danger);
background: var(--danger-bg);
border-color: var(--danger-line);
}
.rd .btn-small { min-height: 26px; padding: 0 10px; font-size: var(--fs-small); }
.rd .btn:disabled,
.rd .gm-btn:disabled,
.rd .st-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rd .btn-crm-toggle.active,
.rd .btn-vk-estimate[aria-pressed="true"],
.rd .btn-video-toggle.active,
.rd .btn-video-toggle[aria-pressed="true"] {
color: var(--accent);
background: var(--accent-bg);
border-color: var(--accent-line);
}
.rd .dynamics-controls { align-self: flex-start; margin: 12px 20px; border-bottom: 1px solid var(--line); }
.rd .group-buttons,
.rd .dynamics-controls {
display: inline-flex;
gap: 2px;
padding: 2px;
background: var(--surface-3);
border: 1px solid var(--line);
border-radius: var(--r-button);
}
.rd .group-btn,
.rd .dynamics-group-btn {
display: inline-flex;
align-items: center;
min-height: calc(var(--control-h) - 6px);
padding: 0 12px;
font-size: 13px;
color: var(--ink-3);
background: transparent;
border: 0 !important;
border-radius: var(--r-button) !important;
text-decoration: none;
}
.rd .group-btn:hover,
.rd .dynamics-group-btn:hover { color: var(--ink); background: transparent; }
.rd .group-btn.active,
.rd .dynamics-group-btn.active {
color: var(--ink);
font-weight: var(--w-medium);
background: var(--surface);
box-shadow: 0 0 0 1px var(--line);
}
.rd input[type="text"],
.rd input[type="number"],
.rd input[type="date"],
.rd input[type="password"],
.rd input[type="search"],
.rd select,
.rd .gm-input,
.rd .gm-select,
.rd .cf-input,
.rd .preset-threshold-input,
.rd .budget-input {
min-height: var(--control-h);
padding: 0 10px;
font: inherit;
font-size: 13px;
color: var(--ink);
background: var(--surface);
border: 1px solid var(--line-strong);
border-radius: var(--r-control);
box-shadow: none;
}
.rd input[type="text"]:focus,
.rd input[type="number"]:focus,
.rd input[type="date"]:focus,
.rd input[type="password"]:focus,
.rd input[type="search"]:focus,
.rd select:focus,
.rd .cf-input:focus,
.rd .preset-threshold-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-ring);
}
.rd input::placeholder { color: var(--ink-4); }
.rd input[type="checkbox"],
.rd input[type="radio"] { accent-color: var(--accent-fill); }
.rd input.drill-search-input {
width: 260px;
padding-left: 34px;
background: var(--surface-3);
border-color: var(--line);
border-radius: var(--r-button);
}
.rd input.drill-search-input:focus { background: var(--surface); }
.rd .drill-search-icon { color: var(--ink-3); }
.rd .date-picker-popup { border: 1px solid var(--line); border-radius: var(--r-popover); overflow: hidden; }
.rd .date-picker-presets { background: var(--surface-2); border-right: 1px solid var(--line); }
.rd .preset-btn { border-radius: var(--r-sm); color: var(--ink); }
.rd .preset-btn:hover { background: var(--surface-3); }
.rd .preset-btn.active { background: var(--accent-bg); color: var(--accent); font-weight: var(--w-medium); }
.rd .calendar-title { font-size: 14px; font-weight: var(--w-bold); color: var(--ink); }
.rd .date-picker-footer { background: var(--surface-2); border-top: 1px solid var(--line); }
.rd .date-picker-range-display { font-size: 13px; color: var(--ink-2); }
.rd .table-wrapper,
.rd .split-table,
.rd .drill2-wrapper,
.rd .dynamics-table-wrap {
border: 1px solid var(--panel-line);
border-radius: var(--r-panel);
box-shadow: none;
background: var(--surface);
}
.rd .table-wrapper { overflow-x: auto; }
.rd .data-table,
.rd .hourly-table,
.rd .dynamics-table {
font-size: var(--fs-table);
font-variant-numeric: tabular-nums;
color: var(--ink);
background: var(--surface);
}
.rd .data-table th,
.rd .data-table td,
.rd .compact-table th,
.rd .compact-table td {
padding: var(--cell-py) var(--cell-px);
text-align: left;
border-bottom: 1px solid var(--line-soft);
}
.rd .data-table th,
.rd .dynamics-table th {
font-size: var(--fs-small);
font-weight: var(--w-medium);
color: var(--ink-3);
background: var(--th-bg);
text-transform: none;
letter-spacing: 0;
border-bottom: 1px solid var(--line);
}
.rd .data-table thead th:hover { background: var(--surface-3); color: var(--ink); }
.rd .data-table th.sort-asc,
.rd .data-table th.sort-desc { color: var(--ink); }
.rd .data-table tbody tr:hover { background: var(--surface-2); }
.rd .row-total { font-weight: var(--w-bold); border-top: 0; }
.rd .row-total td,
.rd .dynamics-table .row-total td { border-bottom: 1px solid var(--line-strong); }
.rd .row-good-drr { background: var(--row-kpi) !important; }
.rd .row-drr-good { background: var(--row-kpi-soft) !important; }
.rd .data-table tbody tr.row-good-drr:hover,
.rd .data-table tbody tr.row-drr-good:hover,
.rd .split-table .data-table tbody tr.row-drr-good.row-hover { background: var(--row-kpi-hover) !important; }
.rd .row-drr-bad { background: var(--row-bad) !important; }
.rd .data-table tbody tr.row-drr-bad:hover,
.rd .split-table .data-table tbody tr.row-drr-bad.row-hover { background: var(--row-bad-hover) !important; }
.rd .row-inefficient { background: var(--row-inefficient) !important; }
.rd .row-no-active-ads,
.rd .row-no-active-ads:hover { background: var(--row-attention) !important; }
.rd:not(.rd-page-settings) :is(.data-table, .hourly-table, .dynamics-table) > thead > tr > th {
color: var(--tbl-head-ink);
background: var(--tbl-head-bg);
font-weight: var(--w-bold);
border-bottom: 1px solid var(--tbl-head-bg);
}
.rd:not(.rd-page-settings) .data-table > thead > tr > th:hover { color: var(--tbl-head-ink); background: var(--tbl-head-bg-hover); }
.rd:not(.rd-page-settings) :is(.data-table, .hourly-table, .dynamics-table) > thead a { color: inherit; }
.rd:not(.rd-page-settings) thead .info-tip { color: var(--tbl-head-ink); background: var(--tbl-head-tip); border-color: var(--tbl-head-tip-line); }
.rd:not(.rd-page-settings) thead .info-tip:hover { color: var(--tbl-head-ink); background: var(--tbl-head-tip-hover); }
.rd:not(.rd-page-settings) :is(.data-table, .hourly-table, .dynamics-table) > tbody > tr > td { border-bottom-color: var(--tbl-line); }
.rd:not(.rd-page-settings) :is(.data-table, .hourly-table, .dynamics-table):not(.vscroll-active) > tbody > tr:where(:nth-child(even of :not(.row-total, .total, .vscroll-spacer, .creative-row, .group-detail-row, .banner-row, .group-row, [hidden], [style*="display: none"], [style*="display:none"]))) {
background: var(--tbl-zebra);
}
.rd:not(.rd-page-settings) :is(.data-table, .hourly-table, .dynamics-table) > tbody > tr:is(:hover, .row-hover) { background: var(--tbl-row-hover); }
.rd:not(.rd-page-settings) .drill-table > tbody > tr:hover > .sticky-col { background: var(--tbl-row-hover); }
.rd:not(.rd-page-settings) .drill-table > tbody > tr.row-drr-good:hover > .sticky-col { background: var(--row-kpi-hover); }
.rd:not(.rd-page-settings) .drill-table > tbody > tr.row-drr-bad:hover > .sticky-col { background: var(--row-bad-hover); }
.rd:not(.rd-page-settings) :is(.data-table, .hourly-table, .dynamics-table) tr:is(.row-total, .total) { font-weight: var(--w-bold); background: var(--tbl-total-bg) !important; }
.rd:not(.rd-page-settings) :is(.data-table, .hourly-table, .dynamics-table) tr:is(.row-total, .total) > td {
background: var(--tbl-total-bg);
border-bottom: 2px solid var(--tbl-head-bg);
}
.rd:not(.rd-page-settings) #drillTable2.data-table > thead > tr > th { color: var(--tbl-head-ink); background: var(--tbl-head-bg); }
.rd:not(.rd-page-settings) #drillTable2.data-table > thead > tr > th:hover { background: var(--tbl-head-bg-hover); }
.rd:not(.rd-page-settings) #drillTable2.data-table > tbody > tr.row-total > td { background: var(--tbl-total-bg); }
.rd.rd-page-vk-autostops .drill2-table > thead > tr > th:is(.as-snap, .as-group-head-snap) { color: var(--tbl-head-ink); background: var(--tbl-head-bg-hover) !important; }
.rd.rd-page-vk-autostops .drill2-table > tbody > tr > td.as-snap { background: var(--tbl-band); }
.rd:not(.rd-page-settings) :is(.table-wrapper, .split-table, .drill2-wrapper, .dynamics-table-wrap, .vscroll-viewport),
.rd:not(.rd-page-settings) .hourly-table { border-color: var(--tbl-head-bg); }
.rd:not(.rd-page-settings) .data-table > thead .gm-selall { margin-right: 4px; vertical-align: -0.2em; }
.rd:not(.rd-page-settings) .data-table > thead .gm-selall input { width: 13px; height: 13px; }
.rd .drill-link,
.rd .drill-link:visited,
.rd .breadcrumb-link,
.rd .breadcrumb-link:visited,
.rd .group-vk-link,
.rd .group-vk-link:visited { color: var(--accent); }
.rd .drill-parent-name { color: var(--ink-3); }
.rd .copyable-id,
.rd .copyable-group { border-bottom: 1px dashed var(--line-strong); }
.rd .copyable-id:hover,
.rd .copyable-group:hover { color: var(--accent); }
.rd .empty-state { color: var(--ink-3); }
@media (max-width: 1200px) {
.rd .data-table { font-size: 12px; }
.rd .data-table th,
.rd .data-table td { padding: 7px 8px; }
}
.rd .status-badge,
.rd .badge,
.rd .badge-cbo,
.rd .badge-abo,
.rd .cf-badge,
.rd .ag-id-badge,
.rd .st-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
font-size: var(--fs-small);
font-weight: var(--w-medium);
line-height: 1.4;
border-radius: var(--r-badge);
border: 0;
}
.rd .badge,
.rd .st-badge,
.rd .status-badge-deleted,
.rd .status-badge-other { color: var(--ink-2); background: var(--surface-3); }
.rd .badge-cbo { color: var(--accent); background: var(--accent-bg); font-size: 11px; }
.rd .badge-abo { color: var(--success); background: var(--success-bg); font-size: 11px; }
.rd .cf-badge { color: var(--on-fill); background: var(--accent-fill); min-width: 18px; justify-content: center; padding: 0 5px; }
.rd .status-badge-warning { color: var(--warning); background: var(--warning-bg); border: 0; }
.rd .badge-success-none { color: var(--ink-2); background: var(--surface-3); }
.rd .badge-success-some { color: var(--accent); background: var(--accent-bg); }
.rd .badge-success-high { color: var(--on-fill); background: var(--accent-fill); }
.rd .badge-success-few { color: var(--ink-3); background: transparent; border: 1px dashed var(--line-strong); padding: 1px 7px; }
.rd .st-badge-success { color: var(--success); background: var(--success-bg); }
.rd .st-badge-danger { color: var(--danger); background: var(--danger-bg); }
.rd .st-badge-warning { color: var(--warning); background: var(--warning-bg); }
.rd .st-badge-accent { color: var(--accent); background: var(--accent-bg); }
.rd .drill-tabs { gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0; }
.rd .drill-tab {
padding: 8px 12px;
font-size: 14px;
font-weight: var(--w-regular);
color: var(--ink-3);
border-bottom: 2px solid transparent;
margin-bottom: -1px;
}
.rd .drill-tab:hover { color: var(--ink); }
.rd .drill-tab.active { color: var(--ink); font-weight: var(--w-medium); border-bottom-color: var(--ink); }
.rd .breadcrumbs { font-size: 13px; color: var(--ink-3); }
.rd .breadcrumb-sep { color: var(--ink-4); }
.rd .breadcrumb-current { color: var(--ink); font-weight: var(--w-medium); }
.rd .preset-bar,
.rd .cf-panel,
.rd .drill-status-bar {
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: var(--r-panel);
}
.rd .preset-category-label { font-size: 11px; font-weight: var(--w-bold); letter-spacing: 0.02em; }
.rd .preset-btn-filter {
padding: 4px 10px;
font-size: var(--fs-small);
color: var(--ink-2);
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-button);
}
.rd .preset-btn-filter:hover { background: var(--surface-3); border-color: var(--line-strong); }
.rd .preset-threshold-label,
.rd .cf-field-label,
.rd .drill-status-caption,
.rd .drill-summary-caption { font-size: var(--fs-small); color: var(--ink-3); }
.rd .cf-input,
.rd .preset-threshold-input { min-height: 28px; text-align: left; }
.rd .cf-toggle { font-weight: var(--w-medium); }
.rd .group-action-bar {
zoom: 1.3;
width: max-content;
max-width: calc((100vw - 32px) / 1.3);
gap: 4px;
padding: 7px 8px;
font-size: 13px;
color: var(--ink);
background: var(--surface);
border: 2px solid var(--accent-fill);
border-radius: var(--r-popover);
box-shadow: var(--selbar-shadow);
}
.rd.rd-page-vk-drill .main { padding-bottom: 136px; }
.rd .group-action-bar .gm-info { display: inline-flex; align-items: center; margin: 0; padding: 0 6px 0 4px; font-weight: var(--w-bold); }
.rd .group-action-bar .gm-info b {
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-width: 22px;
height: 22px;
margin-right: 7px;
padding: 0 7px;
font-size: 12px;
font-weight: inherit;
color: var(--on-fill);
background: var(--accent-fill);
border-radius: var(--r-pill);
}
.rd .group-action-bar .gm-budget { margin-left: 5px; color: var(--ink-3); font-weight: var(--w-regular); }
.rd .group-action-bar .gm-btn-stop .rd-ic { color: var(--warning-fill); }
.rd .group-action-bar .gm-btn-start .rd-ic { color: var(--success-fill); }
.rd .group-action-bar .gm-budget-edit { gap: 6px; margin: 0; padding: 0; border-left: 0; }
.rd .group-action-bar .gm-input { width: 72px; }
.rd .rd-sel-sep { flex: none; width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.rd .rd-sel-label { padding: 0 4px 0 2px; color: var(--ink-3); }
.rd .rd-ic { flex: none; width: 14px; height: 14px; }
.rd .group-action-bar .gm-btn { padding: 0 10px; color: var(--ink); background: transparent; border-color: transparent; }
.rd .group-action-bar .gm-btn:hover { color: var(--ink); background: var(--surface-3); border-color: transparent; filter: none; }
.rd .group-action-bar .gm-btn-clear { padding: 0 8px; color: var(--ink-3); }
.rd .group-action-bar .gm-btn-delete,
.rd .group-action-bar .gm-btn-delete:hover { color: var(--danger); }
.rd .group-action-bar .gm-btn-delete:hover { background: var(--danger-bg); }
.rd .group-action-bar .gm-btn-budget,
.rd .group-action-bar .gm-btn-budget:hover { color: var(--on-fill); background: var(--accent-fill); border-color: var(--accent-fill); }
.rd .group-action-bar .gm-btn-budget:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.rd .rd-seg {
display: inline-flex;
flex: none;
height: var(--control-h);
overflow: hidden;
background: var(--surface);
border: 1px solid var(--line-strong);
border-radius: var(--r-control);
}
.rd .rd-seg-opt { position: relative; display: flex; cursor: pointer; }
.rd .rd-seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.rd .rd-seg-opt span { display: flex; align-items: center; justify-content: center; min-width: 30px; padding: 0 6px; color: var(--ink-2); }
.rd .rd-seg-opt input:checked + span { color: var(--accent); background: var(--accent-bg); font-weight: var(--w-bold); }
.rd .rd-seg-opt input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--accent); }
.rd .rd-seg-source { display: none; }
:root[data-selbar="dark"] .rd .group-action-bar { color: var(--on-fill); background: var(--selbar-graphite); border-color: transparent; box-shadow: var(--selbar-graphite-shadow); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-stop .rd-ic { color: var(--selbar-graphite-hold); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-start .rd-ic { color: var(--selbar-graphite-go); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-info { padding-left: 8px; }
:root[data-selbar="dark"] .rd .group-action-bar .gm-budget,
:root[data-selbar="dark"] .rd .group-action-bar .rd-sel-label { color: color-mix(in srgb, var(--on-fill) 64%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .rd-sel-sep { background: color-mix(in srgb, var(--on-fill) 24%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn,
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn:hover { color: var(--on-fill); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn:hover { background: color-mix(in srgb, var(--on-fill) 14%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn:focus-visible { outline-color: var(--on-fill); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-delete { order: 1; }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-start ~ .rd-sel-sep { order: 2; }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-clear { order: 3; }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-clear { color: color-mix(in srgb, var(--on-fill) 64%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-delete,
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-delete:hover { color: var(--selbar-graphite-danger); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-delete:hover { background: color-mix(in srgb, var(--danger-fill) 26%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-budget,
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-budget:hover { color: var(--on-fill); background: var(--accent-fill); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-btn-budget:hover { background: var(--accent-fill-hover); }
:root[data-selbar="dark"] .rd .group-action-bar .rd-seg,
:root[data-selbar="dark"] .rd .group-action-bar .gm-input { background: color-mix(in srgb, var(--on-fill) 8%, transparent); border-color: color-mix(in srgb, var(--on-fill) 32%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-input { color: var(--on-fill); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-input:focus { border-color: var(--on-fill); box-shadow: 0 0 0 3px color-mix(in srgb, var(--on-fill) 28%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .gm-input::placeholder { color: color-mix(in srgb, var(--on-fill) 46%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .rd-seg-opt span { color: color-mix(in srgb, var(--on-fill) 78%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .rd-seg-opt input:checked + span { color: var(--on-fill); background: color-mix(in srgb, var(--on-fill) 24%, transparent); }
:root[data-selbar="dark"] .rd .group-action-bar .rd-seg-opt input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--on-fill); }
.rd .metrics-grid { display: none; }
.rd #drillSummary,
.rd.rd-page-vk-autostops .metrics-grid {
display: flex;
flex-wrap: wrap;
gap: 6px 8px;
margin: 0 0 14px;
}
.rd #drillSummary .metric-card,
.rd.rd-page-vk-autostops .metric-card {
display: inline-flex;
flex: 0 0 auto;
flex-direction: row-reverse;
align-items: baseline;
gap: 6px;
padding: 5px 10px;
text-align: left;
white-space: nowrap;
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-control);
box-shadow: none;
}
.rd #drillSummary .metric-value,
.rd.rd-page-vk-autostops .metric-value { font-size: 13px; font-weight: var(--w-bold); color: var(--ink); margin: 0; }
.rd #drillSummary .metric-label,
.rd.rd-page-vk-autostops .metric-label { font-size: var(--fs-small); color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.rd #drillSummary .metric-card:not([data-metric^="Расход ·"]) { display: none; }
.rd.rd-page-vk-autostops .metric-card:not([data-metric="Кампаний затронуто"]):not([data-metric^="Причина"]) { display: none; }
.rd #drillSummary .metric-card.card-good { background: var(--success-bg); border-color: var(--success-line); }
.rd #drillSummary .metric-card.card-warn { background: var(--warning-bg); border-color: var(--warning-line); }
.rd #drillSummary .metric-card.card-bad { background: var(--danger-bg); border-color: var(--danger-line); }
.rd .drill-summary-caption { margin: 0 0 6px; }
.rd .dynamics-drawer { border-left: 1px solid var(--line); }
.rd .dynamics-title { font-size: 16px; font-weight: var(--w-bold); color: var(--ink); }
.rd .dynamics-subtitle { color: var(--ink-3); }
.rd .dynamics-btn { color: var(--ink-3); border-radius: var(--r-sm); }
.rd .dynamics-btn:hover { color: var(--accent); background: var(--accent-bg); }
.rd .info-tip { color: var(--ink-3); background: var(--surface-3); border-radius: var(--r-pill); }
.rd .info-tip-popup {
color: var(--ink-2);
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-popover);
box-shadow: var(--shadow-pop);
text-transform: none;
letter-spacing: 0;
font-weight: var(--w-regular);
}
.rd .info-tip-title { color: var(--ink); font-weight: var(--w-bold); }
.rd .copy-toast,
.rd .gm-toast { border-radius: var(--r-control); font-weight: var(--w-medium); }
.rd .gm-toast { bottom: 112px; }
.rd .alert { padding: 10px 14px; border-radius: var(--r-control); font-size: 13px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.rd .alert.success { color: var(--success); background: var(--success-bg); border-color: var(--success-line); }
.rd .alert.error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.rd .alert-warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-line); }
.rd .alert-info { color: var(--ink-2); background: var(--surface-2); }
.rd .hourly-wrap { padding: 0; max-width: 1100px; }
.rd .hourly-wrap > h2 { display: none; }
.rd .subtitle { color: var(--ink-3); font-size: 13px; margin: -8px 0 16px; max-width: 760px; }
.rd .hourly-tabs { border-bottom: 0; gap: 6px; margin: 0 0 16px; }
.rd .creator-tabs { gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.rd .creators-table tr.rd-loading { cursor: progress; }
.rd .creators-table tr.rd-loading .expand-icon { opacity: 0.35; }
.rd .creators-table tr.rd-loading td:first-child::after { content: " загрузка групп…"; color: var(--ink-3); font-size: 12px; }
.rd .hourly-tab,
.rd .creator-tab {
padding: 6px 12px;
font-size: 13px;
color: var(--ink-2);
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-button);
}
.rd .hourly-tab:hover,
.rd .creator-tab:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-3); }
.rd .hourly-tab.active,
.rd .creator-tab.active { color: var(--accent); background: var(--accent-bg); border-color: var(--accent-line); font-weight: var(--w-medium); }
.rd .hourly-toolbar { color: var(--ink-3); }
.rd .hourly-toolbar a {
display: inline-flex;
align-items: center;
min-height: var(--control-h);
padding: 0 10px;
color: var(--ink);
border: 1px solid var(--line-strong);
border-radius: var(--r-button);
}
.rd .hourly-toolbar a:hover { background: var(--surface-3); }
.rd .hourly-table {
border-collapse: separate;
border-spacing: 0;
border: 1px solid var(--panel-line);
border-radius: var(--r-panel);
overflow: hidden;
}
.rd .hourly-table th,
.rd .hourly-table td { padding: var(--cell-py) var(--cell-px); border-bottom: 1px solid var(--line-soft); }
.rd .hourly-table th { font-size: var(--fs-small); font-weight: var(--w-medium); color: var(--ink-3); background: var(--th-bg); border-bottom-color: var(--line); }
.rd .hourly-table tr.total { font-weight: var(--w-bold); background: var(--surface-3); }
.rd .hourly-table tr.total td { border-bottom: 0; }
.rd .empty { color: var(--ink-3); }
.st-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; align-items: start; }
.st-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.rd a.st-nav-link {
display: block;
padding: 8px 12px;
color: var(--ink-2);
text-decoration: none;
border-radius: var(--r-control);
}
.rd a.st-nav-link:hover { background: var(--surface-3); color: var(--ink); }
.rd a.st-nav-link.is-active { background: var(--surface-3); color: var(--ink); }
.st-nav-label { display: block; font-size: 14px; font-weight: var(--w-medium); }
.st-nav-hint { display: block; font-size: var(--fs-small); color: var(--ink-3); margin-top: 1px; }
.st-content { max-width: 1040px; min-width: 0; }
.st-content > .alert { margin-bottom: 20px; }
.st-head { margin-bottom: 20px; }
.st-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.rd .st-h { font-size: 18px; font-weight: var(--w-bold); margin: 0 0 6px; }
.st-lead { font-size: 14px; color: var(--ink-2); max-width: 640px; }
.rd .st-sub { font-size: 14px; font-weight: var(--w-bold); color: var(--ink); margin: 28px 0 10px; }
.st-empty { color: var(--ink-3); padding: 20px 0; }
.st-muted { color: var(--ink-4); }
.st-help { display: block; font-size: var(--fs-small); font-weight: var(--w-regular); color: var(--ink-3); margin-top: 4px; }
.st-meta { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-card { padding: 20px; border: 1px solid var(--panel-line); border-radius: var(--r-panel); background: var(--surface); }
.rd .st-card-title { font-size: 14px; font-weight: var(--w-bold); margin: 0 0 14px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 28px; }
.st-action { max-width: 300px; }
.st-sync-status { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.st-prefs { max-width: 640px; padding: 4px 20px; }
.st-pref { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 16px 0; }
.st-pref + .st-pref { border-top: 1px solid var(--line-soft); }
.st-pref-text { flex: 1 1 240px; min-width: 0; }
.rd .st-pref-title { font-size: 14px; font-weight: var(--w-medium); margin: 0; }
.st-pref .rd-switch { flex: none; }
.st-pref .rd-switch-btn { min-width: 96px; padding: 6px 14px; font-size: 13px; }
.rd #sync-status.st-sync-status:empty { display: none; }
.rd .st-content .data-table td { vertical-align: top; }
.rd .st-content .data-table td.st-wrap { white-space: normal; overflow-wrap: anywhere; min-width: 160px; }
.st-details summary { cursor: pointer; color: var(--ink-2); }
.st-details[open] summary { color: var(--ink-3); margin-bottom: 6px; }
.rd .st-content .data-table td.st-row-actions { text-align: right; width: 1%; white-space: nowrap; }
.rd .st-content .data-table tr.st-row-off td { color: var(--ink-4); }
.st-table-narrow { max-width: 720px; }
.rd dialog.st-dialog {
width: min(560px, calc(100vw - 32px));
max-height: calc(100vh - 48px);
padding: 0;
margin: auto;
color: var(--ink);
background: var(--surface);
border: 1px solid var(--line);
border-radius: var(--r-popover);
box-shadow: var(--shadow-pop);
overflow-y: auto;
}
.rd dialog.st-dialog::backdrop { background: rgba(15, 15, 15, 0.4); }
.st-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.rd .st-dialog-title { font-size: 18px; font-weight: var(--w-bold); margin: 0; display: flex; align-items: center; gap: 8px; }
.st-dialog-title + .st-help { margin-top: -12px; }
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 0; }
.st-field-narrow { flex: 0 0 96px; }
.st-field-row { display: flex; gap: 16px; }
.st-label { font-size: 13px; font-weight: var(--w-medium); color: var(--ink); padding: 0; }
.st-optional { font-weight: var(--w-regular); color: var(--ink-4); margin-left: 4px; }
.rd .st-field input,
.rd .st-field select { width: 100%; min-height: 36px; }
.st-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.st-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-control); max-height: 220px; overflow-y: auto; }
.st-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.st-check input { margin-top: 3px; }
.st-check-block { font-weight: var(--w-medium); }
.st-dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.st-extra,
.st-danger-zone { padding: 16px 24px; border-top: 1px solid var(--line); }
.st-extra { display: flex; flex-direction: column; gap: 10px; }
.st-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.st-extra strong,
.st-danger-zone strong { font-size: 13px; font-weight: var(--w-bold); }
.st-meter { display: inline-block; width: 140px; height: 6px; margin-right: 8px; vertical-align: middle; background: var(--fill-2); border-radius: var(--r-pill); overflow: hidden; }
.st-meter > span { display: block; height: 100%; background: var(--success-fill); }
.st-meter-warning > span { background: var(--warning-fill); }
.st-meter-danger > span { background: var(--danger-fill); }
.rd .st-legacy h2 { font-size: 14px; margin: 24px 0 10px; }
.rd .st-legacy .form-inline { gap: 12px; padding: 14px; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: none; }
.rd .st-legacy .form-inline label { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) {
.st-layout { grid-template-columns: 1fr; gap: 20px; }
.st-nav { position: static; flex-direction: row; flex-wrap: wrap; }
.st-nav-hint { display: none; }
.st-head-row { flex-direction: column; }
.st-field-row { flex-direction: column; }
}
.cg { max-width: 1040px; }
.cg-section { margin-top: 36px; }
.cg-section > h2 { margin-top: 0; }
.cg-section .st-help { margin-top: 10px; max-width: 720px; }
.cg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.cg-row-top { align-items: flex-start; gap: 16px; }
.cg-row-top .st-field { max-width: 260px; }
.cg-swatch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.cg-swatch-group { width: 110px; font-size: 13px; font-weight: var(--w-medium); }
.cg-swatch { display: inline-flex; align-items: center; gap: 8px; min-width: 170px; font-size: var(--fs-small); color: var(--ink-2); }
.cg-chip { width: 28px; height: 28px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.cg code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.rd .login-container {
margin-top: 72px;
border: 1px solid var(--panel-line);
border-radius: var(--r-popover);
box-shadow: none;
}
.rd .login-container h1 { font-size: 20px; font-weight: var(--w-bold); letter-spacing: var(--ls-title); color: var(--ink); }
.rd .login-container label { font-size: 13px; font-weight: var(--w-medium); color: var(--ink); }
.rd .login-container input[type="text"],
.rd .login-container input[type="password"] { width: 100%; min-height: 38px; font-size: 14px; }
.rd .login-container .btn-login { width: 100%; min-height: 38px; font-size: 14px; }
.rd .login-error { color: var(--danger); background: var(--danger-bg); border: 1px solid var(--danger-line); border-radius: var(--r-control); }
.rd .info-tip { width: 15px; height: 15px; color: var(--ink-3); background: var(--surface-3); font-weight: var(--w-medium); border: 1px solid var(--line); }
.rd .info-tip:hover { color: var(--ink); background: var(--fill-2); }
.rd .info-tip-popup::before { display: none; }
@media (max-width: 1100px) {
.rd .header { flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px; }
.rd .nav { order: 3; flex: 1 1 100%; min-height: 40px; overflow-x: auto; }
.rd .nav-link { padding: 0 10px 0 0; margin-right: 8px; }
.rd .main { padding: 16px 16px 40px; }
.rd .filter-row > div[style] { margin-left: 0 !important; }
.rd input.drill-search-input { width: 100%; }
.rd .preset-categories-row { flex-wrap: wrap; }
}
@media (max-width: 600px) {
.rd .sync-status,
.rd .user-name { display: none; }
.rd-title { font-size: 20px; }
.rd .date-picker-trigger { width: 100%; justify-content: space-between; }
}
