@charset "UTF-8";
/* Личный кабинет корпоративного клиента. Свой файл — кабинет живёт
   отдельно от публичного сайта и от админки Антона. */
:root {
  --ink: #1b1533;
  --plum: #241a52;
  --plum-deep: #150e33;
  --accent: #3f6098;
  --accent-ink: #2c4770;
  --accent-soft: #a6bad9;
  --paper: #fdfdff;
  --paper-2: #f3f4f8;
  --ivory: #f2f3f6;
  --line: rgba(27, 21, 51, 0.12);
  --line-2: rgba(27, 21, 51, 0.2);
  --muted: #6b6678;
  --muted-2: #8b8797;
  --good: #2f8f52;
  --bad: #b3423f;
  --serif: "Spectral", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--ivory);
  font-family: var(--sans);
  color: var(--ink);
}

/* ---------- вход ---------- */
.cab-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cab-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 34px;
  box-shadow: 0 30px 60px -30px rgba(21, 14, 51, 0.3);
}
.cab-seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
}
.cab-login-card h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}
.cab-login-card .sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
}
.cab-field {
  margin-bottom: 16px;
}
.cab-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.cab-field input,
.cab-field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--line-2);
  border-radius: 9px;
  outline: none;
  background: #fff;
}
.cab-field input:focus {
  border-color: var(--accent);
}
.cab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 9px;
  background: var(--plum);
  color: #fff;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.cab-btn:hover {
  background: var(--accent-ink);
}
.cab-btn.full {
  width: 100%;
}
.cab-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.cab-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.cab-err {
  background: rgba(179, 66, 63, 0.1);
  border: 1px solid rgba(179, 66, 63, 0.3);
  color: var(--bad);
  font-size: 13.5px;
  padding: 11px 13px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.cab-ok {
  background: rgba(47, 143, 82, 0.1);
  border: 1px solid rgba(47, 143, 82, 0.3);
  color: var(--good);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 13px;
  border-radius: 9px;
  margin-bottom: 16px;
}

/* ---------- шапка кабинета ---------- */
.cab-top {
  background: var(--plum);
  color: #fff;
}
.cab-top-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cab-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.cab-brand .s {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.cab-brand .n {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.cab-who {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}
.cab-who form {
  display: inline;
}
.cab-who button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--sans);
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
}
.cab-who button:hover {
  color: #fff;
}

/* ---------- содержимое ---------- */
.cab-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 28px 70px;
}
.cab-head {
  margin-bottom: 26px;
}
.cab-head h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 6px;
}
.cab-head p {
  font-size: 14.5px;
  color: var(--muted);
}
.cab-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.cab-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.cab-stat .l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.cab-stat .v {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.cab-stat .s {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 7px;
}
.cab-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.cab-block h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cab-block .hint {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- выданные коды ---------- */
.cab-fresh {
  background: rgba(63, 96, 152, 0.06);
  border: 1px solid rgba(63, 96, 152, 0.22);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.cab-fresh .t {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}
.cab-fresh-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.cab-code-chip {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid var(--accent-soft);
  border-radius: 9px;
  padding: 9px 14px;
  letter-spacing: 0.5px;
}

table.cab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.cab-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 9px 10px;
  border-bottom: 1.5px solid var(--line-2);
}
table.cab-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.cab-table tr:last-child td {
  border-bottom: none;
}
.cab-code {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.cab-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.cab-badge.used {
  background: rgba(47, 143, 82, 0.12);
  color: var(--good);
}
.cab-badge.free {
  background: rgba(63, 96, 152, 0.12);
  color: var(--accent-ink);
}
.cab-badge.warn {
  background: rgba(212, 150, 30, 0.16);
  color: #a3720f;
}
.cab-link {
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}
.cab-del {
  background: none;
  border: none;
  color: var(--bad);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

/* ---------- страница результата ---------- */
.cab-scale {
  margin-bottom: 16px;
}
.cab-scale-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.cab-scale-row .n {
  font-size: 14.5px;
  font-weight: 600;
}
.cab-scale-row .v {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--accent-ink);
}
.cab-bar {
  height: 7px;
  background: var(--paper-2);
  border-radius: 100px;
  overflow: hidden;
}
.cab-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
}
.cab-answers .r {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.cab-answers .r:last-child {
  border-bottom: none;
}
.cab-answers .qn {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}
.cab-answers .tm {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .cab-top-in,
  .cab-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .cab-head h1 {
    font-size: 24px;
  }
  .cab-block {
    padding: 20px 18px;
  }
  table.cab-table {
    font-size: 12.5px;
  }
  table.cab-table th,
  table.cab-table td {
    padding: 9px 6px;
  }
}

      /* Копирование кодов: кнопка у каждой строки и массовые кнопки */
      .copy-bar {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 16px;
      }
      .cab-code {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .cab-code .code-val {
        font-family: var(--mono);
      }
      .copy-one {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border: 1px solid var(--line-2);
        border-radius: 6px;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        flex-shrink: 0;
        padding: 0;
      }
      .copy-one:hover {
        border-color: var(--accent);
        color: var(--accent-ink);
      }
      .copy-one.copied {
        border-color: #2f8f52;
        color: #2f8f52;
        background: rgba(47, 143, 82, 0.09);
      }

      /* Разбивка по шкалам на странице результата сотрудника */
      .scale-rows {
        display: flex;
        flex-direction: column;
        gap: 14px;
      }
      .scale-top {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 7px;
      }
      .scale-name {
        font-size: 14.5px;
        font-weight: 600;
        color: var(--ink);
      }
      .scale-val {
        font-family: var(--mono);
        font-size: 13.5px;
        color: var(--accent-ink);
      }
      .scale-bar {
        height: 7px;
        border-radius: 4px;
        background: var(--paper-2);
        overflow: hidden;
      }
      .scale-bar i {
        display: block;
        height: 100%;
        border-radius: 4px;
        background: var(--accent);
        transition: width 0.5s ease;
      }