/* =========================================================
   dashboard.css — «Моё»: персональный дашборд
   ========================================================= */

.dash-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-hello h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }
.dash-hello .greet { color: var(--muted); font-size: 14px; margin-top: 4px; }
.dash-clocks { display: flex; gap: 10px; }
.clock {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); min-width: 96px;
}
.clock__z { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.clock__t { font-family: var(--font-display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.clock--cn .clock__z { color: var(--signal); }

/* Сетка дашборда */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Инбокс «Требует моего действия» */
.inbox { display: flex; flex-direction: column; }
.inbox__item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: background var(--dur-fast);
}
.inbox__item:last-child { border-bottom: 0; }
.inbox__item:hover { background: var(--bg-soft); }
.inbox__pri { width: 3px; align-self: stretch; border-radius: 3px; flex: none; background: var(--muted); }
.inbox__pri.dn { background: var(--signal); }
.inbox__pri.am { background: var(--amber-strong); }
.inbox__pri.ac { background: var(--brand); }
.inbox__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); flex: none; background: var(--bg-soft); color: var(--muted); }
.inbox__ic svg { width: 18px; height: 18px; }
.inbox__ic.dn { background: var(--signal-bg); color: var(--signal); }
.inbox__ic.am { background: var(--amber-bg); color: var(--amber-strong); }
.inbox__m { min-width: 0; flex: 1; }
.inbox__t { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.inbox__r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.inbox__code { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }

/* Пустое состояние «всё чисто» */
.allclear { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px; color: var(--muted); }
.allclear svg { width: 44px; height: 44px; color: var(--ok-line); margin-bottom: 12px; }
.allclear b { color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* Список непрочитанного */
.unread__item { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background var(--dur-fast); }
.unread__item:last-child { border-bottom: 0; }
.unread__item:hover { background: var(--bg-soft); }
.unread__m { min-width: 0; flex: 1; }
.unread__from { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.unread__from .side { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-left: 6px; }
.unread__body { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread__when { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); flex: none; }

/* Свежие файлы */
.freshfiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; padding: 14px 16px; }
.freshfile { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color var(--dur-fast), transform var(--dur-fast); background: var(--bg); }
.freshfile:hover { border-color: var(--brand); transform: translateY(-2px); }
.freshfile__ic { color: var(--brand); }
.freshfile__ic svg { width: 20px; height: 20px; }
.freshfile__n { font-size: 11px; color: var(--ink-2); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Дедлайны */
.deadline { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.deadline:last-child { border-bottom: 0; }
.deadline:hover { background: var(--bg-soft); }
.deadline__date { display: flex; flex-direction: column; align-items: center; width: 44px; flex: none; padding: 5px 0; border-radius: var(--radius); background: var(--bg-soft); }
.deadline__day { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1; }
.deadline__mon { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.deadline--over .deadline__date { background: var(--signal-bg); }
.deadline--over .deadline__day { color: var(--signal); }
.deadline__m { min-width: 0; flex: 1; }
.deadline__t { font-size: 13px; font-weight: 600; color: var(--ink); }
.deadline__s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* Лента активности */
.tl { position: relative; padding-left: 6px; }
.tl__i { position: relative; padding: 0 0 18px 26px; }
.tl__i::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: -4px; width: 1.5px; background: var(--line); }
.tl__i:last-child::before { display: none; }
.tl__dot { position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--brand); z-index: 1; }
.tl__i.dn .tl__dot { border-color: var(--signal); }
.tl__i.sp .tl__dot { border-color: var(--ok-line); }
.tl__i.am .tl__dot { border-color: var(--amber-strong); }
.tl__d { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }
.tl__l { font-size: 13px; font-weight: 600; color: var(--ink); margin: 1px 0; }
.tl__l .lk { color: var(--brand); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.tl__l .lk:hover { text-decoration: underline; }
.tl__t { font-size: 12.5px; color: var(--muted); }

/* Мини-карточки заказов */
.mini-orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
