:root {
  --ink: #182538;
  --muted: #66788d;
  --line: #d7e2ec;
  --soft: #f4f8fb;
  --panel: #ffffff;
  --primary: #008fd3;
  --primary-dark: #006da6;
  --primary-deep: #074a78;
  --green: #24805a;
  --amber: #9a6814;
  --red: #b8453b;
  --cyan: #0f9fc8;
  --violet: #596da8;
  --shadow: 0 16px 42px rgba(19, 43, 72, 0.12);
  font-family:
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2f6fa;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 78% 18%, rgba(0, 143, 211, 0.12), transparent 28%),
    linear-gradient(135deg, #f7fbfe 0%, #eef5fa 58%, #e7f2f8 100%);
}

.login-shell {
  width: min(1080px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(153, 180, 203, 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(19, 43, 72, 0.14);
}

.login-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 46px 42px;
}

.login-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  color: var(--primary-deep);
}

.brand-logo {
  display: block;
  width: 138px;
  height: auto;
  object-fit: contain;
}

.brand-logo-login {
  width: 76px;
}

.login-brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.login-brand p {
  margin: 6px 0 0;
  color: #557086;
  font-size: 15px;
}

.login-card {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-card-head {
  margin-bottom: 22px;
}

.login-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.login-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-card .form-row {
  margin-bottom: 14px;
}

.login-error {
  min-height: 20px;
  margin: 2px 0 12px !important;
  color: var(--red) !important;
}

.login-button {
  width: 100%;
  min-height: 42px;
}

.wecom-login-area {
  margin-top: 18px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.wecom-login-button {
  width: 100%;
  min-height: 42px;
  color: var(--primary-dark);
  border-color: #9bcce5;
  background: #f4fbfe;
  text-decoration: none;
}

.wecom-login-button:hover {
  background: #eaf8fd;
}

.login-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: linear-gradient(180deg, #79b7e4 0%, #f7eee3 50%, #f7fbfc 100%);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./img/bg.png") 76% top / auto 82% no-repeat;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.18) 20%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(244, 249, 252, 0.78) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  min-height: 100vh;
  height: 100vh;
  padding: 24px 18px;
  background:
    linear-gradient(rgba(245, 250, 253, 0.24), rgba(232, 243, 249, 0.42)),
    url("./img/ce-sidebar-hd.jpg") center bottom / cover no-repeat;
  color: #173a51;
  position: sticky;
  top: 0;
  align-self: start;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f1ef;
  color: #105263;
  font-weight: 800;
  font-size: 22px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.brand p,
.user-panel p,
.eyebrow {
  margin: 0;
  color: #7a8da1;
  font-size: 12px;
}

.sidebar .brand-logo {
  width: 58px;
  height: 58px;
  padding: 4px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(22, 68, 95, 0.1);
}

.sidebar .brand {
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.sidebar .brand h1 {
  margin: 0;
  font-size: 18px;
}

.sidebar .brand p,
.sidebar .user-panel p {
  color: #4f7186;
}

.field-label {
  display: block;
  color: #b6c8d2;
  margin-bottom: 7px;
  font-size: 13px;
}

.control,
.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 40px;
  padding: 8px 10px;
}

.textarea {
  resize: vertical;
  min-height: 88px;
}

.user-panel {
  margin: 16px 0 22px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(117, 158, 181, 0.34);
  box-shadow: 0 10px 28px rgba(28, 78, 106, 0.08);
  backdrop-filter: blur(5px);
}

.reset-button {
  width: 100%;
  min-height: 36px;
  margin: -8px 0 18px;
  border: 1px solid rgba(83, 126, 151, 0.32);
  border-radius: 6px;
  color: #315c75;
  background: rgba(255, 255, 255, 0.46);
}

.reset-button:hover {
  background: rgba(255, 255, 255, 0.74);
}

.user-panel strong {
  display: block;
  margin-bottom: 4px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #294f68;
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
  padding: 0 12px;
}

.nav-item span {
  width: 20px;
  text-align: center;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-deep);
  box-shadow: 0 8px 20px rgba(28, 78, 106, 0.1);
}

.main {
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.2)),
    #eef4f8;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h2 {
  margin: 5px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
}

.alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 620px;
}

.pill,
.status-badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill {
  background: #ffffff;
  border-color: var(--line);
  color: var(--muted);
}

.pill.warn {
  color: var(--amber);
  border-color: #edcf9a;
  background: #fff8ec;
}

.pill.danger {
  color: var(--red);
  border-color: #f0bcb6;
  background: #fff1ef;
}

.view-root {
  display: grid;
  gap: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-height: 108px;
  box-shadow: 0 8px 22px rgba(19, 43, 72, 0.06);
  text-align: left;
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
  line-height: 1;
}

