:root {
  --billing-ink: #1f2d3d;
  --billing-muted: #909399;
  --billing-line: #e4e7ed;
  --billing-bg: #f5f7fa;
  --billing-accent: #409eff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--billing-bg);
  color: var(--billing-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

.layout {
  height: 100vh;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--billing-ink);
  color: #fff;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.who {
  font-size: 13px;
  opacity: 0.85;
}

.side-menu {
  height: calc(100vh - 60px);
  border-right: 1px solid var(--billing-line);
}

.page {
  background: var(--billing-bg);
}

.page-placeholder {
  padding: 48px 24px;
  border: 1px dashed var(--billing-line);
  border-radius: 8px;
  background: #fff;
  color: var(--billing-muted);
  text-align: center;
}

/* Login page */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--billing-ink);
}

.login-card {
  width: 320px;
  padding: 32px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.login-card h1 {
  margin: 0 0 20px;
  font-size: 18px;
}

.login-card label {
  display: block;
  margin-bottom: 14px;
  color: #606266;
  font-size: 13px;
}

.login-card input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 14px;
}

.login-card button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--billing-accent);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

#error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #f56c6c;
  font-size: 13px;
}

/* Admin, audit, credit and unassigned pages */

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 16px;
  font-weight: 600;
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.line-tag {
  margin-right: 6px;
}

.muted {
  color: var(--billing-muted);
}

.table-foot {
  margin-top: 12px;
  font-size: 13px;
}

.detail {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
}
