@charset "UTF-8";

:root {
  --ink: #203653;

  --muted: #7c8aa0;

  --green: #2463bd;

  --mint: #e9f1fc;

  --paper: #f5f7fb;

  --line: #e1e7f0;

  --gold: #d6b97d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background: var(--paper);

  color: var(--ink);

  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;

  font-size: 14px;

  line-height: 1.65;
}

a {
  color: var(--green);

  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  display: inline-block;

  border: 1px solid #d4deec;

  background: white;

  border-radius: 8px;

  padding: 9px 17px;

  color: var(--ink);

  cursor: pointer;

  white-space: nowrap;
}

button:hover,
.button:hover {
  filter: brightness(0.97);

  text-decoration: none;
}

.primary {
  background: var(--green);

  color: white;

  border-color: var(--green);
}

.wide {
  width: 100%;
}

.link {
  border: 0;

  padding: 0;

  background: none;

  color: var(--green);
}

.danger {
  color: #ae4944;
}

.danger-button {
  background: #ac4540;

  color: white;

  border: 0;
}

.sidebar {
  position: fixed;

  width: 238px;

  top: 0;

  bottom: 0;

  left: 0;

  background: #fff;

  border-right: 1px solid var(--line);

  display: flex;

  flex-direction: column;

  padding: 30px 20px 18px;

  z-index: 5;
}

.brand {
  display: flex;

  gap: 13px;

  align-items: center;

  font-size: 33px;

  font-weight: 800;

  color: var(--green);

  margin-bottom: 30px;
}

.brand span {
  font-size: 22px;

  letter-spacing: 3px;

  line-height: 1.3;
}

.brand small {
  display: block;

  font-size: 8px;

  letter-spacing: 1.7px;

  margin-top: 7px;

  color: var(--muted);
}

.nav-label {
  font-size: 10px;

  color: #96a3b8;

  letter-spacing: 2px;

  margin: 15px 13px 8px;
}

.sidebar nav {
  overflow: auto;

  flex: 1;
}

.sidebar nav a {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 8px 14px;

  margin: 2px 0;

  border-radius: 7px;

  color: #62718a;

  font-size: 13px;

  line-height: 20px;
}

.sidebar nav a .nav-icon {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex: 0 0 18px;

  width: 18px;

  height: 20px;

  line-height: 1;

  font-size: 14px;
}

.sidebar nav a.active {
  background: var(--mint);

  color: var(--green);

  font-weight: 700;
}

.sidebar nav a:hover {
  background: var(--paper);

  text-decoration: none;
}

.sidebar-foot {
  display: flex;

  gap: 10px;

  align-items: center;

  border-top: 1px solid var(--line);

  padding-top: 17px;
}

.sidebar-foot small,
.member small {
  display: block;

  color: var(--muted);

  font-size: 11px;
}

.avatar {
  background: #e5edfa;

  color: var(--green);

  border-radius: 50%;

  width: 34px;

  height: 34px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 13px;

  flex-shrink: 0;
}

.main {
  margin-left: 238px;
}

.topbar {
  height: 72px;

  padding: 0 42px;

  background: #ffffffc9;

  border-bottom: 1px solid var(--line);

  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 12px;
}

.topbar > div {
  display: flex;

  gap: 23px;

  align-items: center;
}

.content {
  max-width: 1600px;

  margin: auto;

  padding: 36px 42px;
}

.page-head {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 26px;
}

.eyebrow {
  font-size: 10px;

  letter-spacing: 2.3px;

  color: var(--green);

  font-weight: 700;
}

h1 {
  font-size: 28px;

  letter-spacing: -0.7px;

  margin: 8px 0;

  font-weight: 650;
}

h2 {
  font-size: 18px;

  margin: 0 0 18px;

  font-weight: 600;
}

h3 {
  font-size: 16px;

  margin: 10px 0 5px;
}

p {
  margin: 9px 0 16px;
}

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

.small {
  font-size: 12px;
}

.stats {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 18px;

  margin: 26px 0;
}

.stat {
  padding: 23px;

  background: white;

  border: 1px solid var(--line);

  border-radius: 12px;
}

.stat > span {
  font-size: 12px;

  color: var(--muted);
}

.stat strong {
  display: block;

  font-size: 38px;

  font-weight: 550;

  line-height: 1.5;

  margin-top: 4px;

  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

.stat strong small {
  font-size: 12px;

  font-weight: 400;

  color: var(--muted);

  margin-left: 12px;
}

.stat strong.amount {
  font-size: 24px;
}

.stat-line {
  height: 3px;

  margin-top: 16px;

  background: linear-gradient(to right, #82a8df 35%, #eef2f9 35%);

  border-radius: 5px;
}

.dashboard-grid {
  display: grid;

  grid-template-columns: 1.35fr 1fr;

  gap: 22px;
}

.card {
  background: white;

  border: 1px solid var(--line);

  border-radius: 12px;

  padding: 26px;

  margin-bottom: 22px;

  min-width: 0;
}

.dashboard-grid > .card {
  margin-bottom: 0;
}

.dashboard-grid {
  margin-bottom: 22px;
}

.section-head {
  display: flex;

  justify-content: space-between;

  align-items: baseline;

  gap: 15px;
}

.section-head a {
  font-size: 12px;
}

.section-hint {
  color: var(--muted);

  font-size: 12px;
}

.badge {
  font-size: 11px;

  display: inline-block;

  background: var(--mint);

  color: var(--green);

  padding: 3px 9px;

  border-radius: 5px;

  white-space: nowrap;
}

.badge.warning {
  background: #fbf0d9;

  color: #9e7930;
}

.news {
  padding: 16px 0;

  border-bottom: 1px solid var(--line);
}

.news:last-child {
  border: 0;
}

.news p {
  color: #74849b;

  font-size: 13px;
}

.teal {
  background: #e9f0fb;

  border-color: #dbe5f4;

  position: relative;
}

.teal h2 {
  font-size: 24px;

  margin-top: 18px;
}

.reminder {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 12px 0;

  border-bottom: 1px solid #d5e0f1;
}

.reminder span {
  font-size: 12px;
}

.task-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 15px;

  padding: 13px 0;

  border-bottom: 1px solid var(--line);

  font-size: 13px;
}

.task-row:last-child {
  border: 0;
}

.task-row strong {
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 42px 15px;

  text-align: center;

  color: var(--muted);

  font-size: 13px;
}

.notice {
  padding: 15px 20px;

  border: 1px solid #d9e5f7;

  border-radius: 8px;

  background: #edf3fe;

  color: #41608b;

  margin: 0 0 22px;

  font-size: 13px;
}

.notice.error {
  background: #fff0ef;

  border-color: #efceca;

  color: #a1433c;
}

form.inline,
.inline {
  display: inline;
}

label {
  display: block;

  font-size: 13px;

  margin: 12px 0 18px;

  font-weight: 500;
}

label em {
  color: #b5674d;

  font-style: normal;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;

  width: 100%;

  padding: 10px 12px;

  margin-top: 7px;

  background: #fbfcff;

  border: 1px solid #dce3ee;

  border-radius: 7px;

  color: var(--ink);

  min-width: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #88a8da;

  outline-offset: 1px;
}

input[type="checkbox"] {
  accent-color: var(--green);

  width: 17px;

  height: 17px;
}

.checkbox {
  display: flex;

  gap: 10px;

  align-items: center;

  min-height: 43px;

  font-weight: 400;
}

.form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0 26px;
}

.plan-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.conversion-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.plan-member-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.plan-member-toolbar input[type="search"] {
  flex: 1 1 300px;
  min-width: min(100%, 260px);
  margin: 0;
}