.metric.accent-a {
  border-top: 4px solid var(--primary);
}

.metric.accent-b {
  border-top: 4px solid var(--cyan);
}

.metric.accent-c {
  border-top: 4px solid var(--red);
}

.metric.accent-d {
  border-top: 4px solid var(--green);
}

.metric-link {
  width: 100%;
}

.metric-link:hover {
  border-color: #9bcce5;
  background: #f6fbfe;
  transform: translateY(-1px);
}

.metric-action {
  display: grid;
  place-items: center;
  gap: 8px;
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), #0c73b7);
  color: #fff;
  text-align: center;
}

.metric-action span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
  line-height: 1;
}

.metric-action strong {
  margin: 0;
  font-size: 24px;
}

.metric-action:hover {
  background: linear-gradient(135deg, var(--primary-dark), #075f9a);
}

.metric-action:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.band,
.tool-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(19, 43, 72, 0.04);
}

.band-header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.band-header h3,
.section-header h3,
.drawer-panel h3 {
  margin: 0;
  font-size: 18px;
}

.quick-actions,
.filters,
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-editor {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) 88px minmax(160px, 1fr) minmax(140px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

#transfer-super-admin-form {
  grid-template-columns: minmax(260px, 1fr) auto;
}

#transfer-super-admin-form .button {
  min-width: 148px;
  white-space: nowrap;
}

.button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #0c73b7);
  border-color: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #075f9a);
}

.button.danger {
  color: var(--red);
  border-color: #e7b6b0;
  background: #fff7f6;
}

.button.ghost {
  background: transparent;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 12px 11px;
  border-bottom: 1px solid #edf1f4;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  background: #f4f9fc;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.task-title {
  font-weight: 700;
  color: var(--ink);
}

.subtext {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.status-open {
  color: var(--primary);
  background: #eaf8fd;
  border-color: #aedced;
}

.status-overdue {
  color: var(--red);
  background: #fff1ef;
  border-color: #edb7b0;
}

.status-pending {
  color: var(--amber);
  background: #fff8ec;
  border-color: #eacb94;
}

.status-done {
  color: var(--green);
  background: #eef8f1;
  border-color: #b9d9c3;
}

.progress {
  display: grid;
  gap: 5px;
  min-width: 120px;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e7edf1;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.progress-bar.overdue {
  background: var(--red);
}

.progress-bar.done {
  background: var(--green);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-row.full {
  grid-column: 1 / -1;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  color: #334454;
  font-size: 13px;
  font-weight: 700;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.required {
  color: var(--red);
}

.person-picker {
  position: relative;
}

.person-search-input {
  min-height: 56px;
  border-radius: 10px;
  font-size: 16px;
}

.person-search-input::placeholder {
  color: #9aa7b5;
}

.picker-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.picker-option {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.picker-option:hover {
  background: #f0f8fc;
}

.picker-option.selected {
  background: #eaf8fd;
  color: var(--primary-dark);
}

.picker-option strong {
  font-size: 14px;
}

.picker-option span {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}

.picker-option em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-style: normal;
  color: var(--green);
  font-size: 12px;
}

.picker-option em::before {
  content: "✓ ";
}

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 7px 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f0f8fc;
  font-size: 13px;
}

.selected-chip button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #e6edf1;
  color: var(--muted);
  line-height: 1;
  padding: 0;
}

.checkbox-list {
  display: grid;
  gap: 7px;
  max-height: 188px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.checkbox-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 30px;
  padding: 6px 7px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
}

.checkbox-item:hover {
  background: #f4f7f9;
}

.checkbox-item input {
  margin: 2px 0 0;
}

.org-tree {
  display: grid;
  gap: 9px;
}

.org-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.org-node.depth-1 {
  margin-left: 18px;
}

.org-node.depth-2 {
  margin-left: 36px;
}

.org-node.depth-3 {
  margin-left: 54px;
}

.tag {
  background: #f4f9fc;
  border-color: var(--line);
  color: var(--muted);
}

.tag.role-admin {
  color: var(--violet);
  border-color: #c9c0ec;
  background: #f4f1ff;
}

.drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.drawer.open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 49, 80, 0.48);
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(860px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

#drawer-title {
  margin: 0;
  padding-right: 44px;
  font-size: 24px;
  line-height: 1.35;
}

.task-content-block {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #bfdae8;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #f6fbfe;
  color: #223344;
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.drawer-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 20px;
  line-height: 1;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.detail-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #f9fbfc;
}

.detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-item strong {
  display: block;
  margin-top: 4px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.timeline-item {
  border-left: 3px solid var(--primary);
  padding: 8px 0 8px 12px;
}

.timeline-item time {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.empty.compact {
  padding: 12px;
  font-size: 13px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
  font-size: 13px;
}

.bar-track {
  height: 12px;
  background: #e8eef2;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.admin-tabs {
  width: fit-content;
}

.admin-tabs button {
  min-width: 96px;
}

.admin-role-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.admin-role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-role-item div {
  display: grid;
  gap: 3px;
}

.admin-role-item span {
  color: var(--muted);
  font-size: 13px;
}

.org-admin-grid {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.org-tree-panel {
  position: sticky;
  top: 18px;
}

.org-tree-view {
  max-height: min(620px, calc(100vh - 250px));
  overflow: auto;
  padding: 2px 4px 2px 2px;
}

.org-tree-root,
.org-tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.org-tree-children {
  position: relative;
  margin-left: 10px;
  padding-left: 18px;
}

.org-tree-children::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 14px;
  left: 0;
  border-left: 1px solid #c6dce8;
}

.org-tree-item {
  position: relative;
  margin: 7px 0;
}

.org-tree-children > .org-tree-item::before {
  content: "";
  position: absolute;
  top: 21px;
  left: -18px;
  width: 18px;
  border-top: 1px solid #c6dce8;
}

.org-tree-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 255px;
}

.org-tree-button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.org-tree-button:hover,
.org-tree-button.active {
  border-color: #8fcbe4;
  background: #eef9fd;
}

.org-tree-button.type-顶层 {
  border-color: #8fcbe4;
  background: #eaf8fd;
}

.org-tree-button.type-部门 {
  border-color: #d4e1e7;
  background: #fbfcfd;
}

.org-tree-button.type-层级 {
  min-height: 40px;
  background: #f8fafb;
}

.org-tree-button.type-人员 {
  min-height: 38px;
  border-color: #e3e9ee;
  background: #fff;
}

.org-tree-button.type-人员 em {
  visibility: hidden;
}

.org-collapse-button,
.org-collapse-spacer {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  justify-self: center;
  border: 0;
  border-radius: 5px;
  background: #e8f4fa;
  color: var(--primary-dark);
  font-size: 12px;
  line-height: 1;
}

.org-collapse-button {
  cursor: pointer;
}

.org-collapse-button:hover {
  background: #d6edf8;
}

.org-collapse-spacer {
  background: transparent;
  color: #a7b2bb;
}

.tree-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 6px;
  align-items: baseline;
  min-width: 0;
}

.tree-main strong {
  color: var(--primary);
  font-size: 13px;
}

.tree-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.tree-main small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.org-tree-button em {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  background: #eff7fb;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.bulk-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.15fr) auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.access-request-card {
  margin-top: 12px;
}

.access-request-card:first-of-type {
  margin-top: 0;
}

.recommendation-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #cfe4ef;
  border-radius: 8px;
  background: #f6fbfe;
}

