/* app-specific additions on top of v1.css */

* { box-sizing: border-box; }
body { margin: 0; }
.hidden { display: none !important; }

.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #e8eef8 0%, #f4f6f9 55%, #eef2f7 100%);
}
.login-card {
  width: 380px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 30px 80px rgba(15, 23, 42, .12); padding: 30px 30px 24px;
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-brand .brand-mark { width: 38px; height: 38px; }
.login-card h1 { font-size: 22px; margin: 0 0 6px; }
.login-card .sub { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.login-card label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.login-card input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 12px; font-size: 13px; font-family: inherit; outline: none;
}
.login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
.login-card button { width: 100%; margin-top: 18px; justify-content: center; height: 40px; }
.login-hint { margin-top: 14px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.login-error { margin-top: 10px; color: var(--danger); font-size: 12px; min-height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: #0b1220; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 12px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #b91c1c; }

.modal-mask { z-index: 100; }
.modal.wide { width: min(1320px, 96vw); }
.modal.mid { width: min(760px, 94vw); }
.modal-body { max-height: 72vh; overflow: auto; }
.modal-body.tight { max-height: 60vh; }

.form-section { margin-bottom: 18px; }
.form-section h3 { font-size: 12px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.field-grid .full { grid-column: 1 / -1; }
.field-grid label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.field-grid input, .field-grid select, .field-grid textarea {
  width: 100%; min-height: 34px; border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 9px; font-size: 12px; font-family: inherit; background: var(--surface); color: var(--text);
}
.field-grid textarea { min-height: 58px; resize: vertical; }
.field-grid input:focus, .field-grid select:focus, .field-grid textarea:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-weak);
}

.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 10px; }
.filter-row input, .filter-row select {
  height: 32px; border: 1px solid var(--line); border-radius: 7px; padding: 0 9px;
  font-size: 12px; font-family: inherit; background: var(--surface);
}
.filter-row .spacer { margin-left: auto; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 16px 0 0; }
.tabs button {
  background: none; border: 0; padding: 10px 0 11px; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.tabs button.active { color: var(--text); border-color: var(--brand); font-weight: 600; }

.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty-state b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

.diff-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 4px 0 14px; }
.diff-summary div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.diff-summary b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.diff-summary span { font-size: 11px; color: var(--muted); }

.diff-table { max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.diff-table table { margin: 0; }
.diff-table td, .diff-table th { font-size: 11px; }
.change-old { color: var(--danger); text-decoration: line-through; }
.change-new { color: var(--success); font-weight: 600; }

.output-scroll { overflow: auto; max-height: 66vh; border: 1px solid var(--line); border-radius: 8px; }
tr.selected { background: #eaf2ff !important; }
tr.selected td { font-weight: 600; }
.output-table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.output-table th, .output-table td { font-size: 11px; padding: 8px; border-bottom: 1px solid var(--line-soft); white-space: normal; vertical-align: top; }
.output-table th { background: var(--surface-2); text-align: left; position: sticky; top: 0; }
.output-table .group td { background: var(--brand-weak); font-weight: 650; font-size: 12px; }

.user-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.user-row:last-child { border-bottom: 0; }
.user-row .avatar { width: 34px; height: 34px; flex: 0 0 34px; font-size: 12px; }

.code-input { font-family: var(--font-num); }
.container-table { table-layout: fixed; width: 100%; }
.container-table th, .container-table td { font-size: 11px; padding: 8px 7px; vertical-align: middle; }
.container-table td { overflow: hidden; text-overflow: ellipsis; }
.container-table td:nth-child(10) { white-space: nowrap; }
.container-table .cust { max-width: 195px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 11px; }

@media (max-width: 900px) {
  .field-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr !important; }
}

/* 可读性：整体字体放大一档，优先保证表格、表单和权限弹窗可读 */
body { font-size: 16px; line-height: 1.55; }
.sidebar { width: 270px; flex: 0 0 270px; }
h1 { font-size: 30px; }
.v1-head h1 { font-size: 29px; }
.v1-head .sub { font-size: 14px; }
.nav-item { font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
.nav-label { font-size: 11px; }
.btn { font-size: 14px; height: 37px; }
.chip { font-size: 14px; height: 33px; }
.small { font-size: 13px !important; }
.container-table th, .container-table td { font-size: 13px !important; padding: 9px 8px; }
.container-table th { font-size: 12px !important; }
.diff-table th, .diff-table td, .output-table th, .output-table td { font-size: 12.5px !important; }
.field-row { font-size: 14px; }
.field-row .k { font-size: 13px; }
.panel-head h2 { font-size: 15px; }
.modal-head h2 { font-size: 17px; }
.modal-body .small { font-size: 13.5px !important; }
.field-grid label { font-size: 13px; }
.field-grid input, .field-grid select, .field-grid textarea { font-size: 14px; min-height: 38px; }
.filter-row input, .filter-row select { font-size: 14px; height: 36px; }
.form-section h3 { font-size: 13.5px; }
.summary .k { font-size: 12.5px; }
.summary .f { font-size: 12px; }
.summary .v { font-size: 25px; }
.diff-summary b { font-size: 23px; }
.diff-summary span { font-size: 12.5px; }
.empty-state { font-size: 14px; }
.tabs button, .tab { font-size: 14px; }
.toast { font-size: 13px; }
/* 权限弹窗中的模块卡片 */
#employeeModules .chip { font-size: 14px; min-height: 34px; }