.plan-member-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-member-import-form label { margin: 0; }
.plan-member-import-form input[type="file"] { display: none; }
.plan-member-table-wrap {
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.plan-member-table-wrap thead th { position: sticky; top: 0; z-index: 2; }
.plan-member-table-wrap tbody tr[hidden] { display: none; }
@media (max-width: 720px) {
  .plan-member-table-wrap { height: 460px; min-height: 460px; max-height: 460px; }
}

.span-two {
  grid-column: span 2;
}

.form-footer {
  display: flex;

  justify-content: flex-end;

  gap: 20px;

  align-items: center;

  border-top: 1px solid var(--line);

  padding-top: 20px;

  margin-top: 20px;
}

.reward-picker { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.reward-picker-heading, .reward-picker-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reward-picker-heading h2 { margin: 0 0 4px; }
.reward-picker-heading p { margin: 0; }
.reward-picker-heading > span { white-space: nowrap; }
.reward-picker-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.reward-picker-toolbar label { margin: 0; }
.reward-picker-actions { justify-content: flex-end; margin: 12px 0; }
.reward-picker-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.reward-picker-list label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.reward-picker-list label[hidden] { display: none; }
.reward-picker-list input { width: auto; margin: 0; }
.reward-picker-list small { color: var(--muted); }
@media (max-width: 720px) {
  .reward-picker-toolbar { grid-template-columns: 1fr; }
  .reward-picker-list { grid-template-columns: 1fr 1fr; }
}

.search {
  display: flex;

  gap: 10px;

  margin-bottom: 22px;

  max-width: 550px;
}

.search input {
  margin: 0;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;

  border-collapse: collapse;

  font-size: 12px;
}

th {
  text-align: left;

  font-size: 11px;

  font-weight: 500;

  color: var(--muted);

  background: #f7f9fd;

  padding: 13px 14px;

  white-space: nowrap;
}

td {
  padding: 17px 14px;

  border-bottom: 1px solid var(--line);

  white-space: nowrap;
}

td.wrap {
  white-space: normal;

  word-break: break-word;

  max-width: 600px;
}

tbody tr:hover {
  background: #fbfcff;
}

.actions {
  display: flex;

  align-items: center;

  gap: 13px;
}

.actions form {
  display: inline;
}

.reward-actions-heading { text-align: center; }
.reward-row-actions { display: table-cell; text-align: center; }
.reward-row-actions > a { margin-right: 13px; }

.reward-announcement-editor { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fc; }
.reward-announcement-toolbar, .reward-announcement-toolbar-actions { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.reward-announcement-toolbar h2 { margin: 0 0 4px; }
.reward-announcement-toolbar p { margin: 0; }
.reward-announcement-toolbar-actions { justify-content: flex-end; }
.reward-announcement-toolbar-actions label { min-width: 180px; margin: 0; }
.reward-announcement-toolbar-actions button { white-space: nowrap; }
.reward-announcement-editor [data-reward-announcement-fields] { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.reward-announcement-editor .form-grid { margin-top: 14px; }
.notice-paper.reward-announcement-preview { box-sizing: border-box; width: min(100%, 760px); margin: 24px auto 0; }
@media (max-width: 720px) {
  .reward-announcement-toolbar, .reward-announcement-toolbar-actions { align-items: stretch; flex-direction: column; }
  .reward-announcement-toolbar-actions label { min-width: 0; }
}
.notice-paper.document-title-left h2 { text-align: left; }
.document-body-large .indented-document { font-size: 18px; }

.narrow {
  max-width: 650px;
}

summary {
  cursor: pointer;

  font-weight: 550;

  padding: 6px 0;
}

details form {
  margin-top: 18px;
}

details + details {
  margin-top: 20px;
}

.pre-wrap {
  white-space: pre-wrap;
}

.company-strip {
  display: flex;

  gap: 18px;

  overflow: auto;

  margin-bottom: 24px;
}

.company-card {
  min-width: 210px;

  background: #edf2fc;

  border: 1px solid #d7e0f0;

  border-radius: 12px;

  padding: 20px 25px;
}

.company-card span:last-child {
  font-size: 12px;

  color: #74839d;
}

.org-canvas {
  padding: 30px;

  overflow: auto;

  background-color: #fff;

  background-image: radial-gradient(#dce5f2 1px, transparent 1px);

  background-size: 18px 18px;
}

.org-root {
  display: table;

  background: var(--green);

  color: white;

  padding: 15px 32px;

  border-radius: 10px;

  margin-bottom: 20px;

  font-size: 17px;
}

.org-branches {
  list-style: none;

  margin: 0 0 0 24px;

  padding: 0 0 0 30px;

  border-left: 2px solid #c4d5ee;

  min-width: 270px;
}

.org-branches > li {
  position: relative;

  margin: 18px 0;
}

.org-branches > li:before {
  content: "";

  position: absolute;

  left: -30px;

  top: 45px;

  width: 30px;

  border-top: 2px solid #c4d5ee;
}

.org-node {
  display: inline-block;

  min-width: 245px;

  border: 1px solid #d6e1f2;

  border-radius: 9px;

  background: white;

  padding: 14px 22px;

  box-shadow: 0 4px 14px #203d6010;
}

.org-node p {
  font-size: 12px;

  margin-bottom: 0;

  color: var(--muted);
}

.org-node .badge {
  margin-left: 14px;
}

.org-members {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin: 13px 0 18px;
}

.member {
  display: flex;

  align-items: center;

  gap: 9px;

  background: white;

  padding: 8px 15px;

  border: 1px solid var(--line);

  border-radius: 8px;

  font-size: 12px;
}

.pay-hero {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  align-items: center;

  background: var(--green);

  color: white;

  padding: 28px 34px;

  border-radius: 12px;

  margin-bottom: 24px;
}

.pay-hero strong {
  display: block;

  font-size: 38px;

  font-weight: 500;
}

.pay-hero p {
  margin: 5px 0;

  color: #d8e6fa;
}

.payslip-detail-layout {
  display: block;
}

.payslip-detail-main {
  min-width: 0;
}

.payslip-basis-card[open] summary {
  margin-bottom: 20px;
}

.payslip-basis-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.payslip-basis-summary > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fd;
}

.payslip-basis-summary span,
.payslip-basis-summary strong {
  display: block;
}

.payslip-basis-summary span {
  color: var(--muted);
  font-size: 12px;
}

.payslip-social-table {
  height: auto !important;
  margin-bottom: 16px;
}

.payslip-social-table th,
.payslip-social-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.payslip-basis-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.payslip-basis-facts p {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.payslip-basis-facts span {
  color: var(--muted);
}

.payslip-objection-history .news:last-child {
  border-bottom: 0;
}

.payslip-review-footer {
  border-top: 3px solid var(--green);
}

.payslip-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.payslip-review-heading h2 {
  margin: 4px 0 0;
}

.payslip-review-actions {
  margin-top: 10px;
}

.payslip-objection-form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
}

.payslip-confirm-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.payslip-confirm-action p {
  margin: 0;
}

.payslip-confirm-action button {
  flex: none;
}

.payslip-confirm-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.payslip-objection-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.payslip-objection-form label > span,
.payslip-objection-form label > strong {
  display: block;
}

.payslip-objection-help {
  display: block;
  margin-top: 2px;
}

.payslip-objection-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.payslip-objection-options fieldset {
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.payslip-objection-options legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.payslip-objection-options .checkbox {
  display: inline-flex;
  min-height: 28px;
  margin: 0;
  font-size: 13px;
}

.payslip-objection-option {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 110px;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.payslip-objection-option input[type="number"] {
  height: 34px;
  margin: 0;
  padding: 5px 8px;
}

.payslip-objection-form textarea {
  min-height: 76px;
  margin: 8px 0 10px;
  resize: vertical;
}

.payslip-objection-grid {
  margin-top: 12px;
  max-width: 100%;
}

.payslip-objection-grid table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.payslip-objection-grid th,
.payslip-objection-grid td {
  min-width: 128px;
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
}

.payslip-objection-grid thead tr:first-child th {
  background: #eef4ff;
  color: #315b9d;
}

.payslip-objection-grid td input[type="number"] {
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
}

.payslip-objection-grid tbody td {
  background: #fbfcff;
  border-right: 1px solid var(--line);
}

.payslip-objection-grid td input[type="number"]:focus {
  background: white;
  box-shadow: inset 0 -2px 0 #2563c6;
}

.payslip-objection-grid td.is-changed-item {
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px #8ab6ff;
}

.payroll-objection-row > td {
  position: static !important;
  padding: 0 12px 12px;
  background: #fff8f6;
  text-align: left;
}

.payroll-objection-row .attendance-correction-inline {
  border-left-color: #e75151;
}

.payroll-objection-review {
  margin-top: 14px;
}

.payroll-objection-review label {
  display: block;
}

.payroll-objection-review .correction-card-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.salary-adjust-wide table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.salary-adjust-table th,
.salary-adjust-table td {
  padding: 5px 6px;
  min-width: 168px;
  height: 42px;
  text-align: center;
  white-space: nowrap;
}

.salary-adjust-table thead th {
  background: #eef4ff;
  color: #315b9d;
}

.salary-adjust-table th small {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.salary-adjust-table .salary-adjust-cell input[type="number"] {
  width: 72px;
  height: 32px;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: right;
}

.salary-adjust-table td.is-disputed-item {
  background: #fff7ed;
}

.salary-adjust-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  white-space: nowrap;
}

.salary-original-value {
  display: inline-block;
  min-width: 60px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.salary-change-arrow {
  color: #c2410c;
  font-weight: 600;
}

.salary-adjust-table td.is-changed-item {
  background: #eff6ff;
}

.salary-adjust-table .salary-adjust-cell input[type="number"].is-changed {
  box-shadow: inset 0 -2px 0 #2563c6;
}

.salary-adjust-footer {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.salary-adjust-footer label {
  flex: 1;
  margin: 0;
}

.salary-adjust-footer input {
  margin-bottom: 0;
}

.salary-adjust-footer button {
  min-height: 42px;
}

.salary-withdraw-form {
  margin: 0;
}

.objection-old-value {
  margin-right: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.payroll-objection-inline-values {
  display: flex;
  align-items: center;
  gap: 18px;
}

.payroll-objection-inline-values > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.payroll-objection-inline-values input[type="number"] {
  width: 88px;
  height: 30px;
  margin: 0;
  padding: 3px 5px;
  border: 0;
  border-bottom: 1px solid #e5a45c;
  border-radius: 0;
  background: transparent;
  text-align: right;
}

.salary-management-objection {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.salary-management-objection-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.salary-management-objection-summary p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.salary-management-objection-summary p strong {
  color: var(--muted);
  font-size: 11px;
}

.salary-management-objection-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: none;
}

.salary-management-objection-actions input:not([type="hidden"]),
.salary-management-objection-actions button {
  box-sizing: border-box;
  height: 52px;
  min-height: 52px;
  margin: 0;
}

.salary-management-objection-actions input:not([type="hidden"]) {
  width: 210px;
}

.payslip-objection-summary-table td {
  vertical-align: top;
}

.payslip-objection-summary-table td:nth-child(3),
.payslip-objection-summary-table td:nth-child(5) {
  min-width: 220px;
}

.objection-change-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 8px 0;
}

.objection-change-list span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff4e5;
}

.objection-change-list b {
  color: #c2410c;
}

.payslip-confirm-panel {
  width: min(480px, 100%);
}

.payslip-confirm-panel h2 {
  margin: 6px 0 12px;
}

.payslip-confirm-panel .modal-actions {
  justify-content: flex-end;
}

.attendance-review-scroll.payroll-personal-scroll {
  height: auto;
  max-height: none;
}

.payroll-detail-table:not(.review-admin-grid) .attendance-action-column {
  width: 110px;
  min-width: 110px;
}

.guest .content {
  padding: 0;

  max-width: none;
}

.login-wrap {
  display: grid;

  grid-template-columns: 1.1fr 1fr;

  min-height: 92vh;
}

.login-story {
  background: #e4edfc;

  padding: 80px 12%;

  overflow: hidden;
}

.login-story h1 {
  font-size: 48px;

  line-height: 1.45;

  margin: 50px 0 22px;

  font-weight: 500;
}

.login-story p {
  color: #6880a2;

  font-size: 16px;

  line-height: 2;
}

.login-form {
  align-self: center;

  max-width: 440px;

  margin: auto;

  padding: 40px;

  width: 100%;
}

.login-form h2 {
  font-size: 26px;

  margin: 16px 0 8px;
}

.login-form form {
  margin: 35px 0 22px;
}

.login-orbit {
  height: 200px;

  width: 200px;

  border: 1px solid #b2c7e8;

  border-radius: 50%;

  margin: 50px auto 0;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 68px;

  color: #668fc9;

  position: relative;
}

.login-orbit:before {
  content: "";

  position: absolute;

  inset: -25px;

  border: 1px solid #c2d3ed;

  border-radius: 50%;
}

.login-orbit div {
  position: absolute;

  bottom: 15px;

  font-size: 10px;

  letter-spacing: 2px;
}

footer {
  color: #96a3b8;

  text-align: center;

  font-size: 10px;

  letter-spacing: 1px;

  padding: 20px;
}

.no-print {
  display: block;
}

@media (min-width: 1500px) {
  .content {
    padding: 44px 60px;
  }
}

@media (max-width: 1050px) {
  .sidebar {
    width: 195px;

    padding: 24px 12px;
  }

  .main {
    margin-left: 195px;
  }

  .content {
    padding: 28px 24px;
  }

  .topbar {
    padding: 0 24px;
  }

  .stats {
    gap: 10px;
  }

  .stat {
    padding: 18px;
  }

  .stat strong.amount {
    font-size: 19px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .payslip-review-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .sidebar {
    position: static;

    width: 100%;

    padding: 15px;
  }

  .sidebar nav {
    display: flex;

    overflow-x: auto;

    flex: none;
  }

  .sidebar nav a {
    white-space: nowrap;
  }

  .sidebar .nav-label,
  .sidebar-foot {
    display: none;
  }

  .brand {
    font-size: 24px;

    margin: 0 0 10px;
  }

  .brand span {
    font-size: 18px;
  }

  .main {
    margin: 0;
  }

  .topbar {
    height: 55px;

    padding: 0 15px;
  }

  .topbar > span {
    display: none;
  }

  .content {
    padding: 24px 15px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .page-head {
    align-items: flex-start;
  }

  h1 {
    font-size: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: span 1;
  }

  .card {
    padding: 20px;
  }

  .pay-hero {
    display: block;
  }

  .payslip-basis-summary {
    grid-template-columns: 1fr;
  }

  .payslip-objection-options {
    grid-template-columns: 1fr;
  }

  .payslip-basis-facts p {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .login-wrap {
    display: block;
  }

  .login-story {
    padding: 28px 35px;
  }

  .login-story h1 {
    font-size: 30px;

    margin: 22px 0;
  }

  .login-story p,
  .login-orbit {
    display: none;
  }

  .login-form {
    padding: 35px;
  }

  .actions {
    flex-wrap: wrap;
  }
}

@media print {
  .sidebar,
  .topbar,
  footer,
  .no-print,
  button {
    display: none !important;
  }

  .main {
    margin: 0;
  }

  .content {
    padding: 0;
  }

  .card {
    break-inside: avoid;
  }

  .dashboard-grid {
    display: block;
  }

  .card {
    margin-bottom: 15px;
  }

  .pay-hero {
    background: white;

    color: black;

    border: 1px solid #aaa;
  }

  .pay-hero p {
    color: black;
  }

  body {
    background: white;
  }

  .page-head {
    margin-bottom: 10px;
  }

  details {
    display: none;
  }
}

.calendar-grid {
  display: grid;

  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: 9px;
}

.week-name {
  text-align: center;

  color: var(--muted);

  padding: 8px;
}

.day-card {
  padding: 12px;

  border: 1px solid var(--line);

  border-radius: 9px;

  background: #fff;

  margin: 0;

  min-width: 0;
}

.day-card strong {
  font-size: 20px;
}

.day-card.holiday {
  background: #edf3fc;
}

.day-card select,
.day-card input:not([type="checkbox"]) {
  font-size: 11px;

  padding: 7px;
}

.day-card .checkbox {
  font-size: 10px;

  gap: 4px;

  margin: 6px 0;

  min-height: 25px;
}

.day-card .section-head {
  gap: 4px;
}

.calendar-scroll {
  overflow: auto;
}

.attendance-days {
  min-width: 850px;
}

.wall-container {
  max-width: 880px;

  margin: 0 auto;

  padding: 40px 25px;
}

.wall-embedded {
  max-width: 1000px;
  margin: 0 auto;
}

.wall-frame {
  display: block;
  width: 100%;
  height: max(680px, calc(100vh - 175px));
  border: 0;
}

.wall-iframe-body .wall-container {
  max-width: none;
  padding: 0 12px 24px;
}

.wall-page-head {
  margin-bottom: 18px;
}

.wall-page-head h1 {
  margin: 0;
}

.wall-compose,
.wall-post {
  padding: 22px 26px;
}

.wall-compose label,
.wall-reply label {
  display: block;
  margin-bottom: 8px;
}

.wall-compose textarea,
.wall-reply textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.wall-form-actions,
.wall-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.wall-feed {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.wall-post {
  margin: 0;
}

.wall-post .wall-message {
  margin: 0;
}

.wall-message {
  font-size: 17px;

  overflow-wrap: anywhere;
}

.wall-comments {
  border-left: 2px solid #d6e3f8;
  padding-left: 18px;
  margin-top: 18px;
}

.wall-comment {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.wall-comment + .wall-comment {
  border-top: 1px solid var(--line);
}

.wall-comment p {
  margin: 0;
  overflow-wrap: anywhere;
}

.wall-reply {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.wall-reply summary {
  width: fit-content;
  cursor: pointer;
}

.wall-reply summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

.wall-reply form {
  margin-top: 14px;
}

progress {
  width: 100%;

  height: 9px;

  accent-color: #2463bd;

  margin: 5px 0 18px;
}

.tenure-number {
  font-size: 24px;

  color: #2463bd;
}

input[type="radio"] {
  accent-color: #2463bd;

  width: 17px;

  height: 17px;
}

.day-card:has(input[name="holiday_days"]:checked) {
  background: #e4edfc;

  border-color: #a7c2ed;
}

.day-card:has(input[name="holiday_days"]:not(:checked)) {
  background: white;
}

tr[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .calendar-grid:not(.attendance-days) {
    gap: 4px;
  }

  .day-card {
    padding: 7px;
  }

  .calendar-grid:not(.attendance-days) .checkbox {
    font-size: 10px;

    flex-wrap: wrap;
  }

  .wall-container {
    padding: 24px 14px;
  }

  .wall-compose,
  .wall-post {
    padding: 18px;
  }
}

.sidebar nav {
  scrollbar-width: thin;

  scrollbar-color: #bacbe3 transparent;

  scrollbar-gutter: stable;
}

.sidebar nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar nav::-webkit-scrollbar-thumb {
  background: #bacbe3;

  border-radius: 8px;
}

.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}

.compact-attendance th,
.compact-attendance td {
  padding: 6px 4px;

  text-align: center;
}

.compact-attendance th:first-child,
.compact-attendance td:first-child {
  position: sticky;

  left: 0;

  background: white;

  z-index: 1;

  min-width: 70px;
}

.compact-attendance th small {
  display: block;

  font-size: 10px;

  font-weight: 400;
}

.compact-attendance select {
  min-width: 64px;

  padding: 6px 2px;

  font-size: 11px;

  margin: 0;
}

.compact-attendance .day-exempt {
  background: #eef4fd;
}

.attendance-review-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.attendance-detail-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.attendance-detail-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}

.attendance-detail-panel:not(.is-detail-visible) .attendance-detail-item {
  display: none;
}

.payroll-detail-table td,
.payroll-detail-table th {
  white-space: nowrap;
}

.payroll-detail-table .attendance-employee-column small {
  display: block;
}

.payroll-detail-table [data-payroll-grid-input] {
  width: 86px;
  min-width: 86px;
  margin: 0;
  padding: 6px;
}

.payroll-grid-reason {
  min-width: 260px;
}

.payroll-grid-reason input {
  margin: 0;
}

.attendance-employee-search input {
  width: 180px;
  margin: 0;
}

.attendance-employee-search {
  flex: 0 0 auto;
  min-width: 280px;
  white-space: nowrap;
}

.attendance-review-filters .inline-filter > select,
.attendance-review-filters .attendance-employee-search > input {
  box-sizing: border-box;
  height: 50px;
  margin: 0;
}

.tax-month-filter {
  max-width: 260px;
  margin-bottom: 14px;
}

.tax-import-card,
.tax-entry-card {
  margin-bottom: 18px;
}

.tax-import-heading,
.tax-entry-heading,
.tax-import-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tax-import-heading,
.tax-entry-heading {
  justify-content: space-between;
  margin-bottom: 14px;
}

.tax-import-heading h2,
.tax-entry-heading h2,
.tax-import-heading p,
.tax-entry-heading p {
  margin: 0;
}

.tax-template-link,
.tax-save-button,
.tax-upload-button {
  flex: 0 0 auto;
}

.tax-import-actions {
  justify-content: flex-end;
}

.tax-upload-button {
  margin: 0;
  font-size: 13px;
}

.tax-upload-button input {
  display: none;
  margin: 0;
}

.tax-file-hint {
  margin: 0;
}

.tax-entry-scroll {
  height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tax-entry-table {
  table-layout: fixed;
  min-width: 760px;
}

.tax-entry-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 12px;
  background: #f7f9fd;
  box-shadow: inset 0 -1px 0 var(--line);
}

.tax-entry-table td {
  padding: 7px 12px;
}

.tax-entry-table th:first-child,
.tax-entry-table td:first-child {
  width: 62px;
  text-align: center;
}

.tax-entry-table th:nth-child(2),
.tax-entry-table td:nth-child(2) {
  width: 280px;
}

.tax-entry-table th:nth-child(3),
.tax-entry-table td:nth-child(3) {
  width: 180px;
}

.tax-employee-no {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tax-employee-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.employee-departed-badge {
  flex: 0 0 auto;
  background: #edf0f5;
  color: #596578;
}

.tax-entry-table input[type="number"] {
  width: 190px;
  max-width: 100%;
  height: 34px;
  margin: 0;
  padding: 5px 9px;
  background: white;
}

.tax-sequence {
  color: var(--muted);
}

@media (max-width: 760px) {
  .tax-import-heading,
  .tax-entry-heading,
  .tax-import-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tax-template-link,
  .tax-save-button,
  .tax-upload-button {
    width: 100%;
    text-align: center;
  }
}

.attendance-review-scroll {
  height: 560px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #bacbe3 transparent;
  scrollbar-gutter: stable;
}

.attendance-review-scroll.attendance-self-scroll {
  height: auto;
  max-height: none;
}

.attendance-response {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.attendance-response [data-correction-panel] {
  flex: 0 0 100%;
}

.attendance-confirm-panel {
  width: min(460px, 100%);
}

.attendance-confirm-panel .modal-actions,
.correction-card-actions {
  justify-content: flex-end;
}

.correction-change-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
  gap: 10px;
  margin: 12px 0 16px;
}

.correction-change-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.correction-change-item > strong {
  display: block;
  padding: 7px 10px;
  background: #f5f7fb;
  font-size: 12px;
}

.correction-value {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  font-size: 12px;
}

.correction-value span {
  color: var(--muted);
}

.correction-before {
  background: #fff9f2;
}

.correction-after {
  background: #f1fbf5;
}

.correction-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.attendance-correction-row > td {
  padding: 0 12px 14px;
  background: #f7faff;
  text-align: left;
}

.attendance-review-scroll .attendance-correction-row > td:first-child {
  position: static;
  left: auto;
}

.attendance-correction-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  padding: 9px 12px;
  border: 1px solid #d9e5f7;
  border-left: 4px solid #d97706;
  border-radius: 10px;
  background: white;
  white-space: nowrap;
}

.correction-inline-changes {
  display: flex;
  gap: 10px;
}

.correction-inline-changes > span {
  padding: 5px 8px;
  border-radius: 6px;
  background: #f5f7fb;
  font-size: 12px;
}

.correction-inline-reason {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #475569;
}

.correction-inline-reply {
  width: 190px !important;
  margin: 0 !important;
  padding: 7px 9px !important;
}

.attendance-correction-inline .correction-card-actions {
  flex-wrap: nowrap;
  margin: 0;
}

.correction-personal-row {
  padding: 14px 16px;
}

.correction-personal-heading,
.correction-personal-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.correction-personal-heading {
  margin-bottom: 9px;
}

.correction-personal-summary {
  font-size: 13px;
  color: #475569;
}

.correction-personal-summary > span {
  padding: 6px 9px;
  border-radius: 7px;
  background: #f5f7fb;
}

.correction-personal-change {
  color: #1e3a5f;
}

.correction-personal-reply {
  color: #9a3412;
  background: #fff7ed !important;
}

.attendance-review-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.attendance-review-scroll::-webkit-scrollbar-thumb {
  background: #bacbe3;
  border-radius: 8px;
}

.attendance-review-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.attendance-review-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: white;
  box-shadow: inset 0 -1px 0 var(--line);
}

.attendance-review-scroll .compact-attendance th:first-child {
  z-index: 6;
}

.attendance-review-scroll .attendance-select-column,
.attendance-review-scroll .attendance-sequence-column,
.attendance-review-scroll .attendance-employee-column {
  position: sticky;
  z-index: 3;
  background: white;
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}

.attendance-review-scroll .attendance-select-column {
  left: 0;
  min-width: 70px;
}

.attendance-review-scroll .attendance-sequence-column {
  left: 0;
  min-width: 54px;
}

.attendance-review-scroll .review-admin-grid .attendance-sequence-column {
  left: 70px;
}

.attendance-review-scroll .attendance-employee-column {
  left: 54px;
  min-width: 132px;
}

.attendance-review-scroll .review-admin-grid .attendance-employee-column {
  left: 124px;
}

.attendance-review-scroll thead .attendance-select-column,
.attendance-review-scroll thead .attendance-sequence-column,
.attendance-review-scroll thead .attendance-employee-column {
  z-index: 6;
}

.attendance-review-scroll .attendance-action-column {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 86px;
  background: white;
  box-shadow: inset 1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}

.attendance-review-scroll thead .attendance-action-column {
  z-index: 6;
}

.attendance-action-column button {
  padding: 6px 10px;
  white-space: nowrap;
}

.payroll-detail-table .attendance-action-column {
  width: 158px;
  min-width: 158px;
  padding-left: 8px;
  padding-right: 8px;
}

.payroll-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.payroll-row-actions > button,
.payroll-row-actions > .button {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 10px;
  line-height: 1.5;
}

.attendance-day-heading {
  min-width: 72px;
}

.attendance-day-heading select {
  display: block;
  min-width: 64px;
  margin: 4px auto 0;
  padding: 3px 2px;
  font-size: 10px;
}

.attendance-review-scroll.is-grid-editing [data-grid-cell] {
  position: relative;
  min-width: 160px;
}

.attendance-review-scroll [data-grid-status] {
  width: 100%;
  min-width: 76px;
  padding: 5px 2px;
}

.grid-active-cell {
  outline: 2px solid #2861ae;
  outline-offset: -2px;
}

.grid-fill-preview {
  box-shadow: inset 0 0 0 2px #60a5fa;
  background: #eff6ff !important;
}

.grid-fill-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 6px;
  height: 6px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #2861ae;
  cursor: crosshair;
  opacity: 0;
  pointer-events: none;
}

[data-grid-cell]:hover .grid-fill-handle,
[data-grid-cell]:focus-within .grid-fill-handle {
  opacity: 1;
  pointer-events: auto;
}

.attendance-filter-empty {
  margin: 12px 0 0;
  text-align: center;
}

.attendance-punch-times {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  white-space: nowrap;
}
.attendance-punch-times { color: #607897; }
.attendance-source-error { display: block; color: #a63e29; max-width: 220px; white-space: normal; }

.notification-row {
  display: flex;

  gap: 20px;

  align-items: start;

  border-bottom: 1px solid var(--line);

  padding: 20px 0;
}

.notification-row > div {
  flex: 1;
}

.notification-row p {
  font-size: 12px;

  margin: 4px 0;
}

.option-editor {
  display: flex;

  gap: 10px;

  margin: 8px 0;
}

.option-editor input {
  margin: 0;
}

.choice-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

*[hidden] {
  display: none !important;
}

.official-notice {
  max-width: 940px;

  background: white;

  border: 1px solid var(--line);

  padding: 45px 65px;

  margin: 0 auto 28px;

  box-shadow: 0 8px 28px #263e6110;
}

.notice-letterhead {
  text-align: center;

  color: #234b80;

  font-size: 25px;

  letter-spacing: 6px;

  border-bottom: 3px double #436690;

  padding-bottom: 20px;

  font-weight: bold;
}

.notice-document-number {
  text-align: center;

  color: #8290a1;

  font-size: 12px;

  margin: 15px 0 25px;
}

.official-notice h2 {
  text-align: center;

  font-size: 23px;

  line-height: 1.7;

  margin: 25px 0;
}

.official-body {
  font-family: "SimSun", "Microsoft YaHei", serif;

  font-size: 16px;

  line-height: 2.1;

  min-height: 120px;

  overflow-wrap: anywhere;
}

.official-signature {
  text-align: right;

  margin: 38px 0 25px;
}

.official-signature p {
  margin: 3px;
}

.official-foot {
  border-top: 1px solid #bdc9da;

  padding-top: 14px;

  font-size: 11px;

  color: #75839a;
}

@media (max-width: 700px) {
  .official-notice {
    padding: 25px;
  }

  .notice-letterhead {
    font-size: 20px;
  }
}

@media print {
  .official-notice {
    box-shadow: none;

    border: 0;

    break-after: page;

    max-width: none;

    padding: 25px;
  }

  .official-notice:last-child {
    break-after: auto;
  }
}

[hidden] {
  display: none !important;
}
.document-letterhead {
  font-family: SimSun, serif;
  font-size: 34px;
  font-weight: bold;
  text-align: center;
  color: #b91c1c;
  border-bottom: 3px solid #b91c1c;
  padding: 16px 0 24px;
  margin-bottom: 22px;
}
.notice-paper h2 {
  text-align: center;
  line-height: 1.6;
  margin: 24px 0;
}
.document-number {
  text-align: center;
}
.document-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
}
.document-section {
  margin-top: 20px;
}
.document-signature {
  text-align: right;
  margin: 28px 0;
}
.document-footer {
  border-top: 1px solid #555;
  padding-top: 12px;
  white-space: pre-wrap;
  font-size: 13px;
}
.ordinary-document {
  padding: 28px !important;
}
.red-document {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  padding: 44px !important;
}
.conversation-reply {
  margin: 18px 0;
  padding: 16px;
  background: #f2f6fb;
  border-left: 3px solid #93b5e8;
}
@media print {
  .no-print {
    display: none;
  }
  .notice-paper {
    break-inside: avoid;
    box-shadow: none !important;
  }
  .red-document .document-letterhead {
    color: #b91c1c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.notice-paper {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 24px 0;
  padding: 28px;
}
.announcement-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.announcement-toolbar .announcement-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 500px;
}
.announcement-toolbar .announcement-search input[type="search"] {
  min-width: 160px;
  flex: 1 1 250px;
  margin: 0;
}
.announcement-toolbar .announcement-search select {
  width: 150px;
  flex: 0 0 150px;
  margin: 0;
}
.announcement-toolbar #announcement-toggle {
  flex: 0 0 auto;
}
.announcement-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.announcement-actions form {
  margin: 0;
}
.announcement-delete-panel {
  width: min(440px, 100%);
}
.announcement-delete-panel .modal-actions {
  justify-content: flex-end;
}

.notification-count {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 8px;
  font-size: 12px;
}
.urgent-banner {
  border: 1px solid #f5b83d;
  background: #fffbeb;
  border-left: 5px solid #e59312;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  color: #7c4107;
}
.urgent-banner > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 8px 0;
}
.urgent-banner a {
  font-weight: 600;
  color: #a13d08;
}
.dashboard-notification-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dashboard-notification-banner:hover {
  border-color: #e59312;
  box-shadow: 0 8px 20px rgba(161, 61, 8, 0.12);
  transform: translateY(-1px);
}
.dashboard-notification-banner span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dashboard-notification-banner small {
  color: #9a651d;
}
.dashboard-notification-banner b {
  flex: 0 0 auto;
  color: #a13d08;
}
.content.attendance-wide {
  max-width: none;
  padding: 20px 14px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
.content.payroll-wide {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 22px 18px;
  box-sizing: border-box;
}
.attendance-wide .card {
  padding: 14px;
}
.day-bad {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
.day-warning {
  background: #fef3c7 !important;
  color: #92400e !important;
}
.day-makeup {
  background: #dbeafe !important;
  color: #1e40af !important;
}
.day-status select {
  min-width: 76px;
  font-size: 12px;
  margin-top: 6px;
}
.indented-document p {
  text-indent: 2em;
  line-height: 2;
  margin: 0 0 0.5em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ordinary-document > div:first-child {
  border-bottom: 1px solid #64748b;
  padding-bottom: 12px;
}
.document-footer {
  min-height: 18px;
}
.document-letterhead {
  border-bottom: 3px solid #b91c1c !important;
}

@media print {
  .urgent-banner,
  .notification-count {
    display: none !important;
  }
}

.mindmap {
  display: flex;
  align-items: center;
  overflow: auto;
  min-height: 440px;
  gap: 0;
}
.mindmap ul {
  list-style: none;
  padding: 0 0 0 40px;
  margin: 0;
  flex-shrink: 0;
}
.mindmap li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-left: 2px solid #a6c2ea;
}
.mindmap li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  border-top: 2px solid #a6c2ea;
}
.mind-branch,
.mind-children {
  display: flex;
  align-items: center;
}
.mind-node,
.mind-person,
.mind-root {
  background: #f1f6ff;
  border: 1px solid #9abcec;
  border-radius: 10px;
  padding: 18px;
  min-width: 175px;
  text-align: left;
  white-space: nowrap;
}
.mind-node small,
.mind-person small {
  display: block;
  margin-top: 6px;
  color: #64748b;
}
.mind-root {
  background: #2459ad;
  color: white;
  font-weight: 700;
}
.mind-person {
  min-width: 135px;
  background: white;
}
.mind-node[aria-expanded="false"] {
  border-style: dashed;
}
.stage-row {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}
.birthday-picker {
  display: block;
}
.birthday-picker [data-birthday-lunar] {
  display: flex;
  gap: 6px;
}
.birthday-picker [data-lunar-year] {
  min-width: 90px;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.festival {
  color: #c2410c;
  font-weight: 600;
}
.news-paged {
  height: 420px;
  display: flex;
  flex-direction: column;
}
.news-paged .news {
  min-height: 0;
  overflow: hidden;
}
.news-paged .news p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
}
.celebration {
  background: linear-gradient(100deg, #fff1c7, #ffedf2);
  border: 1px solid #e7bd70;
  color: #823d23;
  font-size: 19px;
  padding: 24px !important;
}
.confirmed-note {
  color: #166534;
  background: #effbf2;
}
.day-card small {
  display: block;
  color: #64748b;
}
.mind-children {
  flex-direction: column;
  align-items: flex-start;
}
.mindmap ul {
  position: relative;
}
.mindmap ul:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  border-top: 2px solid #a6c2ea;
}

.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.avatar {
  object-fit: cover;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dbe8fa;
  background: #f5f8ff;
}
.profile-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 30, 55, 0.48);
  backdrop-filter: blur(4px);
}
.modal-panel {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 90px #0c234c44;
  width: min(620px, 100%);
  max-height: 85vh;
  overflow: auto;
  padding: 30px;
}
.greeting-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 88% 8%, #fff0c8, transparent 38%),
    radial-gradient(circle at 5% 92%, #ffe8ef, transparent 34%),
    linear-gradient(145deg, #eef5ff, #fff 58%, #fff9ed);
  border: 1px solid rgba(255, 210, 116, 0.72);
  box-shadow: 0 30px 100px rgba(7, 24, 56, 0.34), 0 0 0 8px rgba(255, 255, 255, 0.1);
  animation: greeting-arrive 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.greeting-panel::before,
.greeting-panel::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  pointer-events: none;
}
.greeting-panel::before {
  left: -64px;
  top: -68px;
  border: 2px solid rgba(255, 187, 71, 0.3);
  box-shadow: 0 0 0 17px rgba(255, 211, 119, 0.1), 0 0 0 38px rgba(255, 225, 159, 0.07);
}
.greeting-panel::after {
  right: -60px;
  bottom: -73px;
  background: radial-gradient(circle, rgba(255, 141, 169, 0.2), transparent 68%);
}
.celebration-effects {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.greeting-sparkle {
  position: absolute;
  top: 23px;
  right: 30px;
  color: #f5a623;
  font-size: 25px;
  line-height: 1;
  text-shadow: -36px 18px 0 #ff8fa9, -16px 54px 0 #6aa7e8;
  animation: greeting-sparkle 1.8s ease-in-out infinite;
}
.greeting-panel > img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 6px auto 20px;
  display: block;
}
.greeting-panel > .eyebrow {
  display: block;
}
.greeting-panel h2 {
  font-size: 27px;
  margin: 12px 0;
}
.greeting-panel p {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 18px;
  margin: 24px 0;
}
.greeting-panel button {
  min-width: 150px;
}
@keyframes greeting-arrive {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes greeting-sparkle {
  0%, 100% { opacity: 0.55; transform: rotate(-10deg) scale(0.85); }
  50% { opacity: 1; transform: rotate(10deg) scale(1.12); }
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.member-search {
  margin: 16px 0;
}
.member-options {
  max-height: 42vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.member-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f6f9ff;
  border: 1px solid #e5edf8;
  border-radius: 10px;
}
.member-options input {
  width: auto;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.stage-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  background: #f7f9fd;
  border: 1px solid #e1e9f5;
  padding: 16px;
  border-radius: 12px;
  align-items: end;
}
.stage-row label {
  margin: 0;
}
.stage-row button {
  margin-bottom: 0;
}
.seniority-section {
  margin: 24px 0;
  border-top: 1px solid #e4eaf2;
  padding-top: 24px;
}
.employee-picker-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef5ff;
  padding: 18px;
  border-radius: 12px;
  margin: 20px 0;
}
.notification-list {
  padding: 0 !important;
  overflow: hidden;
}
.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 100px;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e5ebf4;
}
.notification-item.is-unread {
  background: #f0f7ff;
  box-shadow: inset 4px 0 #2563eb;
}
.notification-item.is-unread h3 {
  color: #164e9b;
}
.notification-unread-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e4f91;
}
.notification-unread-summary b {
  font-size: 18px;
}
.notification-unread-legend {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
}
.notification-unread-legend i,
.notification-unread-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2563eb;
}
.notification-unread-dot {
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 4px #dbeafe;
}
.notification-new-badge {
  margin-left: 8px;
  background: #2563eb;
  color: #fff;
}
.notification-item:last-child {
  border-bottom: 0;
}
.notification-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
}
.notification-item p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.notification-item time {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 8px;
}
.notification-item > .badge {
  justify-self: start;
  white-space: normal;
}
.notification-item .button {
  justify-self: end;
  white-space: nowrap;
}
.notification-item.is-dispute,
.disputed-row {
  background: #fff3f2 !important;
}
.badge-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca;
}
.disputed-row td:first-child {
  border-left: 4px solid #e75151;
}
.pagination {
  align-items: center;
  padding: 18px 0;
}
.employee-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.employee-shortcuts a {
  background: #fff;
  border: 1px solid #dce7f7;
  border-radius: 14px;
  padding: 20px;
  font-weight: 600;
}
.news-paged {
  height: 470px;
  border-top: 4px solid #4d7ddd;
  overflow: hidden;
}
.news-paged .news {
  background: #f7faff;
  border: 1px solid #e1eafa;
  border-radius: 12px;
  padding: 15px 18px;
  margin: 10px 0;
  flex: 1;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.news-meta time {
  font-size: 12px;
  color: #8190a7;
}
.news-paged .news h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 10px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-paged .news p {
  font-size: 13px;
  margin: 5px 0;
}
.news-open {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: start;
  gap: 12px;
}
.directory-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -4px 42px 10px 0;
}
.directory-toolbar p {
  margin: 0;
  font-size: 12px;
}
.directory-index {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 1px;
  padding: 4px 3px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 18px rgba(35, 68, 112, .08);
  user-select: none;
}
.directory-index button {
  width: 22px;
  min-width: 22px;
  height: clamp(15px, calc((100vh - 124px) / 28), 20px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  line-height: 1;
}
.directory-index button:hover:not(:disabled),
.directory-index button.active {
  background: #2865c7;
  color: white;
}
.directory-index button:disabled {
  color: #cbd3df;
  cursor: default;
}
.directory-letter-empty {
  grid-column: 1 / -1;
  margin: 0;
}
.directory-card {
  margin: 0;
  padding: 17px;
}
.directory-card .profile-avatar {
  width: 52px;
  height: 52px;
}
.directory-person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.directory-person h2 {
  margin: 0;
  font-size: 17px;
}
.directory-person p {
  margin: 4px 0 0;
  font-size: 12px;
}
.directory-card dl {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 8px 10px;
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid #e7edf5;
  font-size: 12px;
}
.directory-card dt {
  color: #8390a3;
}
.directory-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .directory-layout {
    grid-template-columns: minmax(0, 1fr) 26px;
    gap: 7px;
  }
  .directory-index {
    top: 72px;
    padding: 3px 2px;
  }
  .directory-index button {
    width: 20px;
    min-width: 20px;
  }
  .directory-toolbar {
    margin-right: 33px;
  }
}
.button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  background: #f5f8fe;
  color: #2459ad;
  font-weight: 600;
  text-decoration: none;
}
.modal-open {
  overflow: hidden;
}
@media (max-width: 700px) {
  .employee-shortcuts {
    grid-template-columns: 1fr 1fr;
  }
  .notification-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 18px;
  }
  .notification-item .button {
    grid-column: 2;
  }
  .member-options {
    grid-template-columns: 1fr;
  }
  .stage-row {
    grid-template-columns: 1fr;
  }
  .modal-panel {
    padding: 20px;
  }
  .greeting-panel {
    padding: 28px 22px 24px;
  }
  .greeting-panel > img {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
  }
  .greeting-panel h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .greeting-panel,
  .greeting-sparkle {
    animation: none;
  }
  .celebration-effects {
    display: none;
  }
}
@media print {
  .app-modal {
    display: none !important;
  }
}

.news-paged {
  height: auto;
  min-height: 510px;
  overflow: visible;
}
.news-paged .news {
  flex: none;
  min-height: 155px;
  overflow: visible;
}
.news-paged .news h3 {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-paged .news p {
  line-height: 1.5;
  max-height: 39px;
}
.news-paged .pagination {
  flex-shrink: 0;
}
.status-unsent {
  background: #edf0f5;
  color: #596578;
}
.status-pending {
  background: #fff0cc;
  color: #946100;
}
.status-confirmed {
  background: #dcf5e8;
  color: #167149;
}
.status-disputed {
  background: #ffe0df;
  color: #ae2525;
}
.status-changed {
  background: #ede4ff;
  color: #7043a4;
}
input[type="radio"],
.checkbox input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2463c9;
}
.checkbox {
  justify-content: flex-start !important;
  gap: 10px !important;
}
.survey-builder {
  max-width: 1000px;
}
.survey-builder summary {
  display: inline-block;
  background: #2463c9;
  color: white;
  padding: 12px 20px;
  border-radius: 9px;
  cursor: pointer;
}
.survey-builder form {
  margin-top: 24px;
}
.survey-builder .form-grid {
  gap: 16px;
}
.survey-builder .checkbox,
.survey-answer .checkbox {
  display: flex;
  flex-direction: row;
}
.audience-list {
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e1e8f5;
  padding: 12px;
  border-radius: 12px;
}
.audience-list .checkbox {
  padding: 8px 12px;
  margin: 0;
  background: #f5f8ff;
  border-radius: 8px;
  flex-shrink: 0;
}
.survey-hero {
  padding: 30px;
  background: linear-gradient(125deg, #e9f1ff, #f5f9ff);
  border-left: 5px solid #397bdf;
  border-radius: 14px;
  margin-bottom: 20px;
}
.survey-hero h1 {
  margin: 14px 0;
  font-size: 30px;
  overflow-wrap: anywhere;
}
.survey-hero p {
  white-space: pre-wrap;
  line-height: 1.8;
}
.survey-answer {
  max-width: 1000px;
}
.survey-answer .checkbox {
  border: 1px solid #dce7f7;
  padding: 16px;
  border-radius: 10px;
  margin: 10px 0;
  background: #fafcff;
  cursor: pointer;
}
.survey-answer .checkbox:has(input:checked) {
  border-color: #397bdf;
  background: #eaf2ff;
}
.survey-answer button {
  margin-top: 20px;
  min-width: 180px;
}
.survey-card {
  border-top: 3px solid #4b80d7;
}
.survey-card h2 {
  font-size: 23px;
}
.avatar-editor {
  width: 100%;
  display: flex;
  align-items: end;
  gap: 14px;
}
.avatar-editor label {
  flex: 1;
}
.mindmap li {
  border-left: 0;
}
.mindmap li:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 2px solid #a6c2ea;
}
.mindmap li:first-child:after {
  top: 50%;
}
.mindmap li:last-child:after {
  bottom: 50%;
}
.mindmap li:only-child:after {
  display: none;
}
.mind-children:empty {
  display: none;
}
.day-card .badge {
  margin-top: 8px;
}

.holiday-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.holiday-month-controls [data-holiday-edit] {
  flex: 0 0 auto;
}

.holiday-month-controls [data-holiday-edit][hidden] {
  display: none !important;
}

.holiday-actions {
  margin-top: 0;
}

.holiday-editor.is-editing .holiday-actions {
  margin-top: 20px;
}

.holiday-actions [hidden] {
  display: none !important;
}

.holiday-editor .day-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 116px;
}

.holiday-editor .day-card .checkbox,
.holiday-editor .day-card .badge {
  margin-top: auto;
}

.holiday-editor:not(.is-editing) .day-card .checkbox,
.holiday-editor.is-editing .day-card .badge {
  display: none;
}

.holiday-editor .day-card.today {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.holiday-editor .day-card.today strong {
  color: var(--green);
  font-weight: 800;
}

.holiday-day-detail {
  display: none;
}

@media (max-width: 700px) {
  .holiday-page-head {
    display: block;
    position: relative;
  }

  .holiday-page-head > a {
    position: absolute;
    top: 0;
    right: 0;
  }

  .holiday-editor {
    padding: 10px;
  }

  .holiday-calendar-scroll {
    overflow: visible;
  }

  .holiday-editor .calendar-grid {
    min-width: 0;
    gap: 4px;
  }

  .holiday-editor .day-card {
    min-height: 92px;
    padding: 4px 2px;
    align-items: center;
    text-align: center;
    line-height: 1;
  }

  .holiday-editor .week-name {
    padding: 4px 0;
    font-size: 12px;
  }

  .holiday-editor .day-card strong {
    font-size: 20px;
    line-height: 30px;
  }

  .holiday-editor .day-card small,
  .holiday-editor .day-card .badge {
    font-size: 10px;
    white-space: nowrap;
  }

  .holiday-editor .day-card small {
    display: block;
    line-height: 14px;
  }

  .holiday-editor .day-card .festival {
    display: block;
    min-height: 14px;
    line-height: 14px;
    font-size: 10px;
    white-space: nowrap;
  }

  .holiday-editor .day-card .badge {
    display: none;
  }

  .holiday-editor .day-card .checkbox {
    justify-content: center !important;
    min-height: 18px;
    margin: auto 0 0;
  }

  .holiday-editor .day-card .checkbox span {
    display: none;
  }

  .holiday-editor .day-card .checkbox input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .holiday-editor:not(.is-editing) .day-card.holiday::after {
    content: "休";
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    margin-top: auto;
    border-radius: 5px;
    background: #dce9fc;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
  }

  .holiday-editor .day-card.is-selected {
    outline: 2px solid var(--green);
    outline-offset: 1px;
  }

  .holiday-editor .day-card.today.is-selected {
    outline: none;
  }

  .holiday-day-detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fbff;
    font-size: 12px;
  }

  .holiday-day-detail strong {
    flex-basis: 100%;
    font-size: 15px;
  }

  .holiday-day-detail [data-detail-festival]:empty {
    display: none;
  }

  .holiday-day-detail [data-detail-status] {
    margin-left: auto;
    color: var(--green);
    font-weight: 700;
  }
}
.survey-builder [data-scope-panel="departments"] {
  max-height: 280px;
  overflow: auto;
}

.list-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
  font-size: 13px;
}
.list-pagination button {
  padding: 7px 11px;
  min-width: 34px;
}
.list-pagination button[aria-current="page"] {
  background: #2563c6;
  color: white;
}
.list-pagination select {
  width: auto;
  margin: 0;
  padding: 7px;
}
.list-pagination .page-total {
  margin-right: auto;
  color: #748198;
}
.inline-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.inline-filter select {
  width: 210px;
  margin: 0;
}
.search {
  flex-wrap: wrap;
}
.search select {
  width: auto;
  min-width: 140px;
  margin: 0;
}
.birthday-card {
  height: 510px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.birthday-card .birthday-list {
  flex: 1;
  min-height: 0;
}
.birthday-card .reminder {
  min-height: 44px;
  gap: 8px;
}
.birthday-card .list-pagination {
  margin: 10px 0;
}
.birthday-card .small {
  font-size: 11px;
  line-height: 1.5;
}
.vote-results {
  max-width: 760px;
}
.vote-results .task-row {
  padding: 8px 0;
}
.vote-results progress {
  display: block;
  width: 100%;
  height: 9px;
  margin: 0 0 12px;
}
.server-page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.server-page-jump select {
  width: 100px;
  margin: 0;
}
.server-page-jump a {
  padding: 6px 10px;
  border: 1px solid #dce6f5;
  border-radius: 7px;
}
.server-page-jump a[aria-current="page"] {
  background: #2463c9;
  color: white;
}
.server-page-jump .disabled {
  padding: 6px 10px;
  border: 1px solid #dce6f5;
  border-radius: 7px;
  color: #b3bccb;
  cursor: default;
  user-select: none;
}
.news-paged[aria-busy="true"] {
  opacity: 0.65;
}
.mindmap .mind-person {
  display: none;
}
@media print {
  .list-pagination,
  .server-page-jump {
    display: none;
  }
  tr[hidden],
  article[hidden] {
    display: revert !important;
  }
}

.vote-results {
  max-height: 460px;
  overflow: auto;
}
.birthday-card .birthday-list {
  overflow: hidden;
}

.birthday-card .birthday-list {
  flex: 0 0 156px;
  height: 156px;
}
.birthday-card .reminder {
  height: 52px;
  min-height: 52px;
  padding: 10px 0;
  box-sizing: border-box;
}
.birthday-card .reminder strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.birthday-card .list-pagination {
  gap: 5px;
}
.birthday-card .list-pagination button {
  padding: 6px 8px;
}

.search {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.search input,
.search select {
  width: auto !important;
  min-width: 120px;
  flex: 1 1 140px;
  margin: 0 !important;
}
.search input[name="q"] {
  flex: 2 1 210px;
}
.search select {
  max-width: 200px;
}
.server-page-jump {
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  padding: 3px 0;
}
.server-page-jump a {
  flex-shrink: 0;
  white-space: nowrap;
}
.list-pagination {
  flex-wrap: nowrap;
  overflow-x: auto;
  min-height: 46px;
  margin: 14px 0;
  align-items: center;
}
.list-pagination button,
.list-pagination select,
.page-total {
  flex-shrink: 0;
  white-space: nowrap;
}
.news-paged {
  height: 560px !important;
  min-height: 560px !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
}
.news-paged > article.news {
  height: 164px;
  min-height: 164px;
  flex: 0 0 164px;
  box-sizing: border-box;
  margin: 8px 0;
}
.news-paged > .pagination {
  margin-top: auto;
  display: block;
  flex: 0 0 auto;
  padding: 10px 0 0;
}
.news-paged .section-head {
  flex: 0 0 auto;
  margin-bottom: 4px;
}
.news-paged .news h3 {
  margin: 5px 0;
  line-height: 1.4;
  font-size: 16px;
}
.news-paged .news p {
  margin: 4px 0;
}
.news-paged .news-open {
  margin-top: 4px;
}
.birthday-card {
  height: 560px !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.birthday-card h2 {
  margin: 8px 0 4px;
}
.birthday-card > p {
  margin: 0 0 8px;
}
.birthday-card .birthday-list {
  height: 300px !important;
  flex: 0 0 300px !important;
}
.birthday-card .reminder {
  height: 60px !important;
  min-height: 60px !important;
}
.birthday-card .list-pagination {
  flex: 0 0 auto;
  margin: 10px 0 0;
}
.birthday-card .small {
  margin-top: auto;
  margin-bottom: 0;
}
.contracts-paged {
  min-height: 240px;
}
.birthday-card .birthday-list .empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0;
}
.fixed-list-region {
  overflow: auto;
  box-sizing: border-box;
}
.paged-region {
  overflow: visible;
}
.mindmap .department-people .mind-person {
  display: block;
}
.department-people {
  padding: 10px 0 10px 20px;
  max-height: 420px;
  overflow: auto;
}
.department-people summary {
  cursor: pointer;
  color: #2861ae;
  font-weight: 600;
  padding: 12px;
  background: #f1f6ff;
  border-radius: 8px;
}
.survey-layout {
  max-width: 1000px;
  margin: 18px auto;
}
.survey-layout .survey-hero {
  margin-bottom: 20px;
}
.survey-layout > .card,
.survey-layout > .notice {
  margin-bottom: 20px;
}
.survey-layout .vote-results {
  max-width: none;
}
.survey-layout article.news {
  padding: 14px;
  border-bottom: 1px solid #e5ecf8;
}
.back-link {
  margin-bottom: 12px;
}
.error-panel h2 {
  color: #b42318;
}
.error-panel p {
  white-space: pre-wrap;
  line-height: 1.8;
}
.error-panel {
  max-width: 480px;
}
.error-panel .modal-actions {
  justify-content: flex-end;
}
.search button[type="submit"] {
  display: none;
}
.search.plan-member-toolbar button[type="submit"] {
  display: inline-block;
}
.search.plan-member-toolbar input {
  margin-bottom: 0;
}
.search.employee-search {
  max-width: none;
}
.search.employee-search input[name="q"] {
  flex: 2 0 240px;
  min-width: 240px;
}
.search.employee-search select {
  flex: 0 0 140px;
}
.plan-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}
.plan-toolbar input[type="search"] {
  box-sizing: border-box;
  flex: 0 1 300px;
  width: 300px;
  max-width: calc(100% - 160px);
  height: 44px;
  margin: 0 !important;
}
.plan-toolbar .button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 44px;
}
.list-pagination .page-total {
  margin-right: 8px;
}
@media (max-width: 760px) {
  .news-paged,
  .birthday-card {
    height: 580px !important;
    min-height: 580px !important;
  }
  .search {
    gap: 8px;
  }
  .search input,
  .search select {
    flex-shrink: 0 !important;
  }
}