.recommendation-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-deep);
  font-size: 13px;
}

.recommendation-box p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.recommendation-box .hint {
  grid-column: 1 / -1;
  margin: 0;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.people-admin-table {
  min-width: 1050px;
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.relation-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1.15fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.relation-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.relation-card span {
  color: var(--muted);
  font-size: 12px;
}

.relation-card b {
  justify-self: center;
  color: var(--primary);
  font-size: 13px;
}

.relation-more {
  margin-top: 10px;
}

.notice-list {
  display: grid;
  gap: 8px;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  min-height: 31px;
  padding: 5px 10px;
}

.segmented button.active {
  background: var(--primary);
  color: #fff;
}

.hidden {
  display: none !important;
}

.form-row.is-disabled {
  opacity: 0.55;
}

@media (max-width: 1680px) {
  .org-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .org-tree-panel {
    position: static;
  }

  .org-tree-view {
    max-height: 520px;
  }
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
    min-height: auto;
  }

  .login-brand {
    justify-content: flex-start;
    text-align: left;
  }

  .login-panel {
    padding: 36px 32px;
  }

  .login-visual {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    height: auto;
    background-position: center 68%;
    background-color: #eaf4f9;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
  }

  .topbar,
  .grid-2,
  .chart-grid,
  .org-admin-grid,
  .relation-grid {
    grid-template-columns: 1fr;
  }

  .org-tree-panel {
    position: static;
  }

  .bulk-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    display: grid;
  }

  .alert-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 18px;
    place-items: center;
  }

  .login-brand {
    width: 100%;
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .brand-logo-login {
    width: 76px;
  }

  .login-brand h1 {
    font-size: 24px;
  }

  .login-panel {
    padding: 28px 22px;
  }

  .main {
    padding: 16px;
  }

  .metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar h2 {
    font-size: 24px;
  }

  .drawer-panel {
    padding: 18px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .bulk-toolbar,
  .relation-card {
    grid-template-columns: 1fr;
  }

  .recommendation-box {
    grid-template-columns: 1fr;
  }

  .relation-card b {
    justify-self: start;
  }
}
