/* Главная: стили перенесены из дашборда; цвета — из общей темы. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr; } }
.mp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mp-name { font-weight: 800; font-size: 15px; }
.mp-stat-label { font-size: 12px; color: var(--muted); } .mp-stat-value { font-size: 22px; font-weight: 800; margin: 2px 0; font-variant-numeric: tabular-nums; }
.mp-stat-sub { font-size: 12px; color: var(--muted); } .mp-stat-sub b { color: var(--text); } .mp-stat.muted { margin-top: 12px; opacity: .8; } .mp-stat.muted .mp-stat-value { font-size: 17px; }
.share-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .share-chart svg { display: block; width: 120px; height: 120px; }
.share-legend { flex: 1; min-width: 150px; display: grid; gap: 8px; } .share-legend .row, .trend-legend .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; } .pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.empty-note { color: var(--muted); font-size: 13px; padding: 6px 0; }
.section-title { font-size: 16px; margin: 20px 0 10px; }
.history-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; } @media (max-width: 1000px) { .history-layout { grid-template-columns: 1fr; } }
.history-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.history-chip { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 650; min-height: 0; cursor: pointer; }
.history-chip.active { background: var(--accent); color: #0b0f17; border-color: var(--accent); }
.history-detail { display: none; } .history-detail.open { display: block; } .history-donuts { display: grid; gap: 14px; }
.history-donut-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.trend-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .trend-title { font-weight: 700; font-size: 14px; }
.trend-range { display: inline-flex; gap: 4px; } .trend-range button { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); border-radius: 9px; padding: 5px 10px; font-size: 12px; min-height: 0; cursor: pointer; } .trend-range button.active { background: var(--accent); color: #0b0f17; }
.trend-legend { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; } .trend-legend .row { gap: 6px; }
.chart-wrap { position: relative; } .line-chart { width: 100%; height: 220px; display: block; } .chart-tick { fill: var(--muted); font-size: 11px; }
.chart-tip { position: absolute; top: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12px; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.stage-row { border-top: 1px solid var(--border); } .stage-row:first-child { border-top: 0; }
.stage-head { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; } .stage-label { flex: 1; font-weight: 700; font-size: 14px; } .stage-hint { color: var(--muted); font-weight: 500; font-size: 11px; }
.siren.alert { animation: siren 1s ease-in-out infinite; } @keyframes siren { 50% { transform: scale(1.2) rotate(8deg); } } @media (prefers-reduced-motion: reduce) { .siren.alert { animation: none; } }
.urgent-count { background: rgba(239,83,80,.18); color: #ff8f8c; border-radius: 999px; padding: 2px 10px; font-weight: 800; } .stage-ok { color: var(--ok); font-weight: 700; font-size: 13px; }
.stage-chev { color: var(--muted); transition: transform .2s; } .stage-row.open > .stage-head .stage-chev { transform: rotate(90deg); }
.stage-body, .ff-body { display: none; } .stage-row.open > .stage-body { display: block; padding-bottom: 8px; } .ff-item.open > .ff-body { display: block; }
.urgent-empty { color: var(--ok); font-size: 13px; padding: 4px 0 8px; }
.ff-item { background: var(--panel-2); border-radius: 12px; margin-bottom: 8px; padding: 0 12px; } .ff-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; flex-wrap: wrap; }
.ff-name { display: flex; align-items: center; gap: 10px; font-weight: 700; } .ff-nums { font-size: 12px; color: var(--muted); }
.urgent-order-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); } .thumb { width: 34px; height: 44px; border-radius: 8px; background: var(--panel-3); object-fit: cover; flex-shrink: 0; }
.u-main { flex: 1; display: flex; flex-direction: column; min-width: 0; } .u-order { font-weight: 700; font-size: 13px; } .u-time { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; } .u-hours { font-weight: 800; color: #ff8f8c; white-space: nowrap; font-size: 13px; }
button.small { padding: 4px 10px; font-size: 12px; min-height: 0; }

/* Лента проверки маркировки */
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-head h2 { margin: 0; }
.feed-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 0 10px; }
.feed-stats b { color: var(--text); } .feed-stats .bad-text b { color: #ff8f8c; } .feed-stats .ok-text b { color: var(--ok); }
.feed-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.feed-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: center; background: var(--panel-2); border-radius: 12px; padding: 8px 12px; border-left: 4px solid var(--border); }
.feed-row.ok { border-left-color: var(--ok); } .feed-row.bad, .feed-row.failed { border-left-color: var(--err); background: rgba(239,83,80,.10); }
.feed-row.sending, .feed-row.pending { border-left-color: var(--accent); }
.feed-msg { grid-column: 1 / -1; color: #ff8f8c; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; } .feed-time { font-size: 11px; }
.feed-main { min-width: 0; overflow-wrap: anywhere; }

/* База маркировки */
tr.clickable { cursor: pointer; } tr.clickable:hover { background: var(--panel-2); }
.hist-row td { background: var(--panel-2); padding: 8px 14px; } .hist-line { font-size: 12px; padding: 2px 0; }

/* Работа и зарплата */
.work-total { display: flex; align-items: baseline; gap: 12px; margin: 12px 0; } .work-total b { font-size: 26px; }
.work-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 8px; }
.feed-line { padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; } .feed-line:first-child { border-top: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.cal-head { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; padding: 4px 0; }
.cal-cell { min-height: 62px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--text); cursor: pointer; font: inherit; }
.cal-cell.blank { background: transparent; border: 0; cursor: default; } .cal-cell.has { border-color: var(--accent); background: rgba(110,168,254,.10); }
.cal-num { font-weight: 700; font-size: 13px; } .cal-q { font-size: 11px; color: var(--muted); } .cal-a { font-size: 11px; font-weight: 700; color: var(--ok); }
@media (max-width: 520px) { .cal-cell { min-height: 54px; padding: 4px; } .cal-a { display: none; } }
