:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #36475d;
  background: #f6f8fb;
  font-size: 13px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #f3f5f9;
  color: #53677f;
}
button:hover {
  filter: brightness(0.97);
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
input,
select {
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  outline: none;
  min-width: 0;
  color: #435670;
}
input:focus,
select:focus {
  border-color: #ee8ba0;
  box-shadow: 0 0 0 2px #fae8ee;
}
.primary {
  background: #eb4f70;
  color: #fff;
}
.danger {
  color: #cf4d65;
  background: #fff0f3;
}
.secondary {
  border: 1px solid #e4e9f1;
  background: #fff;
}
.muted {
  color: #96a3b4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
  color: #273a53;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eb4f70;
  color: white;
  font-size: 19px;
  box-shadow: 0 4px 12px #eb4f7025;
}
.initial {
  padding: 60px;
  color: #8c9aae;
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 18% 20%, #ffeef1, transparent 55%), #f6f8fb;
}
.auth-card {
  width: 440px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid #e5eaf2;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 15px 60px #35475b0b;
}
.auth-card > .brand {
  margin-bottom: 25px;
}
.auth-card h1 {
  font-size: 23px;
  margin: 0 0 8px;
}
.auth-card p {
  font-size: 12px;
  color: #94a1b2;
  margin: 0 0 24px;
  line-height: 1.7;
}
.auth-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eef1f6;
  margin-bottom: 22px;
}
.auth-tabs button {
  background: none;
  border-radius: 0;
  padding: 0 0 12px;
  color: #a2adbc;
}
.auth-tabs .active {
  color: #e55d7b;
  border-bottom: 2px solid #eb4f70;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #7d8ba0;
}
.code-row {
  display: flex;
  gap: 7px;
}
.code-row input {
  flex: 1;
  width: 100px;
}
.auth-card .submit {
  width: 100%;
  margin-top: 8px;
}
.auth-foot {
  margin-top: 22px;
  font-size: 11px;
  color: #acb6c4;
  text-align: center;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 214px 1fr;
}
.sidebar {
  background: #fff;
  border-right: 1px solid #e8edf4;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 15px 14px;
}
.sidebar > .brand {
  padding: 0 7px 24px;
}
.sidebar > small {
  font-size: 10px;
  color: #acb7c6;
  margin: 0 8px 13px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: none;
  padding: 11px 12px;
  color: #8c9aae;
}
.nav .active {
  background: #fff0f4;
  color: #e75d7b;
}
.nav-icon {
  font-size: 16px;
  width: 20px;
}
.user-menu {
  margin-top: auto;
  border-top: 1px solid #eef1f7;
  padding: 15px 8px 0;
}
.user-menu strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 9px;
}
.user-menu button {
  font-size: 10px;
  background: none;
  color: #a0aebf;
  padding: 3px 8px 3px 0;
}
.main {
  min-width: 0;
}
.topbar {
  height: 58px;
  background: white;
  border-bottom: 1px solid #e9edf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}
.topbar h1 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .topbar-heading {
  min-width: 0;
  gap: 14px;
}
.topbar-heading h1 {
  flex-shrink: 0;
}
.topbar-heading p {
  font-size: 11px;
  color: #758295;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topbar-actions {
  flex-shrink: 0;
}
.topbar-actions .primary {
  font-size: 11px;
  padding: 7px 11px;
  white-space: nowrap;
}
.topbar select {
  padding: 6px 9px;
  font-size: 11px;
  max-width: 240px;
}
.pill {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 10px;
  background: #f0f4f8;
  color: #93a2b4;
  white-space: nowrap;
}
.pill.green {
  background: #edf7f1;
  color: #76a68b;
}
.pill.red {
  background: #fff0f3;
  color: #d47a8f;
}
.pill.blue {
  background: #eef5ff;
  color: #6e9ed0;
}
.content {
  padding: 19px 24px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1200px;
  align-items: start;
}
.profile-card {
  border: 1px solid #e4eaf3;
  border-radius: 9px;
  background: #fff;
  padding: 22px;
  min-width: 0;
}
.profile-card h2 {
  margin: 0 0 9px;
  font-size: 16px;
  color: #333;
}
.profile-card p {
  font-size: 11px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}
.profile-card .field {
  color: #555;
}
.profile-card > button {
  margin-top: 4px;
  font-size: 12px;
}
.profile-card .code-row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 17px;
}
.section-heading h2 {
  font-size: 18px;
  margin: 0 0 7px;
  font-weight: 600;
}
.section-heading p {
  font-size: 11px;
  color: #9ba8b9;
  margin: 0;
}
.filters {
  border: 1px solid #e4eaf3;
  background: #fff;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  font-size: 11px;
  padding: 7px 9px;
}
.filters .search {
  flex: 1;
  min-width: 140px;
}
.filters label {
  font-size: 11px;
  color: #97a6b8;
  display: flex;
  align-items: center;
  gap: 7px;
}
.filters .preset {
  padding: 7px 9px;
  font-size: 11px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 17px;
}
.kpis article {
  padding: 15px;
  background: white;
  border: 1px solid #e4eaf3;
  border-radius: 9px;
  min-width: 0;
}
.kpis article span {
  font-size: 11px;
  color: #93a1b5;
}
.kpis article strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin-top: 13px;
  letter-spacing: -0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpis article:nth-child(1) strong,