.list-pagination,
.server-page-jump,
.pagination {
  justify-content: center;
  justify-content: safe center;
}
.self-review-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.self-review-row form {
  margin-left: auto;
}
.self-review-details {
  margin-top: 12px;
}
.self-review-details summary {
  cursor: pointer;
  color: #2563eb;
}
.self-review-details .card {
  margin: 12px 0 0;
  padding: 12px;
}
.salary-filter {
  margin-bottom: 18px;
  display: grid !important;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto auto;
  max-width: none;
  overflow: visible;
  padding: 14px;
}
.salary-filter input,
.salary-filter select {
  width: 100% !important;
  min-width: 0;
  max-width: none;
}
.search.salary-filter button[type="submit"] {
  display: inline-block;
  flex: 0 0 auto;
}
.salary-filter .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.salary-stats {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin: 0 0 18px;
}
.salary-table .salary-input {
  min-width: 110px;
  width: 130px;
  margin: 0;
  padding: 6px 8px;
  text-align: right;
}
.salary-page-actions { flex-wrap: wrap; justify-content: flex-end; }
.salary-import-form { display: none; }
.salary-import-button { cursor: pointer; margin: 0; }
.salary-import-button input[type="file"] { display: none; }
.salary-editor { padding: 16px; }
.salary-editor-actions { flex-wrap: wrap; justify-content: flex-end; }
.salary-editor .section-head { margin-bottom: 10px; }
.salary-editor .section-head h2 { margin-bottom: 2px; }
.salary-editor .section-head p { margin: 0; }
.salary-table-wrap {
  height: 520px;
  min-height: 520px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.salary-table { min-width: 900px; }
.salary-table th,
.salary-table td { padding: 7px 9px; line-height: 1.25; }
.salary-table thead th { position: sticky; top: 0; z-index: 2; }
.salary-table tbody tr:hover { background: #f8faff; }
.salary-table td:first-child,
.salary-table th:first-child { width: 48px; text-align: center; }
.salary-table .salary-record-link { white-space: nowrap; }
@media (max-width: 1100px) {
  .salary-filter { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .salary-filter input[name="q"] { grid-column: span 2; }
}
@media (max-width: 720px) {
  .salary-filter { grid-template-columns: 1fr 1fr; }
  .salary-filter input[name="q"] { grid-column: 1 / -1; }
  .salary-table-wrap { height: 460px; min-height: 460px; max-height: 460px; }
}
.department-people[hidden] {
  display: none !important;
}
.attendance-rule-editor { margin-bottom: 20px; }
.attendance-rules-list { height: auto !important; min-height: 0 !important; max-height: none !important; }
.attendance-payroll-settings { margin-top: 20px; }
.attendance-rule-editor > .page-head { margin-bottom: 18px; }
.attendance-rule-basics { margin-bottom: 18px; }
.attendance-season-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.attendance-rule-editor fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #f8faff;
}
.attendance-rule-editor legend {
  padding: 0 7px;
  color: #315783;
  font-weight: 700;
}
.rule-time-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}
.rule-time-row label { flex: 1 1 90px; }
.rule-time-row input { margin-bottom: 0; }
.attendance-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.attendance-member-head h3, .attendance-member-head p { margin: 0; }
.attendance-member-head strong { color: #24579a; white-space: nowrap; }
.attendance-selected-members {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  padding: 10px 0 4px;
}
.attendance-member-token {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-left: 10px;
  border: 1px solid #dce5f1;
  border-radius: 5px;
  background: #f3f5f8;
  color: #24579a;
  font-size: 14px;
}
.attendance-member-token i { color: #63a7ef; font-style: normal; font-size: 15px; }
.attendance-member-token button {
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-left: 1px solid #dce3eb;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: #718096;
  font-size: 21px;
}
.attendance-member-token button:hover { background: #e6ebf1; color: #334155; }
.attendance-add-member {
  margin-top: 10px;
  border-color: transparent;
  background: transparent;
  color: #2563a9;
  box-shadow: none;
}
.attendance-add-member span { font-size: 19px; vertical-align: -1px; }
.attendance-member-picker-panel { width: min(780px, 100%); }
.attendance-member-picker-panel .modal-heading h2,
.attendance-member-picker-panel .modal-heading p { margin: 0; }
.attendance-picker-section { margin-top: 22px; }
.attendance-picker-section h3 { margin: 0 0 10px; font-size: 15px; }
.attendance-picker-departments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}
.attendance-picker-departments label,
.attendance-picker-people label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #f8faff;
  cursor: pointer;
}
.attendance-picker-departments label:has(input:checked),
.attendance-picker-people label:has(input:checked) { border-color: #8eb8e9; background: #edf6ff; }
.attendance-picker-departments input,
.attendance-picker-people input { flex: 0 0 auto; width: auto; margin: 0; }
.attendance-picker-departments small,
.attendance-picker-people small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
.picker-folder { color: #62a8ef; }
.attendance-picker-person-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.attendance-picker-person-head input { width: min(320px, 60%); margin: 0; }
.attendance-picker-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  margin-top: 10px;
}
.table-note { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; }
.notification-setting-owner { margin-bottom: 14px; }
.notification-settings-list { padding: 8px 16px; overflow-x: auto; }
.notification-setting-row { display: grid; grid-template-columns: 70px 120px minmax(150px, 1fr) 118px; align-items: center; gap: 12px; min-width: 520px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.notification-setting-row:last-child { border-bottom: 0; }
.notification-setting-row select, .notification-setting-row input, .notification-setting-row button { margin: 0; }
.notification-setting-row .checkbox.compact { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.notification-setting-row .checkbox.compact input { width: auto; }
.notification-setting-labels { color: var(--muted); font-size: 13px; font-weight: 700; }
.notification-settings-actions { display: flex; justify-content: flex-end; padding: 14px 4px 6px; }
@media (max-width: 620px) {
  .attendance-season-grid { grid-template-columns: 1fr; }
  .rule-time-row { display: grid; grid-template-columns: 1fr 1fr; }
  .attendance-picker-people { grid-template-columns: 1fr; }
  .attendance-picker-person-head { display: block; }
  .attendance-picker-person-head input { width: 100%; margin-top: 8px; }
}
.mind-children:not(:has(.department-people:not([hidden]))):not(
    :has(.mind-branch)
  ) {
  display: none;
}
.permission-layout { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); align-items: stretch; gap: 20px; }
.permission-layout .card { margin-bottom: 0; }
.permission-people { position: relative; }
.permission-people-inner { position: absolute; inset: 26px; display: flex; flex-direction: column; min-height: 0; }
.permission-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.permission-panel-head h2 { margin: 0 0 5px; }
.permission-panel-head p { margin: 0 0 18px; font-size: 13px; }
.permission-search-label { margin: 0; font-weight: 600; }
.permission-layout input[type="search"] { margin: 8px 0 16px; }
.permission-employee-list { display: grid; align-content: start; gap: 6px; flex: 1; min-height: 0; overflow-y: auto; padding-right: 3px; }
.permission-employee { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); text-decoration: none; }
.permission-employee[hidden], .permission-option[hidden], .permission-empty[hidden] { display: none; }
.permission-employee:hover { background: #f5f8fc; text-decoration: none; }
.permission-employee.is-selected { border-color: #b7d8cb; background: var(--mint); color: var(--green); }
.permission-employee-name { font-weight: 600; overflow-wrap: anywhere; }
.permission-employee-no { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.permission-count { flex: 0 0 auto; padding: 5px 10px; border-radius: 20px; background: var(--mint); color: var(--green); font-size: 12px; font-weight: 600; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 22px; }
.permission-option { display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-weight: 400; }
.permission-option:hover { background: #f8fafc; }
.permission-option:has(input:checked) { border-color: #b7d8cb; background: #f3faf6; }
.permission-option input { flex: 0 0 auto; width: 17px; margin: 0; }
.permission-empty { margin: 8px 0 0; font-size: 13px; }
.permission-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
@media (max-width: 850px) { .permission-layout { grid-template-columns: 1fr; } .permission-people-inner { position: static; } .permission-employee-list { flex: none; max-height: 220px; } }
@media (max-width: 520px) { .permission-layout .card { padding: 18px; } .permission-panel-head { flex-wrap: wrap; } .permission-actions { align-items: stretch; flex-direction: column; } }
