/* Стиль панели оспариваний — по эталону kraspvz.ru/recruiter.*/
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7fa;
  color: #2c3e50;
  font-size: 15px;
  line-height: 1.45;
}

/* layout */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px; background: #1f2a3a; color: #cfd8e3;
  padding: 18px 0; flex-shrink: 0;
}
.brand {
  padding: 0 18px 14px; font-weight: 700; font-size: 17px; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.brand-logo { width: 28px; height: 28px; flex-shrink: 0; }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
  color: #cfd8e3; text-decoration: none; cursor: pointer;
  padding: 9px 18px; border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: #2a3749; color: #fff; }
.sidebar nav a.active { background: #2a3749; color: #fff; border-left-color: #2b6cb0; }
.nav-group {
  padding: 14px 18px 4px; font-size: 12px;
  text-transform: uppercase; color: #7f8ea3;
}
.who { padding: 14px 18px 0; font-size: 12px; color: #7f8ea3; }

.content { flex: 1; padding: 26px 30px; max-width: 1200px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 14px 0 8px; }
.muted { color: #7f8ea3; }
a { color: #2b6cb0; }

/* cards / panels */
.cards { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.card {
  background: #fff; border-radius: 10px; padding: 18px 22px;
  min-width: 130px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card .num { font-size: 28px; font-weight: 700; }
.card .lbl { color: #7f8ea3; font-size: 13px; }
.panel {
  background: #fff; border-radius: 10px; padding: 18px 20px;
  margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* table */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f5; }
.table thead th { background: #f8fafc; font-size: 13px; color: #5b6b7d; }
.table tbody tr:nth-child(even) { background: #fafbfd; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: #eef4fb; }
.table td.nowrap { white-space: nowrap; }

/* status chips */
.status { padding: 2px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; display: inline-block; }
.status-evidence { background: #eef1f5; color: #5b6b7d; }
.status-pending { background: #fef3cd; color: #8a6d1a; }
.status-submitted { background: #e3f0fd; color: #2b6cb0; }
.status-winning, .status-won { background: #d9f2e4; color: #1f7a4d; }
.status-rejected, .status-lost { background: #fde3e3; color: #a33; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 12px; background: #eef1f5; color: #5b6b7d; margin-right: 6px; }
.badge.ok { background: #d9f2e4; color: #1f7a4d; }
.badge.bad { background: #fde3e3; color: #a33; }

/* buttons */
.btn, button {
  display: inline-block; padding: 8px 16px; border: none; border-radius: 6px;
  font: inherit; cursor: pointer; text-decoration: none;
  background: #2b6cb0; color: #fff;
}
button:hover { background: #245a93; }
button.secondary { background: #e8edf3; color: #2c3e50; }
button.secondary:hover { background: #dbe3ec; }
button.danger { background: #c53030; color: #fff; }
button.wide { width: 100%; }
button:disabled { opacity: .55; cursor: default; }

/* forms */
label { display: block; margin-bottom: 12px; font-size: 14px; }
input[type=text], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 8px 10px; margin-top: 4px;
  border: 1px solid #d6dde5; border-radius: 6px; font: inherit; background: #fff;
}
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row label { flex: 1; min-width: 140px; margin-bottom: 0; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.perm { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }

/* dashboard bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; background: #2b6cb0; border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .bar span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: #5b6b7d; }
.bars .bar i { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: #7f8ea3; font-style: normal; }

/* progress / log / files (dev) */
.progress { background: #eef1f5; border-radius: 8px; height: 12px; overflow: hidden; margin: 10px 0; }
#progress-bar { height: 100%; width: 0; background: #2b6cb0; transition: width .2s; }
.files { display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-bottom: 8px; }
.log {
  background: #1f2a3a; color: #d7e0ea; border-radius: 8px; padding: 12px 14px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px;
  max-height: 320px; overflow: auto; white-space: pre-wrap; margin: 8px 0 0;
}
.chat-messages { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; margin-bottom: 8px; }
.msg { max-width: 78%; padding: 7px 11px; border-radius: 10px; font-size: 14px; white-space: pre-wrap; }
.msg.user { background: #d9f2e4; align-self: flex-end; }
.msg.assistant { background: #fff; border: 1px solid #e3e8ef; align-self: flex-start; }
.msg .role { display: block; font-size: 11px; color: #7a8798; margin-bottom: 2px; }

/* login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #1f2a3a; }
.login-wrap { width: 100%; max-width: 360px; padding: 20px; }
.login-card { background: #fff; border-radius: 12px; padding: 30px 28px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.login-card h1 { font-size: 19px; margin-bottom: 2px; }
.login-card .muted { margin: 0 0 18px; }
.login-logo { width: 48px; height: 48px; margin-bottom: 10px; }

.page { display: none; }
.page.active { display: block; }

/* mobile */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; padding: 10px 0 0; }
  .brand { padding: 0 14px 8px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 2px; padding: 0 8px 8px; }
  .sidebar nav a { padding: 8px 12px; border-left: none; border-radius: 8px; }
  .nav-group, .who { display: none; }
  .content { padding: 16px 12px; max-width: 100%; }
  .table { display: block; overflow-x: auto; }
  .cards { gap: 10px; }
  .card { flex: 1 1 calc(50% - 10px); min-width: 0; padding: 14px 16px; }
  .card .num { font-size: 22px; }
  input, select, textarea { font-size: 16px; }
}