.kpis article:nth-child(3) strong {
  color: #e46c86;
}
.kpis article:nth-child(2) strong {
  color: #70a98f;
}
.kpis article small {
  font-size: 9px;
  color: #adb8c8;
  display: block;
  margin-top: 9px;
}
.panel {
  border: 1px solid #e3eaf3;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}
.panel-top {
  padding: 12px 15px;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-top > div {
  display: flex;
  gap: 16px;
  align-items: center;
}
.panel-top button {
  background: none;
  border-radius: 0;
  font-size: 12px;
  padding: 5px 0;
  color: #9aa8b9;
}
.panel-top .active {
  color: #4a607a;
  font-weight: 600;
}
.panel-top small {
  font-size: 10px;
  color: #a7b3c3;
}
.scroll {
  overflow: auto;
  min-height: 150px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f8fafd;
  font-size: 10px;
  color: #9aabbe;
  font-weight: 500;
  padding: 11px 13px;
  border-bottom: 1px solid #ecf1f7;
}
td {
  font-size: 11px;
  color: #7d90a8;
  padding: 10px 13px;
  border-bottom: 1px solid #f0f3f8;
}
tr:last-child td {
  border-bottom: 0;
}
td.amount,
th.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td strong {
  font-size: 11px;
  font-weight: 500;
  color: #4d657f;
}
td small {
  font-size: 9px;
  color: #aab7c8;
  display: block;
  margin-top: 4px;
}
td button {
  font-size: 10px;
  padding: 5px 8px;
}
tbody tr:hover {
  background: #fcfdff;
}
.account-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #fff0f4;
  display: grid;
  place-items: center;
  color: #d98095;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.note {
  font-size: 10px;
  color: #a1afc1;
  padding: 12px 2px;
  line-height: 1.8;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #a6b2c2;
  font-size: 12px;
}
.error {
  color: #c4647b;
  background: #fff2f5;
  border: 1px solid #f5dce3;
  border-radius: 7px;
  padding: 12px 15px;
  margin-bottom: 15px;
  font-size: 12px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}
.group-card {
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 9px;
  padding: 18px;
}
.group-card h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.group-card p {
  font-size: 11px;
  color: #a5b2c4;
}
.group-card button {
  font-size: 10px;
  margin-right: 7px;
}
.count {
  display: inline-flex;
  border-radius: 4px;
  background: #f3f5f9;
  padding: 2px 5px;
  color: #a4b0c1;
  font-size: 9px;
  margin-left: 5px;
}
dialog {
  border: 1px solid #e2e9f2;
  border-radius: 12px;
  padding: 0;
  max-width: 520px;
  width: calc(100vw - 32px);
  color: #53677f;
  box-shadow: 0 20px 90px #20344d2b;
}
dialog::backdrop {
  background: #34455d66;
  backdrop-filter: blur(2px);
}
.dialog-head {
  padding: 18px 23px;
  border-bottom: 1px solid #ecf0f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  font-size: 16px;
  margin: 0;
}
.dialog-head button {
  background: none;
  padding: 2px 5px;
  color: #98a7ba;
}
.dialog-body {
  padding: 22px 23px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 21px;
}
.dialog-body > p {
  font-size: 11px;
  line-height: 1.8;
  color: #9ba8ba;
  margin: 0 0 20px;
}
#toast {
  display: none;
  position: fixed;
  right: 22px;
  top: 18px;
  background: #fff;
  border: 1px solid #e1e8f1;
  box-shadow: 0 6px 30px #2b3e5818;
  border-radius: 8px;
  padding: 13px 20px;
  max-width: 400px;
  font-size: 12px;
  color: #71879f;
  z-index: 100;
}
#toast.show {
  display: block;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1200px) {
  .profile-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .topbar-heading p {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .layout {
    grid-template-columns: 185px 1fr;
  }
  .content {
    padding: 16px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
}
.assignee-fieldset {
  border: 1px solid var(--line, #e4e8ee);
  border-radius: 6px;
  padding: 12px;
  margin: 14px 0;
}
.assignee-fieldset legend {
  font-size: 12px;
  padding: 0 5px;
  color: #333;
}
.assignee-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
  overflow: auto;
  gap: 8px 12px;
}
.assignee-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
}
.assignee-list input {
  width: 14px;
  height: 14px;
  accent-color: #f04466;
}
.assignee-list small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #777;
}
.dialog-body .account-hint {
  font-size: 11px;
  color: #666;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border: 0;
    padding: 14px;
    display: block;
  }
  .sidebar > .brand {
    padding: 0 0 13px;
  }
  .sidebar > small {
    display: none;
  }
  .nav {
    flex-direction: row;
  }
  .nav button {
    padding: 8px;
    font-size: 11px;
  }
  .nav-icon {
    display: none;
  }
  .user-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    margin-top: 10px;
  }
  .user-menu strong {
    margin: 0 auto 0 0;
  }
  .topbar {
    padding: 0 15px;
    min-height: 50px;
    height: auto;
    flex-wrap: wrap;
    padding-top: 9px;
    padding-bottom: 9px;
    gap: 10px;
  }
  .topbar-actions {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .topbar select {
    max-width: 145px;
  }
  .kpis {
    gap: 7px;
  }
  .kpis article {
    padding: 11px;
  }
  .kpis article strong {
    font-size: 19px;
  }
  .kpis article small {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .filters {
    padding: 10px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
