@import url("/static/css/erp-components.css");
:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #242a35;
  background: #f6f7f9;
  font-synthesis: none;
  font-size: 14px;
  --accent: #a72b44;
  --accent-hover: #8c2037;
  --border: #e6e8ed;
  --muted: #7a8291;
  --ink: #202735;
  --sidebar: #19212e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 1.3px;
  color: white;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-size: 21px;
  font-weight: 750;
  font-family: Georgia, serif;
  letter-spacing: -2px;
}
.brand-product {
  font-size: 10px;
  letter-spacing: 1px;
  color: #b4bccc;
  border-left: 1px solid #465064;
  padding-left: 9px;
  margin-left: 2px;
}
.erp-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #b7c0cf;
  padding: 28px 18px 16px;
  display: flex;
  flex-direction: column;
  z-index: 25;
  overflow: auto;
}
.sidebar .brand {
  padding: 0 9px;
}
.workspace-label {
  padding: 20px 12px 22px;
  font-size: 12px;
  color: #b2bdce;
}
.workspace-label span {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #495364;
  border-radius: 4px;
  padding: 3px 4px;
  margin-left: 5px;
  color: #c1cad8;
}
.nav-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #778295;
  padding: 17px 13px 9px;
}
.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: #b7c0cf;
  text-align: left;
  padding: 11px 13px;
  border-radius: 6px;
  margin: 2px 0;
  font-size: 13px;
}
.nav-item > span {
  font-size: 18px;
  width: 20px;
  text-align: center;
  line-height: 1;
}
.nav-item:hover {
  background: #263142;
  color: #fff;
}
.nav-item.active {
  background: #a42c4440;
  color: #fff;
  box-shadow: inset 3px 0 0 #db6d84;
}
.nav-item.active > span {
  color: #ed9db0;
}
.nav-item b {
  font-size: 10px;
  background: #b13850;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: auto;
  font-weight: 500;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a5b0c0;
  font-size: 12px;
  padding: 8px 13px;
}
.sidebar-bottom a:hover {
  color: white;
}
.sidebar-bottom a i {
  font-style: normal;
  margin-left: auto;
  color: #748195;
}
.employee-only {
  border-top: 1px solid #343c49;
  padding: 18px 8px 0;
  margin-top: 14px;
  font-size: 10px;
  color: #8996a9;
  white-space: nowrap;
}
.employee-only i,
.page-footer i,
.access-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #63a489;
  border-radius: 50%;
  margin-right: 6px;
}
.main-column {
  width: calc(100% - 232px);
  margin-left: 232px;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  position: relative;
  z-index: 20;
}
.breadcrumb {
  font-size: 12px;
  color: #9299a6;
}
.breadcrumb span {
  padding: 0 14px;
  color: #c9cdd5;
}
.breadcrumb b {
  color: #525c6d;
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-actions select {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  max-width: 220px;
  background: transparent;
  font-size: 12px;
  padding-right: 20px;
  min-height: 30px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 5px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  color: #6c7586;
}
.icon-button:hover {
  background: #f0f2f5;
}
.profile-button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  border: 0;
  color: #505969;
  padding: 0;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #9b334a;
  background: #f5e7eb;
  font-size: 13px;
  font-weight: 700;
}
.profile-button b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.profile-button small {
  display: block;
  color: #8d95a2;
  font-size: 10px;
  margin-top: 3px;
}
.profile-button > span:last-child {
  margin-left: 8px;
}
.profile-menu {
  position: absolute;
  right: 30px;
  top: 66px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px #24344b1c;
  padding: 12px;
  width: 220px;
  border-radius: 8px;
}
.profile-menu p {
  margin: 0;
  padding: 8px;
  font-size: 11px;
  color: #838d9d;
}
.profile-menu a,
.profile-menu button {
  display: block;
  padding: 10px;
  width: 100%;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  color: #444f61;
}
.profile-menu a:hover,
.profile-menu button:hover {
  background: #f5f6f8;
}
.content {
  max-width: 1640px;
  margin: auto;
  padding: 33px 38px 24px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.9px;
  color: #a05d6b;
}
.page-heading h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 1px;
  margin: 9px 0;
}
.page-heading p {
  font-size: 12px;
  color: #8b92a0;
  margin: 10px 0 0;
}
.heading-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.environment-tag {
  font-size: 10px;
  color: #9a8190;
  border: 1px solid #e5dae0;
  padding: 6px 9px;
  border-radius: 5px;
  background: #fbf9fa;
  white-space: nowrap;
}
.primary,
.secondary,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 37px;
  padding: 9px 16px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: var(--accent-hover);
}
.secondary {
  background: white;
  color: #5e6878;
  border-color: #dde1e8;
}
.secondary:hover {
  background: #f5f6f8;
}
.danger-button {
  background: #fcf1f3;
  color: #ac2e48;
  border-color: #f1ccd5;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #a0a7b4;
  font-size: 10px;
}
.page-footer i {
  width: 5px;
  height: 5px;
  background: #a8b4c2;
}
.loading-state,
.empty-state {
  padding: 64px 20px;
  text-align: center;
  color: #939ba9;
  font-size: 12px;
}
.loading-state {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #273548;
  color: #fff;
  padding: 13px 24px;
  border-radius: 7px;
  box-shadow: 0 8px 32px #0002;
  font-size: 12px;
  z-index: 200;
  max-width: 80vw;
}
.toast.error {
  background: #a12c42;
}
.login-page {
  background: #f1f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  max-width: 1040px;
  width: 100%;
  min-height: 650px;
  box-shadow: 0 25px 70px #202b3a1a;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.login-story {
  background:
    radial-gradient(ellipse at 85% 80%, #663048 0, transparent 55%),
    linear-gradient(140deg, #1a2331, #273041);
  padding: 45px;
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
}
.login-copy {
  margin: auto 0;
  padding: 54px 0;
}
.login-copy .eyebrow {
  color: #cc99a7;
  font-size: 10px;
  letter-spacing: 2px;
}
.login-copy h1 {
  font-size: 39px;
  font-weight: 550;
  line-height: 1.6;
  letter-spacing: 2px;
  margin: 20px 0;
}
.login-copy p {
  font-size: 13px;
  line-height: 2;
  color: #b5bdcc;
}
.login-route {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 38px;
  color: #dcc2cc;
  font-size: 10px;
}
.login-route span {
  border: 1px solid #89707e;
  padding: 9px;
  border-radius: 5px;
}
.login-route i {
  font-style: normal;
  color: #ad788c;
}
.login-story footer {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9aa6b9;
}
.login-form-panel {
  padding: 65px 53px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.access-label {
  color: #708a7d;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.login-form-panel h2 {
  font-size: 25px;
  font-weight: 600;
  margin: 24px 0 0;
  letter-spacing: 1px;
}
.login-form-panel > p {
  font-size: 12px;
  line-height: 1.8;
  margin: 13px 0 28px;
}
.login-form-panel label {
  display: block;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  color: #586274;
}
.login-form-panel input {
  display: block;
  width: 100%;
  height: 43px;
  margin-top: 9px;
  border: 1px solid #dfe3e9;
  background: #fcfcfd;
  border-radius: 5px;
  padding: 0 13px;
  font-size: 12px;
}
.login-form-panel input:focus {
  border-color: #b76d7e;
  outline: 2px solid #a72b4410;
}
.login-form-panel .primary {
  width: 100%;
  height: 43px;
  justify-content: space-between;
}
.form-error {
  color: #ad2d48;
  font-size: 12px;
  line-height: 1.8;
  min-height: 2px;
}
.access-note {
  background: #f7f8fa;
  border-left: 2px solid #c3cad5;
  padding: 13px 15px;
  margin: 25px 0 20px;
  color: #80899a;
  font-size: 10px;
  line-height: 1.9;
}
.access-note strong {
  color: #566173;
  font-size: 11px;
}
.access-note p {
  margin: 4px 0 0;
}
.text-link {
  font-size: 11px;
}
.login-footnote {
  font-size: 9px;
  color: #aaaeb9;
  margin-top: 35px;
  line-height: 1.7;
}
@media (max-width: 1180px) {
  .sidebar {
    width: 205px;
    padding-inline: 12px;
  }
  .main-column {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .topbar,
  .content {
    padding-inline: 25px;
  }
  .brand {
    font-size: 15px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
  }
  .environment-tag {
    display: none;
  }
  .heading-actions {
    gap: 7px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 68px;
    padding: 20px 8px;
  }
  .sidebar .brand {
    padding: 0 9px;
    font-size: 0;
    gap: 0;
  }
  .brand-product,
  .workspace-label,
  .nav-caption,
  .sidebar-bottom,
  .nav-item b {
    display: none;
  }
  .nav-item {
    font-size: 0;
    padding: 14px 11px;
    margin-top: 8px;
  }
  .nav-item > span {
    font-size: 22px;
  }
  .main-column {
    margin-left: 68px;
    width: calc(100% - 68px);
  }
  .content {
    padding: 24px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 65px;
  }
  .topbar-actions {
    gap: 9px;
  }
  .topbar-actions select {
    max-width: 150px;
  }
  .profile-button > span:nth-child(2) {
    display: none;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.8;
  }
  .page-footer {
    gap: 15px;
    line-height: 1.7;
  }
  .login-page {
    padding: 18px;
  }
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 460px;
    min-height: 0;
  }
  .login-story {
    padding: 25px;
  }
  .login-copy,
  .login-story footer {
    display: none;
  }
  .login-form-panel {
    padding: 35px;
  }
  .environment-tag {
    display: none;
  }
}
