:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --card-soft: #f6f8ff;
  --text: #1f2a3d;
  --muted: #6b7686;
  --border: #e5e9f2;
  --line: #e5e9f2;
  --primary: #1c7bff;
  --brand: #1c7bff;
  --blue: #2f6fec;
  --purple: #7c3aed;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --shadow: 0 12px 28px rgba(31, 53, 90, 0.08);
  --shadowSoft: 0 10px 24px rgba(31, 53, 90, 0.07);
  --radius: 14px;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 68px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.hidden {
  display: none !important;
}
.error-box {
  margin: 12px 0;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--danger);
}
.activation-panel {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(28, 123, 255, 0.15);
  background: linear-gradient(180deg, rgba(28, 123, 255, 0.06), rgba(28, 123, 255, 0.02));
}
.activation-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.activation-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.activation-note,
.c-filter-label,
.match-page .person-belong,
.system-settings .inline-status {
  font-size: 12px;
  color: var(--muted);
}
body > .page {
  margin: 0;
  padding: 18px;
  min-height: 100%;
}
.page-wide {
  width: 100%;
  margin: 0 auto;
  padding: 16px 18px 24px;
}
@media (max-width:1100px) {
  .page-wide {
    padding: 12px;
  }
}
.page-mid {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 24px;
}
.order-page .c-switcher-group {
  padding: 6px;
  gap: 10px;
}
.order-page .c-switcher-group .c-toggle {
  padding: 12px 30px;
  font-size: 15px;
  min-height: 40px;
}
.order-page .c-page-head-grid {
  margin-bottom: 0;
}
.c-dialog.order-dialog-wide {
  width: min(1600px, 98vw);
  max-width: min(1600px, 98vw);
  height: 94vh;
  max-height: 94vh;
  overflow: hidden;
}
.c-dialog.order-dialog-wide[open] {
  display: flex;
  flex-direction: column;
}
.c-dialog.order-dialog-wide .c-dialog-header,
.c-dialog.order-dialog-wide .c-dialog-actions {
  flex: 0 0 auto;
}
.c-dialog.order-dialog-wide .c-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.order-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  align-items: start;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}
.order-send-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(480px, 1.1fr);
  gap: 20px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}
.order-editor-panel,
.order-preview-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadowSoft);
}
.order-editor-panel {
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 100%;
  overflow-y: auto;
}
.order-preview-panel {
  background: #f8fafc;
  padding: 16px;
  display: block;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.order-preview-canvas {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 18px;
  box-shadow: var(--shadowSoft);
  overflow: auto;
}
.order-preview-canvas [hidden] {
  display: none !important;
}
.order-send-panel {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: 4px 0 0;
}
.order-send-form {
  display: grid;
  gap: 16px;
}
.order-send-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: start;
}
.order-send-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.order-send-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-send-template-trigger {
  width: 34px;
  height: 30px;
  border-radius: 8px;
}
.order-send-template-trigger svg {
  width: 16px;
  height: 16px;
}
.order-send-field input,
.order-send-field select,
.order-send-field textarea {
  width: 100%;
  border: 1px solid #d8dfec;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  outline: none;
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.order-send-field textarea {
  min-height: min(44vh, 360px);
  resize: vertical;
}
.order-send-field input:focus,
.order-send-field select:focus,
.order-send-field textarea:focus {
  border-color: rgba(28, 123, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(28, 123, 255, 0.12);
}
.order-send-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.order-send-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.order-send-recipient-stack {
  display: grid;
  gap: 14px;
}
.order-send-combobox {
  position: relative;
}
.order-send-combobox input {
  padding-right: 42px;
}
.order-send-combobox-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 14px;
}
.order-send-combobox-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}
.order-send-combobox-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid #d8dfec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  padding: 6px;
}
.order-send-combobox-option {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
  padding: 9px 10px;
  text-align: left;
}
.order-send-combobox-name,
.order-send-combobox-email {
  display: block;
}
.order-send-combobox-name {
  font-weight: 700;
}
.order-send-combobox-email {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.order-send-combobox-option:hover {
  background: rgba(28, 123, 255, 0.1);
  color: var(--primary);
}
.order-send-combobox-option:hover .order-send-combobox-email {
  color: var(--primary);
}
.order-send-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.order-send-upload-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.order-send-upload-hint {
  flex: 1 1 180px;
}
.order-send-attachment-list {
  min-height: 36px;
  border: 1px dashed #d8dfec;
  border-radius: 10px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
}
.order-send-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.order-send-attachment-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-send-attachment-item button {
  border: none;
  border-radius: 6px;
  background: rgba(255, 95, 95, 0.12);
  color: var(--danger);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
}
.order-send-attachment-item button:hover {
  background: rgba(255, 95, 95, 0.2);
}
.order-send-actions {
  justify-content: flex-end;
}
.order-send-submit {
  min-width: 90px;
}
.order-send-pdf-frame {
  width: min(100%, 720px);
  height: min(78vh, 900px);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.order-send-no-pdf {
  width: min(100%, 720px);
  min-height: min(78vh, 900px);
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
}
.order-pdf-page {
  width: 595px;
  height: 842px;
  flex: 0 0 auto;
  background: #ffffff;
  color: #111111;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 24px 18px 18px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}
.order-pdf-page.is-paginated {
  display: block;
  position: relative;
  padding-bottom: 34px;
}
.order-pdf-page.is-paginated > * {
  margin-bottom: 10px;
}
.order-pdf-page.is-paginated > *:last-child {
  margin-bottom: 0;
}
.order-pdf-page.is-paginated .order-pdf-page-number {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: #444444;
  font-size: 10px;
  font-weight: 700;
}
.order-pdf-title {
  background: #666666;
  color: #ffffff;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 8px;
  padding: 6px 12px;
}
.order-pdf-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 36px;
  align-items: start;
}
.order-pdf-customer {
  display: grid;
  gap: 7px;
  padding-top: 18px;
}
.order-pdf-customer-name {
  border-bottom: 3px double #222222;
  min-height: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  padding-bottom: 2px;
}
.order-pdf-note {
  margin-top: 2px;
}
.order-pdf-customer-address {
  min-height: 28px;
  font-size: 10px;
  line-height: 1.35;
  word-break: break-word;
}
.order-pdf-customer-address[hidden] {
  display: none;
}
.order-pdf-info,
.order-pdf-detail,
.order-pdf-summary {
  border-collapse: collapse;
  table-layout: fixed;
}
.order-pdf-info {
  width: 100%;
  font-size: 11px;
}
.order-pdf-info th,
.order-pdf-info td {
  border: 1px solid #222222;
  height: 21px;
  padding: 3px 6px;
  text-align: center;
}
.order-pdf-info th {
  width: 40%;
  font-weight: 700;
  background: #f8f8f8;
}
.order-pdf-lines {
  display: grid;
  gap: 5px;
}
.order-pdf-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: end;
  gap: 3px;
  min-height: 18px;
}
.order-pdf-line span:first-child {
  font-weight: 700;
  letter-spacing: 0;
}
.order-pdf-line-value {
  border-bottom: 1px solid #222222;
  min-height: 17px;
  padding: 0 4px;
  word-break: break-word;
}
.order-pdf-company {
  display: grid;
  gap: 3px;
  padding-top: 8px;
}
.order-pdf-company-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  min-height: 18px;
}
.order-pdf-company .order-pdf-line {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px;
}
.order-pdf-stamp-row {
  display: grid;
  grid-template-columns: 1fr 70px 70px;
  justify-content: end;
  margin-top: 6px;
}
.order-pdf-stamp-cell {
  display: grid;
  grid-template-rows: 20px 70px;
}
.order-pdf-stamp-cell + .order-pdf-stamp-cell {
  margin-left: -1px;
}
.order-pdf-stamp-label {
  border: 1px solid #222222;
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: #f8f8f8;
}
.order-pdf-stamp {
  width: 70px;
  height: 70px;
  border: 1px solid #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}
.order-pdf-stamp img {
  max-width: 58px;
  max-height: 58px;
  width: auto;
  height: auto;
  display: block;
}
.order-pdf-total {
  width: 260px;
  min-height: 40px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(90deg, #666666 0, #666666 84px, #f5f5f5 84px, #ffffff 100%);
}
.order-pdf-total-label {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  padding-left: 8px;
}
.order-pdf-total-value {
  text-align: right;
  font-size: 17px;
  font-weight: 900;
  padding-right: 14px;
}
.order-pdf-detail-block {
  min-height: 0;
  overflow: hidden;
}
.order-pdf-detail {
  width: 100%;
  font-size: 10px;
}
.order-pdf-detail th,
.order-pdf-detail td {
  border: 1px solid #222222;
  height: 23px;
  padding: 3px 5px;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}
.order-pdf-detail th {
  background: #eeeeee;
  font-weight: 700;
}
.order-pdf-detail th:nth-child(1) {
  width: 48%;
}
.order-pdf-detail th:nth-child(2),
.order-pdf-detail th:nth-child(4) {
  width: 20%;
}
.order-pdf-detail th:nth-child(3) {
  width: 12%;
}
.order-pdf-detail tbody tr:nth-child(even) td {
  background: #f2f2f2;
}
.order-pdf-summary {
  width: 185px;
  margin-left: auto;
  margin-top: -1px;
  font-size: 10px;
}
.order-pdf-summary th,
.order-pdf-summary td {
  border: 1px solid #222222;
  height: 18px;
  padding: 3px 6px;
}
.order-pdf-summary th {
  width: 46px;
  text-align: center;
  font-weight: 700;
}
.order-pdf-summary td {
  text-align: right;
}
.order-pdf-remark {
  border: 1px solid #222222;
  min-height: 56px;
  padding: 4px 6px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4px;
}
.order-pdf-remark-title {
  font-weight: 700;
}
.order-pdf-remark-content {
  white-space: pre-wrap;
  word-break: break-word;
}
.order-accept-preview-slot {
  height: 100%;
  min-height: 560px;
}
.order-accept-preview-slot [hidden] {
  display: none !important;
}
.order-accept-upload-empty {
  min-height: 560px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.order-accept-upload-box {
  color: #64748b;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 320px;
}
.order-accept-upload-title {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}
.order-accept-upload-text {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}
.order-accept-preview-wrap {
  display: grid;
  gap: 10px;
  height: 100%;
  min-height: 560px;
  grid-template-rows: auto minmax(0, 1fr);
}
.order-accept-preview-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.order-accept-preview-head span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-accept-preview-frame {
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
}
.order-issue-items {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}
.order-issue-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.order-issue-items-title {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.order-issue-item-list {
  display: grid;
  gap: 10px;
}
.order-issue-item-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 40px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.order-accept-item-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 40px;
}
.order-accept-item-row [hidden] {
  display: none !important;
}
.order-accept-technician-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.order-accept-technician-wrap input {
  min-width: 0;
}
.order-accept-bp-tag {
  flex: 0 0 auto;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #b45309;
  background: #fffbeb;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
}
.order-issue-item-remove {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  justify-self: center;
  align-self: center;
}
.order-issue-item-row:first-child .order-issue-item-remove {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 1180px) {
  .order-modal-layout,
  .order-send-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: auto;
  }
  .c-dialog.order-dialog-wide .c-dialog-body {
    max-height: calc(94vh - 128px);
    overflow: auto;
  }
  .order-editor-panel {
    position: static;
    max-height: none;
  }
  .order-preview-panel {
    min-height: auto;
    height: auto;
    max-height: none;
  }
  .order-accept-preview-frame {
    height: min(72vh, 760px);
  }
  .order-issue-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-accept-item-row {
    grid-template-columns: 1fr;
  }
  .order-issue-item-remove {
    justify-self: end;
  }
}
@media (max-width: 760px) {
  .order-send-head-grid,
  .order-send-bottom-grid {
    grid-template-columns: 1fr;
  }
}
.c-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-split-grid-wide {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}
@media (max-width:1060px) {
  .c-split-grid-wide {
    grid-template-columns: 1fr;
  }
}
:is(.c-panel-title, .c-title-bar, .header-card, .profile-head, .brand, .brand-left, .top-actions, .topbar, .topbar .title, .topbar-mid, .form-actions, .c-filter-actions-group, .c-filter-actions-bar, .c-table-actions, .nav-item a) {
  display: flex;
  align-items: center;
}
.c-panel-title, .c-title-bar {
  gap: 10px;
}
.c-panel-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.c-panel-title::before, .c-title-bar::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 12px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(28, 123, 255, 0.12);
}
.c-filter-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 12px;
  margin: 0 0 12px;
  align-items: end;
}
.c-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.c-chip {
  padding: 8px 12px;
  border: 1px solid #d7deea;
  background: #f6f8fd;
  border-radius: 12px;
  color: #3b4a60;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.c-chip.active {
  background: rgba(28, 123, 255, 0.12);
  border-color: #5e90ff;
  color: #1f60d8;
  box-shadow: 0 0 0 4px rgba(28, 123, 255, 0.12);
}
.c-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7deea;
  background: #fdfdff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.c-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(28, 123, 255, 0.12);
  background: #ffffff;
}
.c-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.c-list-spaced {
  margin-top: 4px;
}
.c-title-bar {
  font-weight: 800;
  margin: 0 0 6px;
}
.header-card {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.profile-head {
  gap: 14px;
  min-width: 240px;
}
.profile-head .avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid #d8dfec;
  background: radial-gradient(circle at 30% 30%, rgba(94, 144, 255, 0.32), rgba(46, 123, 255, 0.12) 45%, rgba(247, 249, 253, 0.95) 100%);
  display: grid;
  place-items: center;
  color: #5e90ff;
}
.profile-head .avatar svg {
  width: 30px;
  height: 30px;
  display: block;
}
.profile-name {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}
.profile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.profile-quick-link,
.profile-attendance-link {
  text-decoration: none;
}
.profile-quick-link svg,
.profile-attendance-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.profile-page .profile-salary-link {
  background: #fffbeb;
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: none;
}
.my-salary-page .my-salary-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.my-salary-page .my-salary-summary-item {
  min-height: 92px;
}
.my-salary-page .my-salary-summary-value {
  display: block;
  margin-top: 10px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.my-salary-page .my-salary-summary-note {
  display: block;
  margin-top: 8px;
}
.my-salary-page .my-salary-empty-row {
  padding: 28px 12px;
}
@media (max-width: 900px) {
  .my-salary-page .my-salary-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .my-salary-page .my-salary-summary-grid {
    grid-template-columns: 1fr;
  }
  .my-salary-page .my-salary-summary-value {
    font-size: 22px;
  }
  .my-salary-page .my-salary-toolbar,
  .my-salary-page .my-salary-toolbar .c-btn,
  .my-salary-page .my-salary-toolbar .c-inline-field {
    width: 100%;
  }
}
.profile-grid {
  align-items: start;
}
.profile-card {
  box-shadow: var(--shadowSoft);
}
.profile-card .c-card-title {
  margin-bottom: 16px;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #c5cfde;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid-single {
  grid-template-columns: 1fr;
}
.form-grid-spaced {
  gap: 14px;
  margin-top: 18px;
}
.c-upload-card {
  display: grid;
  gap: 16px;
}
.c-upload-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.c-upload-preview {
  width: 120px;
  height: 120px;
  border: 1px dashed var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.c-upload-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.c-upload-controls {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 120px;
}
.c-upload-controls .form-actions {
  margin-top: 0;
  align-self: end;
  justify-content: flex-end;
}
.c-empty-text {
  color: var(--muted);
  font-size: 13px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:is(.form-field label, .c-field, .c-form-page label) {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
:is(.c-field, .c-form-page label) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:is(.form-field, .c-field, .c-form-page) :is(input, textarea, select) {
  border: 1px solid #d8dfec;
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}
:is(.form-field, .c-field, .c-form-page) select {
  appearance: none;
}
:is(.form-field, .c-field, .c-form-page) textarea {
  min-height: 72px;
  resize: vertical;
}
:is(.form-field, .c-field, .c-form-page) :is(input, textarea, select):focus {
  border-color: rgba(28, 123, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(28, 123, 255, 0.12);
}
:is(.form-field, .c-field, .c-form-page) :is(input, textarea)[readonly] {
  background: #f2f4f8;
  color: #7a8597;
  border-color: #e1e6ef;
  cursor: not-allowed;
}
.form-field.full {
  grid-column: 1 / -1;
}
.task-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.task-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}
.form-actions {
  margin-top: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.c-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.c-btn-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}

.c-btn-link:hover {
  text-decoration: underline;
}

.c-file-picker-native {
  display: none;
}

.c-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d8dfec;
  border-radius: 10px;
  background: #fff;
}

.c-file-picker-name {
  flex: 1;
  min-width: 0;
  color: #4b5563;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width:900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .content-spaced > .c-card {
    padding: 14px;
  }
  .match-page .match-sticky-column {
    position: static;
  }
}
.c-title-bar-lg {
  font-size: 20px;
}
.c-title-bar-lg::before {
  height: 20px;
  box-shadow: 0 0 0 6px rgba(36, 107, 253, 0.15);
}
.c-title-bar-sm {
  font-size: 16px;
}
.c-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.c-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c-row-actions-center {
  justify-content: center;
}
.c-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.c-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e6ecf6;
}
.c-check-item span,
.songxin-upload-hint {
  color: var(--muted);
  font-size: 12px;
}
.c-check-item input {
  accent-color: var(--primary);
}
.c-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.c-dialog-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}
.c-dialog-count input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
.c-page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.content-spaced {
  gap: 20px;
}
.content-spaced-compact {
  gap: 12px;
}
.content-spaced > .c-card {
  padding: 16px 18px 18px;
}
.c-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.c-card-fixed {
  width: 360px;
  height: 320px;
}
.content-spaced .form-grid {
  gap: 14px;
}
.content-spaced .c-panel-title {
  margin-bottom: 14px;
}
.content-spaced.content-spaced-compact > .c-card {
  padding: 12px 16px 14px;
}
.content-spaced.content-spaced-compact .c-panel-title {
  margin-bottom: 10px;
}
.c-filter-panel {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at top, rgba(28, 123, 255, 0.08), transparent 70%);
}
.c-filter-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 18px;
}
.c-filter-actions-bar {
  margin-top: 16px;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.c-filter-actions-group {
  gap: 12px;
  flex-wrap: wrap;
}
.c-table-actions {
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px 0;
  justify-content: space-between;
}
.c-table-wrapper {
  overflow-x: auto;
  padding: 12px 20px 20px;
}
.c-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.c-empty {
  text-align: center;
  color: var(--muted);
}
.c-truncate {
  max-width: 220px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.c-table-cell-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.order-page .c-table th,
.order-page .c-table td {
  text-align: center;
  vertical-align: middle;
}
.order-page .c-table .c-truncate {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.c-center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-auth-card {
  width: 360px;
  max-width: 92vw;
}
.login-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 420px;
  max-width: 92vw;
  padding: 26px 28px;
}
.login-lang {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.login-lang .c-switcher-group {
  padding: 2px;
}
.login-lang .c-toggle {
  padding: 6px 14px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 700;
}
.c-brand-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.c-brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  transition: grid-template-columns 0.25s ease;
}
.auth-checking .app {
  visibility: hidden;
}
.auth-gate-status {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  background: var(--bg);
  text-align: center;
}
.auth-gate-status[hidden] {
  display: none;
}
.auth-gate-status.is-error {
  color: var(--danger);
}
body.sidebar-collapsed .app {
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}
.sidebar {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  color: var(--text);
  padding: 18px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-width: 0;
  z-index: 20;
}
.brand {
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 10px 18px;
}
.brand-left, .top-actions {
  gap: 12px;
  min-width: 0;
}
.brand .logo {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.brand .logo-img {
  width: 45px;
  height: 45px;
  display: block;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  line-height: 1.2;
  font-weight: 800;
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.sidebar-handle {
  position: absolute;
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  width: 24px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(216, 223, 236, 0.95);
  background: rgba(255, 255, 255, 0.92);
  color: #6a7a92;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 10px 0 18px rgba(31, 53, 90, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.15s ease;
  z-index: 30;
}
.sidebar-handle:hover {
  transform: translateY(calc(-50% - 1px));
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 12px 0 22px rgba(31, 53, 90, 0.1);
}
.sidebar-handle:active {
  transform: translateY(-50%);
  box-shadow: 10px 0 18px rgba(31, 53, 90, 0.08);
}
.sidebar-handle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(28, 123, 255, 0.14), 10px 0 18px rgba(31, 53, 90, 0.08);
  border-color: rgba(28, 123, 255, 0.35);
}
.handle-icon {
  width: 14px;
  height: 14px;
  display: block;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}
.handle-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.sidebar-collapsed .handle-icon {
  transform: rotate(180deg);
}
.nav {
  margin: 0;
  padding: 8px 6px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.nav-item {
  position: relative;
}
.nav-item a {
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  color: #3b4a60;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  opacity: 0.95;
  transition: 0.15s;
  border: 1px solid rgba(216, 223, 236, 0.9);
  background: rgba(247, 249, 253, 0.92);
  position: relative;
}
.nav-item a:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}
.nav-item a.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: var(--text);
}
.nav-item a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.nav-icon {
  width: 18px;
  height: 18px;
  color: #6a7a92;
  flex: 0 0 auto;
  display: block;
}
.nav-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.sidebar-collapsed:is(.sidebar, .nav) {
  overflow: visible;
}
body.sidebar-collapsed :is(.brand h1, .brand small, .brand-text, .nav-label) {
  display: none;
}
body.sidebar-collapsed .brand {
  justify-content: center;
  padding: 8px 0 18px;
}
body.sidebar-collapsed .brand-left {
  justify-content: center;
  width: 100%;
}
body.sidebar-collapsed .nav-item a {
  justify-content: center;
  width: 100%;
  padding: 12px 0;
  border: none;
  background: transparent;
  box-shadow: none;
  transform: none;
}
body.sidebar-collapsed .nav-item a:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: transparent;
  transform: none;
}
body.sidebar-collapsed .nav-item a.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: transparent;
}
body.sidebar-collapsed .nav-item a.active::before {
  content: none;
}
body.sidebar-collapsed .nav-item a::after {
  z-index: 9999;
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 999;
}
body.sidebar-collapsed .nav-item a:hover::after {
  opacity: 1;
}
.nav-item a.active .nav-icon {
  color: var(--brand);
}
.sidebar .footer {
  margin-top: auto;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-main-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 14px;
}
.footer-main-row > span:first-child {
  justify-self: start;
}
.footer-main-row > span:last-child {
  justify-self: end;
}
.system-expiry-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 112px;
  text-align: center;
}
.system-expiry-label,
.system-expiry-date {
  line-height: 1.18;
  white-space: nowrap;
}
.system-expiry-label {
  font-weight: 600;
}
.system-expiry-date {
  font-weight: 700;
}
.system-expiry-inline.is-expiry-warning .system-expiry-date {
  color: var(--danger);
}
body.sidebar-collapsed .sidebar .footer {
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  align-items: center;
}
body.sidebar-collapsed .system-expiry-inline {
  display: none;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  color: var(--text);
  padding: 16px 22px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.topbar .title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
  gap: 10px;
  white-space: nowrap;
}
.topbar .title span {
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
}
.topbar-mid {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
}
.top-actions .icon-btn {
  width: 44px;
  height: 44px;
}
.icon-btn .top-action-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.icon-btn.top-action-send {
  color: #10b981;
}
#noticeBtn {
  color: #f59e0b;
}
.send-task-entry {
  position: relative;
  flex: 0 0 auto;
}
.send-task-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 300px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  color: var(--text);
  z-index: 30;
}
.send-task-popover[hidden] {
  display: none;
}
.send-task-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
.send-task-popover-head {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.send-task-popover-head strong {
  font-size: 14px;
}
.send-task-popover-head span {
  color: var(--muted);
  font-size: 12px;
}
.send-task-list {
  max-height: 200px;
  display: flex;
  flex-direction: column;
}
.send-task-item {
  min-height: 66px;
  flex: 0 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
}
.send-task-item:last-child {
  border-bottom: 0;
}
.send-task-content {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.send-task-content strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.send-task-content span {
  color: var(--muted);
  font-size: 11px;
}
.send-task-detail {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.send-task-detail:hover {
  text-decoration: underline;
}
.send-task-empty {
  min-height: 100px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.send-task-popover-foot {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  background: #fbfcff;
}
.send-task-popover-foot[hidden] {
  display: none;
}
.send-task-popover-foot button {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.send-task-popover-foot button svg {
  width: 16px;
  height: 16px;
}
.send-task-foot-arrow {
  transition: transform 0.18s ease;
}
.send-task-popover-foot button:hover {
  background: #f3f7ff;
}
.send-task-popover-foot button:hover .send-task-foot-arrow {
  transform: translateX(3px);
}
.icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ff5b5b;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
}
/* 角标在 JS 设为 hidden 时必须强制隐藏，避免被 .icon-btn .badge 的 display 覆盖。 */
.icon-btn .badge[hidden] {
  display: none !important;
}
.top-actions .avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(247, 249, 253, 0.95);
  border: 1px solid rgba(216, 223, 236, 0.95);
  white-space: nowrap;
  cursor: pointer;
}
.top-actions .avatar .pic {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(94, 144, 255, 0.55), rgba(46, 123, 255, 0.18) 55%, rgba(247, 249, 253, 0.95) 100%);
  border: 2px solid rgba(28, 123, 255, 0.18);
}
.top-actions .avatar strong {
  font-size: 13px;
  color: var(--text);
}
.top-actions .avatar small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.top-actions .lang-switch {
  margin-right: 12px;
  flex: 0 0 auto;
}
.lang-switch .c-toggle {
  min-width: 72px;
  text-align: center;
  white-space: nowrap;
}
.main-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
}
.frame-card {
  height: 100%;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(216, 223, 236, 0.95);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.main-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
/* Finance pages */
body.finance-shell,
body.finance-module-page,
body.finance-subpage {
  background: transparent;
}
body.finance-shell > .page,
body.finance-module-page > .page {
  height: 100vh;
  min-height: 0;
}
body.finance-module-page > .page,
body.finance-subpage {
  padding: 0;
}
.c-inline-filters-grid-3.payroll-basic-filter-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
}
.payroll-basic-search-action {
  justify-content: flex-end;
}
.payroll-basic-delete-action {
  margin-right: auto;
}
.personnel-page .modal-card.payroll-basic-modal-card {
  width: min(1440px, calc(100vw - 32px));
}
.personnel-page .payroll-basic-modal-card .modal-body {
  overflow-x: hidden;
}
.personnel-page .payroll-basic-modal-card .payroll-basic-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.personnel-page .payroll-basic-modal-card .payroll-basic-form-grid > label,
.personnel-page .payroll-basic-modal-card .payroll-basic-form-grid > .payroll-basic-adjustments-grid,
.payroll-basic-adjustments-grid > .payroll-items-panel {
  min-width: 0;
}
.payroll-basic-adjustments-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.payroll-basic-adjustments-grid .payroll-items-panel {
  grid-column: auto;
}
.payroll-items-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fbfcff;
}
.payroll-items-header,
.payroll-item-row {
  display: grid;
  align-items: center;
  gap: 10px;
}
.payroll-items-header {
  grid-template-columns: minmax(0, 1fr) auto;
  font-weight: 700;
  color: var(--text);
}
.payroll-items-list {
  display: grid;
  gap: 8px;
}
.payroll-item-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr) auto;
}
.payroll-item-row input {
  width: 100%;
}
.payroll-basic-adjustment-panel .payroll-item-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr);
}
.payroll-item-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}
.payroll-calculated-rate {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}
.payroll-item-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}
.finance-page .c-switch-wrap {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}
.finance-page .c-switcher-group {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.finance-shell-stack {
  height: 100%;
  min-height: 0;
}
.finance-content {
  flex: 1 1 auto;
  min-height: 240px;
}
.finance-module-frame,
.finance-subframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
.finance-module-page-shell {
  width: 100%;
}
.finance-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}
.finance-view.hidden {
  display: none;
}
.finance-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.finance-section-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
}
.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.finance-summary-item {
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  background: #f8fafc;
}
.finance-summary-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.finance-summary-value {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.finance-empty-row {
  text-align: center;
  color: #94a3b8;
  padding: 28px 12px;
}
.finance-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: #f8fafc;
}
.finance-subtab {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.finance-subtab.is-active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.finance-subframe-shell {
  flex: 1 1 auto;
  min-height: 280px;
  overflow: hidden;
}
.finance-subpage-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.basic-item-settings-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.employment-insurance-layout {
  display: grid;
  grid-template-columns: minmax(420px, 720px) minmax(240px, 320px);
  gap: 16px;
  align-items: start;
  width: min(100%, 1080px);
  margin: 18px auto 0;
}
.employment-insurance-settings,
.employment-insurance-summary {
  overflow: hidden;
  box-shadow: none;
}
.employment-insurance-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.employment-insurance-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.employment-insurance-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}
.employment-insurance-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.employment-insurance-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.employment-insurance-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.employment-insurance-rate-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.employment-insurance-rate-input input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.employment-insurance-rate-input input:focus {
  outline: 0;
}
.employment-insurance-rate-input:focus-within {
  border-color: rgba(28, 123, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(28, 123, 255, 0.1);
}
.employment-insurance-rate-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.employment-insurance-rate-input span {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.employment-insurance-summary {
  display: grid;
  gap: 0;
}
.employment-insurance-summary-item {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.employment-insurance-summary-item:last-child {
  border-bottom: 0;
}
.employment-insurance-summary-item span {
  color: var(--muted);
  font-size: 12px;
}
.employment-insurance-summary-item strong {
  color: var(--text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.employment-insurance-summary-item.is-total {
  background: #f8fafc;
}
.employment-insurance-summary-item.is-total strong {
  color: var(--primary);
  font-size: 22px;
}
.employment-insurance-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px 16px;
}
.employment-insurance-status {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.employment-insurance-status.is-success {
  color: var(--success);
}
.employment-insurance-status.is-error {
  color: var(--danger);
}
.basic-item-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.basic-item-settings-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  box-shadow: none;
}
.basic-item-settings-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.basic-item-settings-column-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}
.basic-item-settings-column-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.basic-item-settings-column-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}
.basic-item-settings-list {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1 1 auto;
  padding: 14px;
}
.basic-item-settings-empty {
  padding: 28px 8px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}
.basic-item-settings-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.basic-item-settings-order {
  color: #94a3b8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.basic-item-settings-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.basic-item-settings-row input:focus {
  border-color: rgba(28, 123, 255, 0.55);
  outline: 3px solid rgba(28, 123, 255, 0.1);
}
.basic-item-settings-row input.is-invalid {
  border-color: var(--danger);
  outline: 3px solid rgba(239, 68, 68, 0.1);
}
.basic-item-settings-status {
  min-height: 32px;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}
.basic-item-settings-status.is-success {
  color: var(--success);
}
.basic-item-settings-status.is-error {
  color: var(--danger);
}
.basic-item-settings-column.is-saving {
  opacity: 0.78;
}
@media (max-width: 1100px) {
  .employment-insurance-layout {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 0;
  }
  .employment-insurance-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .employment-insurance-summary-item {
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }
  .employment-insurance-summary-item:last-child {
    border-right: 0;
  }
  .basic-item-settings-grid {
    grid-template-columns: 1fr;
  }
  .basic-item-settings-column {
    min-height: 0;
  }
}
@media (max-width: 560px) {
  .employment-insurance-header,
  .basic-item-settings-column-head {
    flex-direction: column;
  }
  .employment-insurance-body {
    grid-template-columns: 1fr;
  }
  .employment-insurance-summary {
    grid-template-columns: 1fr;
  }
  .employment-insurance-summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .employment-insurance-summary-item:last-child {
    border-bottom: 0;
  }
  .basic-item-settings-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .basic-item-settings-row .c-btn {
    grid-column: 2;
    justify-self: start;
  }
}
.finance-sheet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.finance-sheet-metadata {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.finance-sheet-meta-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.finance-sheet-meta-field span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.finance-sheet-meta-field .c-input {
  width: 160px;
  min-height: 38px;
}
.finance-sheet-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.finance-sheet-file {
  display: none;
}
.finance-sheet-wrap {
  width: 100%;
  max-height: 560px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}
.finance-sheet-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  table-layout: fixed;
}
.finance-sheet-table th,
.finance-sheet-table td {
  height: 34px;
  min-width: 120px;
  padding: 7px 10px;
  border-right: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;
  background: #fff;
  text-align: left;
  white-space: nowrap;
}
.finance-sheet-table thead th,
.finance-sheet-table tbody th {
  min-width: 44px;
  width: 44px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  text-align: center;
  position: sticky;
  z-index: 2;
}
.finance-sheet-table thead th {
  top: 0;
}
.finance-sheet-table thead th.finance-sheet-tax-action-cell {
  padding-right: 64px;
}
.finance-sheet-tax-actions {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  gap: 4px;
  transform: translateY(-50%);
}
.finance-sheet-tax-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(28, 123, 255, 0.24);
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.finance-sheet-tax-action:hover {
  background: #eff6ff;
}
.finance-sheet-tax-action:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}
.finance-sheet-table tbody th {
  left: 0;
}
.finance-sheet-table .finance-sheet-corner {
  left: 0;
  z-index: 3;
}
.finance-sheet-title-row td {
  background: #eef6ff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}
.finance-sheet-group-row td {
  height: 80px;
  border-right-color: #111827;
  border-right-width: 2px;
  border-bottom-color: #111827;
  color: #020617;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}
.finance-sheet-subgroup-row td {
  border-bottom-color: #111827;
  color: #020617;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}
.finance-sheet-header-row td {
  background: #f8fafc;
  border-bottom-color: #111827;
  color: #020617;
  font-weight: 800;
  text-align: center;
}
.finance-sheet-imported-cell {
  background: #f8fafc;
  color: #0f172a;
}
.finance-sheet-editable-cell {
  cursor: text;
}
.finance-sheet-editable-cell:focus {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #eff6ff;
}
.finance-sheet-default-cell {
  background: #fff;
}
.finance-sheet-new {
  display: block;
  color: #ff0000;
  font-size: 16px;
  line-height: 1.1;
}
.finance-sheet-table tbody tr:hover td {
  background: #f8fbff;
}
.finance-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}
.finance-overview-panel {
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.finance-overview-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}
.finance-month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.finance-month-card {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.finance-month-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.finance-month-value {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.finance-month-list {
  display: grid;
  gap: 10px;
}
.finance-month-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2937;
  font-weight: 800;
  cursor: pointer;
}
.finance-month-item:hover {
  border-color: rgba(28, 123, 255, 0.42);
  background: #eff6ff;
}
.finance-month-amount {
  color: #b91c1c;
}
.finance-overview-note {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}
.payroll-monthly-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) auto minmax(160px, 0.85fr) minmax(180px, 0.9fr) auto auto auto;
  align-items: center;
  gap: 12px;
}
.payroll-monthly-filter-row .c-btn {
  min-height: 44px;
  white-space: nowrap;
}
.payroll-monthly-filter-row .c-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
@media (max-width: 980px) {
  .finance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .finance-section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .finance-overview-grid,
  .finance-month-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1180px) {
  .payroll-monthly-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .finance-page .c-page-head-grid {
    grid-template-columns: 1fr;
  }
  .finance-page .c-switch-wrap {
    justify-self: stretch;
  }
  .finance-summary-grid,
  .c-inline-filters-grid-3 {
    grid-template-columns: 1fr;
  }
  .c-inline-filters-grid-3.payroll-basic-filter-row {
    grid-template-columns: 1fr;
  }
  .payroll-basic-search-action {
    justify-content: flex-start;
  }
  .payroll-item-row {
    grid-template-columns: 1fr;
  }
  .payroll-basic-adjustment-panel .payroll-item-row {
    grid-template-columns: 1fr;
  }
  .payroll-item-row .c-btn {
    width: 100%;
  }
  .payroll-basic-adjustments-grid {
    grid-template-columns: 1fr;
  }
  .finance-section-title {
    font-size: 18px;
  }
}
/* Personnel page */
.personnel-page .page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.personnel-page .c-table-actions {
  justify-content: flex-end;
  padding-right: 18px;
}
.c-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 18px 16px;
}
.pagination-summary {
  margin-right: 32px;
  font-size: 13px;
  color: #6b7280;
}
.pagination-pages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.c-pagination .c-btn.is-active {
  background: rgba(28, 123, 255, 0.12);
  border-color: rgba(28, 123, 255, 0.3);
  color: var(--primary);
  font-weight: 700;
}
.c-pagination .c-btn.is-ellipsis {
  cursor: default;
  opacity: 0.6;
}
.page-gap-compact,
.role-menu-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.role-menu-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid #dfe6f5;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.role-menu-check:hover {
  border-color: rgba(28, 123, 255, 0.35);
  box-shadow: 0 8px 18px rgba(31, 53, 90, 0.08);
  background: #f8faff;
}
.role-menu-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
}
.personnel-page .modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.personnel-page .modal.show {
  display: flex;
}
.personnel-page .modal-card {
  width: min(820px, 95%);
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.25);
  padding: 18px 24px 16px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.personnel-page .payroll-monthly-modal-card {
  width: min(1180px, calc(100vw - 24px));
  max-height: 94vh;
  padding: 16px 24px 14px;
  min-width: 0;
  overflow: hidden;
}
.personnel-page .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
}
.personnel-page .modal-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.personnel-page .modal-close {
  background: transparent;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--muted);
  padding: 0;
  border: none;
  cursor: pointer;
  font-size: 22px;
}
.personnel-page .modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(86vh - 120px);
  padding-right: 6px;
}
.personnel-page .payroll-monthly-modal-card .modal-body {
  gap: 12px;
  max-height: calc(94vh - 104px);
  overflow-x: hidden;
}
.personnel-page .payroll-monthly-modal-card .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.personnel-page .payroll-monthly-modal-card .form-grid > *,
.personnel-page .payroll-monthly-detail-grid > *,
.personnel-page .payroll-calculated-columns > *,
.personnel-page .payroll-monthly-modal-card label,
.personnel-page .payroll-monthly-modal-card input,
.personnel-page .payroll-monthly-modal-card select {
  min-width: 0;
}
.personnel-page .payroll-monthly-modal-card .payroll-items-panel {
  padding: 10px 12px;
  gap: 8px;
  min-width: 0;
}
.personnel-page .payroll-monthly-modal-card .payroll-items-list {
  gap: 6px;
}
.personnel-page .payroll-monthly-detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.personnel-page .payroll-monthly-detail-grid .payroll-items-panel {
  grid-column: auto;
}
.personnel-page .payroll-monthly-detail-grid .payroll-monthly-calculated-panel {
  grid-column: 1 / -1;
}
.personnel-page .payroll-monthly-calculated-panel,
.personnel-page .payroll-monthly-summary-panel {
  grid-column: 1 / -1;
}
.personnel-page .payroll-monthly-adjustment-panel .payroll-item-row {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 128px) auto;
}
.personnel-page .payroll-monthly-adjustment-panel input {
  min-height: 34px;
  padding-block: 6px;
}
.personnel-page .payroll-calculated-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
}
.personnel-page .payroll-calculated-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.personnel-page .payroll-calculated-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.personnel-page .payroll-calculated-group-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.personnel-page .payroll-calculated-table {
  margin: 0;
  table-layout: fixed;
}
.personnel-page .payroll-calculated-table th,
.personnel-page .payroll-calculated-table td {
  padding: 7px 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.personnel-page .payroll-calculated-table input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding-block: 4px;
  background: #fff;
}
.personnel-page .payroll-monthly-modal-card input.is-modified,
.personnel-page .payroll-monthly-modal-card select.is-modified {
  border-color: #f59e0b;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.12);
}
.personnel-page .payroll-monthly-modal-card .payroll-item-row.is-modified {
  border-radius: 8px;
}
.personnel-page .payroll-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.personnel-page .payroll-summary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  display: grid;
  gap: 4px;
}
.personnel-page .payroll-summary-item span {
  color: var(--muted);
  font-size: 12px;
}
.personnel-page .payroll-summary-item strong {
  font-size: 17px;
  color: var(--text);
}
.personnel-page .payroll-summary-item.is-modified {
  border-color: #f59e0b;
  background: #fff7ed;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}
.personnel-page .payroll-summary-net {
  border-color: rgba(37, 99, 235, 0.35);
  background: #f6f9ff;
}
.personnel-page .payroll-summary-net.is-modified {
  border-color: #f59e0b;
  background: #fff7ed;
}
.personnel-page .payroll-summary-net strong {
  color: var(--primary);
  font-size: 20px;
}
.personnel-page .payroll-monthly-modal-card .modal-actions {
  padding-top: 10px;
}
@media (max-width: 900px) {
  .payroll-basic-adjustments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .personnel-page .payroll-basic-modal-card .payroll-basic-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .personnel-page .payroll-monthly-modal-card .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .personnel-page .payroll-monthly-detail-grid,
  .personnel-page .payroll-calculated-columns,
  .personnel-page .payroll-summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .personnel-page .payroll-basic-modal-card .payroll-basic-form-grid,
  .payroll-basic-adjustments-grid {
    grid-template-columns: 1fr;
  }
  .personnel-page .payroll-monthly-modal-card {
    width: calc(100vw - 12px);
    max-height: 96vh;
    padding: 14px 16px 12px;
  }
  .personnel-page .payroll-monthly-modal-card .modal-body {
    max-height: calc(96vh - 100px);
  }
  .personnel-page .payroll-monthly-modal-card .form-grid {
    grid-template-columns: 1fr;
  }
  .personnel-page .payroll-monthly-detail-grid,
  .personnel-page .payroll-calculated-columns,
  .personnel-page .payroll-summary-bar {
    grid-template-columns: 1fr;
  }
  .personnel-page .payroll-monthly-modal-card .modal-actions {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}
.personnel-page .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin: 12px -24px -16px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--line);
  background: #f8f9fb;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
@media (max-width:640px) {
  .personnel-page .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .personnel-page tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    border-bottom: 1px solid #eef2ff;
    padding: 12px 0;
  }
}
@media (max-width:820px) {
  body > .page {
    padding: 14px;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
  }
  .topbar {
    position: relative;
  }
  .main-body {
    padding: 16px;
  }
}
/* Shared components */
.c-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
details.c-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.c-accordion summary::-webkit-details-marker {
  display: none;
}
.c-accordion .c-accordion-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.c-accordion .c-chevron {
  display: inline-block;
  transition: transform .15s ease;
}
.c-accordion[open] .c-chevron {
  transform: rotate(90deg);
}
.c-accordion-body {
  margin-top: 12px;
}
.c-lazy {
  font-weight: 700;
  color: var(--muted);
  padding: 8px 4px 2px;
}
.c-month-toggle {
  display: flex;
  gap: 10px;
  margin: 6px 0 12px;
}
.c-month-toggle .c-toggle {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
}
.c-title-spacer {
  width: 34px;
  height: 26px;
  display: inline-block;
}
.c-title-bar-xl {
  font-size: 22px;
}
.c-title-bar-xl::before {
  height: 22px;
  box-shadow: 0 0 0 6px rgba(36, 107, 253, .15);
}
.c-ico {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(28, 123, 255, .1);
  color: var(--primary);
  flex: 0 0 auto;
}
.c-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.c-ico-success {
  background: rgba(34, 197, 94, .12);
  color: #16a34a;
}
.c-map-wrap {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(180deg, rgba(47, 128, 255, .18), rgba(47, 128, 255, 0)) border-box;
  border: 1px solid transparent;
}
.c-map {
  height: 240px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 25% 35%, rgba(90, 173, 255, .25), transparent 45%), radial-gradient(circle at 70% 55%, rgba(90, 173, 255, .18), transparent 48%), linear-gradient(135deg, rgba(62, 131, 255, .15), rgba(255, 255, 255, 0)), repeating-linear-gradient(0deg, rgba(120, 140, 170, .14) 0, rgba(120, 140, 170, .14) 1px, transparent 1px, transparent 18px), repeating-linear-gradient(90deg, rgba(120, 140, 170, .12) 0, rgba(120, 140, 170, .12) 1px, transparent 1px, transparent 18px);
  background-color: #eef5ff;
  filter: saturate(1.05);
}
.c-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.c-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .15));
  pointer-events: none;
}
.c-status-pill {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .08);
  border: 1px solid rgba(47, 128, 255, .1);
  max-width: 220px;
}
.c-status-tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  display: grid;
  place-items: center;
  color: #16a34a;
  flex: 0 0 auto;
  margin-top: 1px;
}
.c-status-text {
  line-height: 1.12;
}
.c-status-text .c-status-title {
  font-weight: 800;
  font-size: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.c-status-text .c-status-title .c-chevron {
  color: #9aa6b2;
  font-weight: 900;
  transform: translateY(-1px);
}
.c-status-text .c-status-detail {
  margin-top: 6px;
  font-weight: 700;
  font-size: 18px;
  color: #3b4552;
}
.c-attendance-today, .c-attendance-today-strong {
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 255, .08);
}
.c-attendance-today {
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(47, 128, 255, .05), rgba(47, 128, 255, 0) 75%);
}
.c-attendance-today-strong {
  padding: 14px 14px 18px;
  background: linear-gradient(180deg, rgba(47, 128, 255, .05), rgba(47, 128, 255, 0) 72%);
}
.c-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #e9f2ff;
  color: #1f2a37;
  font-weight: 800;
  margin-bottom: 10px;
}
.c-date-chip .c-date-chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(47, 128, 255, .12);
  display: grid;
  place-items: center;
  color: var(--blue);
}
.c-info-label {
  font-weight: 800;
  color: #3d4653;
  opacity: .75;
  font-size: 18px;
  letter-spacing: .2px;
}
.c-info-time {
  margin-top: 8px;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: 1px;
  color: #0f172a;
}
.c-info-sub {
  margin-top: 10px;
  font-weight: 800;
  font-size: 34px;
  color: #9aa6b2;
}
.c-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.c-stat-card {
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadowSoft);
  border: 1px solid rgba(15, 23, 42, .05);
  background: #fff;
}
.c-stat-card.is-green {
  background: linear-gradient(180deg, rgba(34, 197, 94, .1), rgba(255, 255, 255, .9));
}
.c-stat-card.is-orange {
  background: linear-gradient(180deg, rgba(245, 158, 11, .12), rgba(255, 255, 255, .92));
}
.c-stat-card.is-red {
  background: linear-gradient(180deg, rgba(239, 68, 68, .1), rgba(255, 255, 255, .92));
}
.c-stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
}
.c-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, .06);
}
.c-stat-card.is-green .c-stat-icon {
  background: rgba(34, 197, 94, .16);
  color: #16a34a;
}
.c-stat-card.is-orange .c-stat-icon {
  background: rgba(245, 158, 11, .18);
  color: #d97706;
}
.c-stat-card.is-red .c-stat-icon {
  background: rgba(239, 68, 68, .16);
  color: #dc2626;
}
.c-stat-value {
  margin-top: 12px;
  font-weight: 950;
  font-size: 54px;
  letter-spacing: 1px;
  color: #0f172a;
  opacity: .9;
}
.c-stat-unit {
  font-size: 22px;
  font-weight: 900;
  margin-left: 6px;
  opacity: .85;
}
.c-stat-card.is-orange .c-stat-value {
  color: #c26b00;
}
.c-stat-card.is-red .c-stat-value {
  color: #b42323;
}
.c-time-item {
  color: #0f172a;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .3px;
}
.c-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}
.c-modal-backdrop.show {
  display: flex;
}
.c-modal {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
  padding: 18px 18px 16px;
}
.c-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.c-modal-title {
  font-weight: 900;
  font-size: 20px;
}
.c-modal-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #94a3b8;
  font-weight: 900;
}
.c-modal-body {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.c-modal-field {
  display: grid;
  gap: 6px;
}
.c-modal-field label {
  font-weight: 800;
  color: #3b4552;
  font-size: 14px;
}
.c-modal-field input, .c-modal-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  background: #f8fafc;
}
.c-modal-field textarea {
  min-height: 88px;
  resize: vertical;
}
.c-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.c-modal-error {
  color: #dc2626;
  font-weight: 800;
  font-size: 13px;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .18);
  padding: 8px 10px;
  border-radius: 10px;
}
.c-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1000;
}
.c-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
svg {
  fill: currentColor;
}
@media (max-width:380px) {
  .c-map {
    height: 200px;
  }
  .c-info-time {
    font-size: 40px;
  }
  .c-stat-value {
    font-size: 48px;
  }
}
.c-attendance-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.c-attendance-stage {
  position: relative;
  padding-top: 12px;
  padding-bottom: 4px;
}
.c-attendance-bar {
  height: 128px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(245, 250, 255, .92));
  border: 1px solid rgba(47, 128, 255, .1);
  box-shadow: inset 0 10px 18px rgba(15, 23, 42, .05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 18px 52px;
  column-gap: 120px;
  position: relative;
  overflow: hidden;
}
.c-attendance-bar::before {
  content: "";
  position: absolute;
  inset: -40px -60px auto -60px;
  height: 120px;
  background: radial-gradient(circle at 50% 50%, rgba(47, 128, 255, .1), rgba(47, 128, 255, 0) 65%);
  transform: translateY(20px);
  pointer-events: none;
}
.c-attendance-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 128, 255, .18), transparent);
  opacity: .6;
  pointer-events: none;
}
.c-attendance-col {
  text-align: center;
  position: relative;
  z-index: 1;
}
.c-attendance-col:first-child {
  justify-self: start;
}
.c-attendance-col:last-child {
  justify-self: end;
}
.c-attendance-bar .c-info-label {
  font-weight: 900;
  font-size: 18px;
  color: #2a3442;
  opacity: .75;
  letter-spacing: .2px;
}
.c-attendance-bar .c-info-time {
  margin-top: 10px;
  font-weight: 950;
  font-size: 44px;
  letter-spacing: 1px;
  color: #0f172a;
}
.c-attendance-bar .c-info-sub {
  margin-top: 10px;
  font-weight: 950;
  font-size: 34px;
  color: #9aa6b2;
}
.c-punch-btn {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -26px);
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  user-select: none;
  background: radial-gradient(circle at 30% 26%, #c7f0ff 0%, #63bfff 22%, #2f80ff 58%, #1a64ff 100%);
  box-shadow: 0 30px 44px rgba(47, 128, 255, .42), 0 12px 20px rgba(47, 128, 255, .22), 0 8px 14px rgba(15, 23, 42, .14), inset 0 10px 16px rgba(255, 255, 255, .42), inset 0 -14px 22px rgba(0, 0, 0, .22);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  z-index: 3;
}
.c-punch-btn::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 255, .28), rgba(47, 128, 255, 0) 62%);
  filter: blur(3px);
  pointer-events: none;
  z-index: -1;
}
.c-punch-btn::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 70%);
  opacity: .95;
  pointer-events: none;
}
.c-punch-btn .c-punch-title {
  font-weight: 1000;
  font-size: 40px;
  letter-spacing: 2px;
  text-shadow: 0 8px 16px rgba(0, 0, 0, .16);
  line-height: 1;
}
.c-punch-btn .c-punch-time {
  font-weight: 900;
  font-size: 16px;
  opacity: .95;
  text-shadow: 0 8px 16px rgba(0, 0, 0, .16);
}
.c-punch-btn:hover {
  filter: saturate(1.06) brightness(1.03);
  transform: translate(-50%, -30px);
}
.c-punch-btn:active {
  transform: translate(-50%, -18px) scale(.985);
  box-shadow: 0 16px 26px rgba(47, 128, 255, .28), 0 8px 14px rgba(15, 23, 42, .18), inset 0 6px 12px rgba(255, 255, 255, .3), inset 0 -10px 18px rgba(0, 0, 0, .26);
}
.c-attendance-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -28px);
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .9), rgba(240, 246, 255, .9) 55%, rgba(230, 240, 255, .92) 100%);
  box-shadow: inset 0 12px 18px rgba(15, 23, 42, .08), inset 0 -8px 14px rgba(255, 255, 255, .85);
  border: 1px solid rgba(47, 128, 255, .08);
  z-index: 2;
  pointer-events: none;
}

/* Match page */
.match-page .match-list {
  max-height: 360px;
}
.match-page .match-sticky-column {
  position: sticky;
  top: 16px;
  align-self: start;
}
.match-page .item {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s ease;
}
.match-page .item:last-child {
  border-bottom: none;
}
.match-page .item:hover {
  background: #edf3ff;
}
.match-page .item.active {
  background: #dbe7ff;
}
.match-page .item-main {
  flex: 1;
}
.match-page .empty {
  padding: 16px 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.match-page .item-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.match-page .item-desc {
  font-size: 13px;
  color: var(--muted);
}
.match-page .item-time,
.match-page .person-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.match-page .mail-feedback-control {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
.match-page .mail-feedback-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #c9d5ea;
  border-radius: 999px;
  background: #fff;
  color: #6d7b92;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all 0.12s ease;
}
.match-page .mail-feedback-btn:hover {
  border-color: #7aa7ff;
  color: var(--primary);
  background: #f5f9ff;
}
.match-page .mail-feedback-btn.is-submitted {
  border-color: #f2b35e;
  background: #fff3df;
  color: #b46b00;
  cursor: default;
}
.match-page .mail-feedback-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 280px;
  padding: 14px;
  border: 1px solid #d9e3f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(35, 61, 112, 0.14);
  display: none;
}
.match-page .mail-feedback-popover.is-visible {
  display: block;
}
.match-page .mail-feedback-title {
  font-size: 14px;
  font-weight: 700;
  color: #243247;
}
.match-page .mail-feedback-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.match-page .mail-feedback-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #324156;
  font-size: 13px;
}
.match-page .mail-feedback-option input {
  margin: 0;
}
.match-page .mail-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.match-page .detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.match-page .detail-title-row > span {
  min-width: 0;
}
.match-page .detail-feedback-control {
  flex-direction: row;
  align-items: center;
  margin-left: auto;
}
.match-page .detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafbfe;
  font-size: 14px;
  line-height: 1.7;
  color: #435065;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.match-page .match-list.jobs {
  max-height: 420px;
}
.match-page .match-list.persons {
  max-height: 620px;
}
.match-page .match-person-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.match-page .match-person-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #435065;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.match-page .match-person-select-all input,
.match-page .match-person-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.match-page .match-person-selected-count {
  min-width: 64px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.match-page .match-person-checkbox {
  flex: 0 0 16px;
}
.match-page .match-result-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.match-page .match-result-list-header h2 {
  margin: 0;
  font: inherit;
}
.match-page .match-result-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #435065;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.match-page .match-result-select-all input,
.match-page .match-result-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.match-page .match-result-select-all input:disabled {
  cursor: not-allowed;
}
.match-page .match-result-selected-count {
  min-width: 72px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.match-page .match-result-checkbox {
  flex: 0 0 16px;
}
.match-page .search-row,
.songxin-upload-bar,
.songxinhistory-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-page .c-filter-grid {
  align-items: start;
}
.bpmatch-page .c-filter-grid {
  grid-template-columns: max-content minmax(max-content, 1.5fr) minmax(0, 3fr);
}
.match-page .price-filter-group {
  min-width: max-content;
}
.match-page .price-filter-spacer {
  visibility: hidden;
}
.match-page .strict-price-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-page .strict-price-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  color: #3b4a60;
  user-select: none;
}
.match-page .strict-price-check input {
  margin: 0;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  accent-color: var(--primary);
  cursor: pointer;
}
.match-page .search-row .search-input {
  flex: 1 1 0;
}
.match-page .item-title,
.match-page .item-desc,
.match-page .person-name,
.match-page .detail-text {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.match-page .person-name {
  font-weight: 600;
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.match-page .detail-text {
  margin-top: 4px;
  min-height: 180px;
  white-space: pre-line;
}
.match-page .skill-highlight {
  background: #ffe59e;
  color: #8a4b00;
  padding: 0 4px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #f3c763 inset;
}
.match-page .detail-text p {
  margin: 0 0 10px;
}
.match-page .detail-text p:last-child {
  margin-bottom: 0;
}
.match-page .detail-actions,
.match-page .detail-actions-left {
  display: flex;
  margin-top: 12px;
}
.match-page .detail-actions {
  justify-content: flex-end;
}
.match-page .detail-actions-left {
  justify-content: flex-start;
}
.match-page .loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.match-page .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c9d5ea;
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1080px) {
  .match-page .c-filter-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .match-page .match-list.jobs,
  .match-page .match-list.persons {
    max-height: 320px;
  }
}

/* songxin page */
.songxin-page {
  margin: 18px auto 32px;
  padding: 0 24px 24px;
}
.songxin-queue-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  color: #5c6b80;
  font-size: 14px;
}
.songxin-queue-status[hidden] {
  display: none;
}
.songxin-queue-status strong {
  padding: 5px 10px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary);
  font-size: 13px;
}
.songxin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.c-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.songxin-grid-half {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.songxin-grid + .songxin-grid {
  margin-top: 16px;
}
.songxin-editor-card,
.songxin-original-card {
  min-height: 620px;
}
.songxin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.songxin-card-head .c-card-title {
  margin-bottom: 0;
}
.songxin-template-trigger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.songxin-template-trigger:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(28, 123, 255, 0.14);
  transform: translateY(-1px);
}
.songxin-template-trigger:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(28, 123, 255, 0.14);
}
.songxin-template-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.songxin-editor {
  width: 100%;
  min-height: 500px;
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.songxin-editor:focus,
.songxin-template-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(28, 123, 255, 0.14);
}
.songxin-editor-readonly {
  background: #f9fbff;
  color: #455164;
  resize: none;
  overflow: auto;
}
.songxin-form .form-field {
  margin-bottom: 14px;
}
.songxin-send-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.songxin-send-actions #btn-send {
  white-space: nowrap;
}
.songxin-preview {
  font-size: 14px;
  color: #435065;
  line-height: 1.7;
  min-height: 140px;
  white-space: pre-line;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafbfe;
  overflow: auto;
}
.songxin-file-input {
  display: none;
}
.songxin-template-textarea {
  width: 100%;
  min-height: 340px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.songxin-template-dialog .c-dialog-header {
  align-items: flex-start;
  padding: 20px 22px 0;
}
.songxin-template-header-text {
  min-width: 0;
}
.songxin-template-dialog .c-dialog-header h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}
.songxin-template-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.songxin-template-dialog .c-dialog-close {
  margin-top: -2px;
}
.songxin-template-dialog .c-dialog-body {
  padding: 8px 20px 8px;
}
.songxin-template-dialog .c-dialog-actions {
  padding: 12px 20px 20px;
  gap: 14px;
}
.songxin-template-dialog .c-dialog-actions .c-btn {
  min-width: 120px;
  height: 44px;
  border-radius: 14px;
}
.songxin-attachment-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.songxin-attachment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e0e7f3;
  border-radius: 10px;
  background: #f9fbff;
}
.songxin-attachment-name {
  font-size: 13px;
  color: #2f3b4d;
}
.songxin-attachment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7686;
  font-size: 12px;
}
.songxin-remove-link {
  color: #e35d5d;
  cursor: pointer;
  font-weight: 600;
}
.songxin-empty-tip {
  color: var(--muted);
  font-size: 13px;
}
.songxin-loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(18, 36, 66, 0.14);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.songxin-loading-box {
  background: #0c1d36;
  color: #e9f2ff;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(12, 29, 54, 0.35);
  min-width: 280px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.songxinhistory-page .c-split-grid-wide {
  align-items: stretch;
  min-height: calc(100vh - 140px);
}
.songxinhistory-page .c-split-grid-wide > .c-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.songxinhistory-page .c-filter-grid {
  align-items: flex-start;
  margin-bottom: 10px;
}
.songxinhistory-search-row .c-input {
  flex: 1 1 0;
}
.songxinhistory-list {
  margin-top: 6px;
  flex: 1;
  max-height: none;
  overflow: auto;
}
.songxinhistory-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}
.songxinhistory-item:last-child {
  border-bottom: none;
}
.songxinhistory-item:hover {
  background: #f4f7ff;
}
.songxinhistory-item.is-active {
  background: #e6efff;
  box-shadow: inset 0 0 0 1px rgba(28, 123, 255, 0.35);
}
.songxinhistory-item-empty {
  cursor: default;
}
.songxinhistory-item-empty:hover {
  background: #ffffff;
  box-shadow: none;
}
.songxinhistory-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f2a3d;
  margin-bottom: 4px;
}
.songxinhistory-meta {
  gap: 8px 12px;
}
.songxinhistory-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.songxinhistory-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 12px;
  margin-bottom: 10px;
}
.songxinhistory-detail-meta span {
  font-size: 13px;
  color: #4a5568;
}
.sendtask-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 24px;
  margin-bottom: 10px;
}
.sendtask-detail-head .songxinhistory-detail-meta {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin-bottom: 0;
}
.sendtask-detail-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  white-space: nowrap;
}
.sendtask-detail-actions[hidden] {
  display: none;
}
@media (max-width: 720px) {
  .sendtask-detail-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .sendtask-detail-head .songxinhistory-detail-meta {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .sendtask-detail-actions {
    justify-self: end;
  }
}
.songxinhistory-section-title {
  margin-top: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.songxinhistory-detail {
  min-height: 220px;
  flex: 1;
  overflow: auto;
  color: #414d63;
  line-height: 1.7;
  margin-top: 10px;
}
.songxinhistory-detail h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.songxinhistory-detail p {
  margin: 0 0 10px;
  white-space: pre-line;
}
.songxinhistory-attachments {
  margin-top: 6px;
}
@media (max-width: 1060px) {
  .songxinhistory-page .c-split-grid-wide {
    min-height: 0;
  }
  .songxinhistory-page .c-split-grid-wide > .c-card {
    min-height: auto;
  }
  .songxinhistory-list {
    max-height: none;
  }
}
.songxin-loading-main {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.songxin-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #68a8ff;
  animation: spin 0.9s linear infinite;
}
.songxin-loading-sub {
  color: #9db7dd;
  font-size: 13px;
}
@media (max-width: 1280px) {
  .c-grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .songxin-grid {
    grid-template-columns: 1fr;
  }
  .songxin-editor {
    height: 280px;
    min-height: 280px;
  }
  .songxin-editor-card,
  .songxin-original-card {
    min-height: auto;
  }
}

.system-settings .settings-card {
  box-shadow: var(--shadowSoft);
}
.system-settings .settings-card .c-card-title {
  margin-bottom: 6px;
}
.system-settings .settings-desc {
  margin: 0 0 16px;
}
.system-settings .match-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.system-settings .match-head .c-card-title,
.system-settings .match-head .settings-desc {
  margin: 0;
}
.system-settings .match-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.system-settings .match-row .form-field {
  flex: 0 0 auto;
  min-width: 0;
}
.system-settings .match-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.system-settings .match-field input {
  width: 140px;
}
.system-settings .match-row .form-actions {
  margin-top: 0;
}
.system-settings .inline-status.success {
  color: var(--success);
}
.system-settings .ai-fields {
  display: none;
}
.system-settings .ai-fields.is-active {
  display: contents;
}
.system-settings .task-list,
.system-settings .config-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.system-settings .task-item,
.system-settings .config-item {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--card-soft);
}
.system-settings .task-head,
.system-settings .config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.system-settings .task-title,
.system-settings .config-title {
  font-weight: 700;
  font-size: 13px;
  color: #516079;
}
.system-settings .task-log-modal .c-modal {
  width: 80%;
  max-width: 980px;
}
.system-settings .task-log-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.system-settings .task-log-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 1 / -1;
}
.system-settings .task-log-output {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6ebf4;
  background: #f8fafc;
  font-size: 12px;
  color: #2c3d55;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
@media (max-width: 720px) {
  .c-upload-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .system-settings .match-row {
    flex-direction: column;
    align-items: stretch;
  }
  .system-settings .match-field input {
    width: 100%;
  }
  .system-settings .match-row .form-actions {
    justify-content: flex-start;
  }
  .system-settings .task-log-filters {
    grid-template-columns: 1fr;
  }
  .system-settings .task-log-actions {
    justify-content: flex-start;
  }
}

/* Migrated page styles */

/* Not Found page */
body.notfound-page { margin: 0; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f6f7fb; color: #1f2937; }.notfound-page .wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }.notfound-page .card { max-width: 520px; background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }.notfound-page h1 { margin: 0 0 12px; font-size: 24px; }.notfound-page p { margin: 0; line-height: 1.6; color: #4b5563; }


/* attendance page */
.c-panel-title-actions {
            width: 100%;
        }
        .c-panel-title-spacer {
            flex: 1;
        }


/* bulk_email page */
.bulk-email-page .page {
            padding: 16px 18px 20px;
        }

        .bulk-email-page .bulk-email-shell {
            width: 100%;
            max-width: none;
            padding: 0;
            overflow: hidden;
            min-height: calc(100vh - 46px);
        }

        .bulk-email-page .modal {
            height: 100%;
            min-height: calc(100vh - 46px);
            border-radius: 0;
        }

        .bulk-email-page .modal-body {
            flex: 1 1 auto;
            grid-template-columns: minmax(0, 3fr) auto minmax(0, 7fr);
            align-items: stretch;
        }

        .bulk-email-page .recipients {
            order: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .bulk-email-page .modal-divider {
            order: 2;
        }

        .bulk-email-page .mail-editor {
            order: 3;
            align-content: start;
        }

        .bulk-email-page .mail-submit-row {
            display: flex;
            justify-content: flex-end;
            align-items: flex-end;
        }

        .bulk-email-page .bulk-mail-type-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .bulk-email-page .bulk-mail-type-head .form-label {
            margin-bottom: 0;
        }

        .bulk-email-page .bulk-mail-footer {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 16px;
            align-items: end;
            margin-top: 8px;
        }

        .bulk-email-page .bulk-mail-footer .form-item {
            margin: 0;
        }

        .bulk-email-page .bulk-mail-footer .mail-submit-row {
            margin: 0;
            align-self: end;
        }

        .bulk-email-page #bulk-mail-send:disabled {
            cursor: not-allowed;
            opacity: 0.72;
            background: #8fb2f7;
            border-color: #8fb2f7;
            box-shadow: none;
            transform: none;
        }

        .bulk-email-page #bulk-mail-send:disabled:hover,
        .bulk-email-page #bulk-mail-send:disabled:active {
            transform: none;
            box-shadow: none;
        }

        .bulk-email-page .mail-body-wrap {
            position: relative;
        }

        .bulk-email-page .mail-body-mask {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background: rgba(22, 32, 55, 0.52);
            border: 1px solid #d8dfec;
            border-radius: 10px;
            color: #ffffff;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 0.2px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.15s ease;
            z-index: 2;
        }

        .bulk-email-page .mail-body-mask.show {
            opacity: 1;
            pointer-events: auto;
        }

        .bulk-email-page .mail-body-mask::before {
            content: "";
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: 3px solid rgba(255, 255, 255, 0.4);
            border-top-color: #ffffff;
            animation: bulk-email-spin 0.8s linear infinite;
        }

        .bulk-email-page #bulk-mail-body.is-processing {
            filter: blur(0.5px);
        }

        @keyframes bulk-email-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .bulk-email-page #bulk-mail-body {
            min-height: 420px;
        }

        .bulk-email-page .recipients-list {
            max-height: none;
            flex: 1 1 auto;
            min-height: 0;
        }

        .bulk-email-page .recipients-filter {
            margin-bottom: 12px;
        }

        .bulk-email-page .recipients-header-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            min-width: 0;
        }

        .bulk-email-page .recipients-header-actions .c-btn {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .bulk-email-page .recipients-header-actions .recipients-meta {
            min-width: 0;
            white-space: nowrap;
        }

        .bulk-email-page .group-header-main {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1 1 auto;
        }

        .bulk-email-page .group-title-wrap {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1 1 auto;
        }

        .bulk-email-page .group-company-check {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }

        .bulk-email-page .group-company-check input {
            margin: 0;
        }

        .bulk-email-page .group-company-email {
            color: #63708a;
            font-size: 14px;
            line-height: 1.4;
            word-break: break-all;
        }

        .bulk-email-page .bulk-attachment-hint {
            color: #5f6f8f;
            font-size: 13px;
            line-height: 1.5;
        }

        .bulk-email-page .bulk-mail-footer-main {
            display: grid;
            gap: 14px;
        }

        .bulk-email-page .bulk-cc-input {
            width: 100%;
        }

        .bulk-email-page .bulk-upload-bar {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .bulk-email-page .bulk-attachment-input {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .bulk-email-page .bulk-attachment-list {
            display: grid;
            gap: 10px;
        }

        .bulk-email-page .bulk-attachment-empty {
            border: 1px dashed #d8dfec;
            border-radius: 14px;
            padding: 12px 14px;
            color: #7d8aa5;
            font-size: 14px;
            background: #fbfcfe;
        }

        .bulk-email-page .bulk-attachment-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border: 1px solid #d8dfec;
            border-radius: 14px;
            background: #f8faff;
        }

        .bulk-email-page .bulk-attachment-main {
            min-width: 0;
            flex: 1 1 auto;
        }

        .bulk-email-page .bulk-attachment-name {
            color: #24324a;
            font-size: 14px;
            line-height: 1.5;
            word-break: break-all;
        }

        .bulk-email-page .bulk-attachment-actions {
            display: inline-flex;
            align-items: center;
            gap: 14px;
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .bulk-email-page .bulk-attachment-origin {
            color: #5f6f8f;
            font-size: 13px;
            line-height: 1.4;
        }

        .bulk-email-page .bulk-attachment-link,
        .bulk-email-page .bulk-attachment-remove {
            font-size: 13px;
            line-height: 1.4;
            text-decoration: none;
        }

        .bulk-email-page .bulk-attachment-link {
            color: #2c6bed;
        }

        .bulk-email-page .bulk-attachment-remove {
            border: 0;
            background: transparent;
            color: #e14b54;
            padding: 0;
            cursor: pointer;
        }

        .bulk-email-page #bulk-mail-send {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            min-width: 118px;
            min-height: 40px;
            padding: 0 18px;
            border-radius: 14px;
            font-weight: 700;
            box-shadow: 0 10px 22px rgba(28, 123, 255, 0.24);
        }

        .bulk-email-page .bulk-send-icon {
            width: 12px;
            height: 12px;
            display: block;
            flex: 0 0 auto;
        }

        @media (max-width: 1200px) {
            .bulk-email-page .modal-body {
                grid-template-columns: minmax(0, 4fr) auto minmax(0, 6fr);
            }
        }

        @media (max-width: 920px) {
            .bulk-email-page .bulk-email-shell {
                min-height: auto;
            }

            .bulk-email-page .modal {
                min-height: auto;
            }

            .bulk-email-page .bulk-mail-footer {
                grid-template-columns: 1fr;
            }

            .bulk-email-page .bulk-attachment-item {
                align-items: flex-start;
                flex-direction: column;
            }

            .bulk-email-page .bulk-attachment-actions {
                width: 100%;
                justify-content: flex-end;
            }
        }


/* customer page */
.customer-page .c-table input[type="checkbox"] {
            width: 16px;
            height: 16px;
            padding: 0;
            margin: 0;
            border-radius: 4px;
            vertical-align: middle;
            accent-color: var(--primary);
        }

        .customer-page .c-table input[type="checkbox"]:focus {
            box-shadow: none;
        }

.customer-page .customer-select-all-head {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 56px;
        }

.customer-page .customer-select-current-page-hint {
            display: block;
            color: var(--muted);
            font-size: 11px;
            font-weight: 500;
            line-height: 1.2;
            white-space: nowrap;
        }

.customer-card-upload {
            margin-bottom: 12px;
        }

        .customer-card-upload-head .hint {
            margin: 4px 0 0;
        }

        .customer-card-upload-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 8px 0 10px;
        }

        .customer-card-preview {
            border: 1px dashed var(--line, #d9deea);
            border-radius: 10px;
            min-height: 150px;
            background: var(--card-soft, #f6f8ff);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding: 10px;
        }

        .customer-card-preview img {
            display: block;
            max-width: 100%;
            max-height: 260px;
            object-fit: contain;
            border-radius: 8px;
        }

        .customer-card-preview-empty {
            color: var(--muted, #7a8094);
            font-size: 13px;
        }


/* Home page */
body.home-page {
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
                   "Hiragino Sans GB", "Microsoft YaHei", Arial, "Noto Sans";
      background: transparent; /* for iframe embedding */
      color:var(--text);
    }.home-page .container {
      padding:16px 20px;
      max-width: 1440px;
      width:100%;
      margin:0 auto;
    }
    /* Cards */
    .home-page .stats {
      display:grid;
      grid-template-columns: repeat(4, 1fr);
      gap:14px;
      margin-bottom:14px;
    }.home-page .stat {
      padding:16px 16px 14px;
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      gap:10px;
    }.home-page .stat .label {
      font-size:13px;
      color:var(--muted);
      font-weight:800;
      margin-bottom:8px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }.home-page .stat .value {
      font-size:30px;
      font-weight:900;
      letter-spacing:.2px;
      line-height:1;
    }.home-page .stat .delta {
      font-size:13px;
      font-weight:900;
      display:flex;
      align-items:center;
      gap:6px;
      margin-top:10px;
    }.home-page .up { color:var(--green); }.home-page .down { color:var(--red); }.home-page .pill {
      padding:2px 8px;
      border-radius:999px;
      background:#f7f9fd;
      color:#3b4a60;
      font-size:12px;
      font-weight:900;
      border:1px solid var(--border);
    }
    /* Grid layout */
.home-page .grid,
.home-page .grid2 {
      display:grid;
      grid-template-columns: 2fr 1fr;
      gap:14px;
      margin-top:14px;
    }.home-page .c-card-header {
      padding:14px 16px;
      border-bottom:1px solid var(--border);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      min-width:0;
    }.home-page .c-card-header .h,
    .home-page .row .left,
    .home-page .pitem .meta,
    .home-page .a .who {
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }.home-page .c-card-header .dot {
      width:10px;height:10px;border-radius:999px;
      background:var(--blue);
      box-shadow: 0 0 0 6px rgba(47,111,236,.14);
    }.home-page .c-card-header h2 {
      margin:0;
      font-size:15px;
      font-weight:900;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }.home-page .c-card-header .tools,
    .home-page .lg {
      display:flex;
      align-items:center;
      gap:8px;
    }.home-page .tool {
      width:34px;height:34px;border-radius:12px;
      border:1px solid var(--border);
      background: rgba(247,249,253,.95);
      cursor:pointer;
      display:grid;
      place-items:center;
      color:#405169;
      transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .12s ease;
    }.home-page .tool:hover {
      background: rgba(59,130,246,.08);
      border-color: rgba(59,130,246,.18);
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(31,53,90,.06);
    }.home-page /* Chart placeholder */
    .chart {
      padding:14px 16px 16px;
    }.home-page .legend {
      display:flex;
      gap:14px;
      align-items:center;
      padding:8px 2px 10px;
      color:var(--muted);
      font-size:12px;
      font-weight:800;
    }.home-page .lg i { width:10px;height:10px;border-radius:999px; display:inline-block; }.home-page .lg .b { background:var(--blue); }.home-page .lg .p { background:var(--purple); }.home-page .chart svg {
      width:100%;
      height:auto;
      display:block;
      border-radius:12px;
      background: linear-gradient(180deg, rgba(47,111,236,.08), rgba(124,58,237,.06));
      border:1px solid var(--border);
    }.home-page /* Tasks / list */
    .list {
      padding:12px 16px 16px;
      display:flex;
      flex-direction:column;
      gap:10px;
    }.home-page .row {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:10px 10px;
      border-radius:12px;
      border:1px solid var(--border);
      background: rgba(255,255,255,.92);
    }.home-page .check {
      width:18px;height:18px;
      border-radius:6px;
      border:2px solid rgba(28,123,255,.22);
      background: rgba(28,123,255,.10);
    }.home-page .row .name,
    .home-page .pitem .meta b {
      font-weight:900;
      font-size:13px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }.home-page .name-wrap {
      display:flex;
      flex-direction:column;
      min-width:0;
    }.home-page .name-wrap .sub {
      margin-top:2px;
      color:var(--muted);
      font-weight:800;
      font-size:12px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      line-height:1.1;
    }.home-page .select {
      border:1px solid var(--border);
      background: rgba(247,249,253,.95);
      border-radius:10px;
      padding:8px 10px;
      font-weight:900;
      font-size:12px;
      color:#3b4a60;
    }
    /* Bottom cards */
    .home-page .progress {
      padding:10px 16px 16px;
      display:flex;
      flex-direction:column;
      gap:14px;
    }.home-page .pitem {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }.home-page .ico {
      width:18px;height:18px; flex:0 0 auto;
      display:inline-block;
      border-radius:6px;
      position:relative;
    }.home-page .pitem small {
      color:var(--muted);
      font-weight:900;
      white-space:nowrap;
    }.home-page .bar {
      flex:1;
      height:12px;
      border-radius:999px;
      background: rgba(28,123,255,.10);
      border:1px solid var(--border);
      overflow:hidden;
      min-width:120px;
    }.home-page .bar > span {
      display:block;
      height:100%;
      width:60%;
      background:var(--blue);
      border-radius:999px;
    }.home-page .activity {
      padding:10px 16px 16px;
      display:flex;
      flex-direction:column;
      gap:12px;
    }.home-page .a {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:10px 10px;
      border-radius:12px;
      border:1px solid var(--border);
      background:#fff;
    }.home-page .face {
      width:28px;height:28px;border-radius:999px;
      background:#e5e7eb;
      border:2px solid #fff;
      box-shadow: 0 6px 12px rgba(0,0,0,.08);
    }.home-page .a .txt {
      min-width:0;
    }.home-page .a .txt b {
      display:block;
      font-size:13px;
      font-weight:900;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }.home-page .a .txt small {
      display:block;
      color:var(--muted);
      font-weight:800;
      font-size:12px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width:260px;
    }.home-page .a .time {
      color:var(--muted);
      font-weight:900;
      font-size:12px;
      white-space:nowrap;
    }
    /* Responsive */
    @media (max-width: 1100px) {
      .home-page .stats{ grid-template-columns: repeat(2, 1fr); }
      .home-page .grid,
      .home-page .grid2{ grid-template-columns: 1fr; }
    }@media (max-width: 820px) {.home-page .container { padding:16px; }
    }


/* login_audit page */
.login-audit-table .ua-cell {
            max-width: 360px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (max-width: 900px) {
            .login-audit-table .ua-cell {
                max-width: 180px;
            }
        }


/* My mail page */
.mail-page {
      --mail-border: #e1e8f3;
      --mail-muted: #6f7b8f;
      --mail-bg: #f5f8ff;
      --mail-accent: #1d4ed8;
    }body.mail-page-body {
      margin: 0;
      background: var(--mail-bg);
      color: #1f2937;
      font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    }.mail-page {
      display: grid;
      grid-template-columns: 3fr 7fr;
      gap: 14px;
      height: 100vh;
      padding: 14px;
      box-sizing: border-box;
    }.mail-page .mail-panel {
      background: #fff;
      border: 1px solid var(--mail-border);
      border-radius: 12px;
      box-shadow: 0 8px 22px rgba(26, 47, 94, 0.06);
      min-height: 0;
    }.mail-page .mail-list {
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }.mail-page .mail-list-head {
      padding: 12px 14px;
      border-bottom: 1px solid var(--mail-border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }.mail-page .mail-list-head h2 {
      margin: 0;
      font-size: 18px;
    }.mail-page .mail-list-tools {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }.mail-page .list-refresh-icon {
      width: 40px;
      min-width: 40px;
      height: 40px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
    }.mail-page .mailbox {
      color: var(--mail-muted);
      font-size: 12px;
      text-align: right;
      word-break: break-all;
    }.mail-page .mail-items {
      overflow: auto;
      padding: 0;
      margin: 0;
      list-style: none;
      flex: 1;
    }.mail-page .mail-filters {
      padding: 10px 14px 12px;
      border-bottom: 1px solid #eef3fb;
    }.mail-page /* 复用系统筛选面板视觉风格，并保持“我的邮件”筛选区单行显示。 */
    .mail-filters.c-filter-panel {
      background: radial-gradient(circle at top, rgba(28, 123, 255, 0.08), transparent 70%);
    }.mail-page .mail-filters .filter-grid {
      display: flex;
      align-items: flex-end;
      gap: 8px;
      flex-wrap: nowrap;
    }.mail-page .mail-filters .filter-group {
      min-width: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }.mail-page .mail-filters .filter-group.filter-date {
      flex: 0 0 146px;
    }.mail-page .mail-filters .filter-label {
      font-size: 12px;
      color: #5b6b86;
      line-height: 1;
    }.mail-page .mail-filters .c-input {
      height: 36px;
    }.mail-page .mail-filters .filter-actions {
      flex: 0 0 auto;
      display: flex;
      align-items: flex-end;
      gap: 8px;
    }.mail-page .mail-item {
      border-bottom: 1px solid #eef3fb;
      padding: 12px 14px;
      cursor: pointer;
      display: grid;
      gap: 4px;
    }.mail-page .mail-item.is-skeleton {
      cursor: default;
      pointer-events: none;
    }.mail-page .mail-skeleton-line {
      height: 12px;
      border-radius: 999px;
      background:
        linear-gradient(90deg, rgba(241, 245, 249, 0.95) 25%, rgba(226, 232, 240, 0.95) 37%, rgba(241, 245, 249, 0.95) 63%);
      background-size: 400% 100%;
      animation: mailShimmer 1.2s ease-in-out infinite;
    }.mail-page .mail-skeleton-line.subject {
      width: 58%;
      height: 14px;
    }.mail-page .mail-skeleton-line.date {
      width: 88px;
      height: 12px;
      margin-left: auto;
    }.mail-page .mail-skeleton-line.from {
      width: 72%;
    }.mail-page .mail-item:hover {
      background: #f3f7ff;
    }.mail-page .mail-item.active {
      background: #e8f0ff;
      border-left: 3px solid var(--mail-accent);
      padding-left: 11px;
    }.mail-page .mail-item-top {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      align-items: center;
      min-width: 0;
    }.mail-page .mail-item-subject {
      display: block;
      flex: 1 1 auto;
      min-width: 0;
      font-size: 14px;
      font-weight: 700;
      color: #101828;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }.mail-page .mail-item-date {
      flex: 0 0 auto;
      font-size: 12px;
      color: var(--mail-muted);
      white-space: nowrap;
    }.mail-page .mail-item-from {
      font-size: 12px;
      color: #475467;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }.mail-page .mail-unread-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ef4444;
      display: inline-block;
      margin-right: 6px;
    }.mail-page .mail-right {
      display: grid;
      grid-template-rows: 1fr 0;
      gap: 14px;
      min-height: 0;
    }.mail-page .mail-right.reply-expanded {
      grid-template-rows: 1fr 460px;
    }.mail-page .mail-right.reply-collapsed .mail-reply {
      display: none;
    }.mail-page .mail-view {
      padding: 14px;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }.mail-page .mail-view-head {
      border-bottom: 1px solid var(--mail-border);
      padding-bottom: 10px;
      margin-bottom: 10px;
    }.mail-page .mail-view-meta {
      color: var(--mail-muted);
      font-size: 13px;
    }.mail-page .mail-view-body {
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
      overflow: auto;
      line-height: 1.6;
      font-size: 14px;
      flex: 1;
    }.mail-page .mail-body-link {
      color: #2563eb;
      font-weight: 700;
      text-decoration: underline;
      text-underline-offset: 2px;
    }.mail-page .mail-view-body.is-loading {
      color: var(--mail-muted);
      background:
        linear-gradient(90deg, rgba(241, 245, 249, 0.9) 25%, rgba(226, 232, 240, 0.95) 37%, rgba(241, 245, 249, 0.9) 63%);
      background-size: 400% 100%;
      animation: mailShimmer 1.2s ease-in-out infinite;
      border-radius: 8px;
      padding: 12px;
      min-height: 240px;
    }@keyframes mailShimmer {
      0% {
        background-position: 100% 50%;
      }
      100% {
        background-position: 0 50%;
      }
    }.mail-page .mail-view-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding-top: 10px;
      margin-top: 10px;
      border-top: 1px solid var(--mail-border);
    }.mail-page .mail-reply {
      padding: 14px;
      display: grid;
      grid-template-rows: auto 44px 44px 1fr auto;
      gap: 10px;
      min-height: 0;
    }.mail-page .mail-reply h3 {
      margin: 0;
      font-size: 16px;
    }.mail-page .mail-input,
.mail-page .mail-textarea {
      width: 100%;
      border: 1px solid #c9d6ea;
      border-radius: 8px;
      padding: 8px 10px;
      box-sizing: border-box;
      font: inherit;
      background: #fff;
    }.mail-page /* 收件人/主题固定单行高度，避免被父级拉伸成大块区域。 */
    .mail-input {
      height: 44px;
      line-height: 26px;
    }.mail-page .mail-textarea {
      resize: none;
      min-height: 0;
      height: 100%;
      min-height: 220px;
      line-height: 1.5;
    }.mail-page .mail-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      align-items: center;
    }.mail-page .mail-status {
      margin-right: auto;
      color: var(--mail-muted);
      font-size: 12px;
    }.mail-page .mail-empty {
      color: var(--mail-muted);
      font-size: 14px;
      padding: 16px;
    }@media (max-width: 980px) {.mail-page {
        grid-template-columns: 1fr;
        grid-template-rows: 45vh 1fr;
      }.mail-page .mail-right.reply-expanded {
        grid-template-rows: 1fr 340px;
      }.mail-page /* 小屏允许筛选项换行，避免输入框被压缩不可用。 */
      .mail-filters .filter-grid {
        flex-wrap: wrap;
      }.mail-page .mail-filters .filter-group,
.mail-page .mail-filters .filter-group.filter-date {
        flex: 1 1 100%;
      }.mail-page .mail-filters .filter-actions {
        width: 100%;
        justify-content: flex-end;
      }
    }


/* Notification page */
body.notification-page {
  margin: 0;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: transparent;
  color: var(--text);
}

.notification-page .page {
  padding: 16px 18px 22px;
}

.notification-page .header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.notification-page .header > div:first-child {
  min-width: 0;
}

.notification-page .action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.notification-page .action-row .c-btn {
  white-space: nowrap;
}

.notification-page .grid {
  display: grid;
  gap: 12px;
}

.notification-page .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notification-page .stats .c-card {
  padding: 16px 18px;
  min-width: 0;
}

.notification-page .stat-value {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 4px;
}

.notification-page .stat-label {
  color: var(--muted);
  font-size: 12px;
}

.notification-page .filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 12px;
}

.notification-page .filters .field {
  min-width: 0;
}

.notification-page .table {
  min-width: 860px;
}

.notification-page .table th,
.notification-page .table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.notification-page .table th:first-child,
.notification-page .table td:first-child {
  white-space: normal;
}

.notification-page .table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.notification-page .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.notification-page .badge.info {
  color: var(--primary);
  border-color: rgba(28, 123, 255, 0.3);
  background: rgba(28, 123, 255, 0.08);
}

.notification-page .badge.warn {
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.15);
}

.notification-page .badge.success {
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.12);
}

.notification-page .badge.danger {
  color: var(--danger);
  border-color: rgba(255, 91, 91, 0.35);
  background: rgba(255, 91, 91, 0.12);
}

.notification-page .row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.notification-page .row-actions .c-btn {
  white-space: nowrap;
}

.notification-page .empty {
  text-align: center;
  color: var(--muted);
  padding: 12px 16px 14px;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .notification-page .stats,
  .notification-page .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .notification-page .page {
    padding: 12px;
  }

  .notification-page .header {
    flex-direction: column;
    align-items: stretch;
  }

  .notification-page .action-row {
    justify-content: flex-start;
  }

  .notification-page .filters {
    grid-template-columns: 1fr;
  }

  .notification-page .table th:nth-child(3),
  .notification-page .table td:nth-child(3),
  .notification-page .table th:nth-child(5),
  .notification-page .table td:nth-child(5) {
    display: none;
  }
}


/* Pay request page */
body.pay-request-page {
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
                   "Hiragino Sans GB", "Microsoft YaHei", Arial, "Noto Sans";
      background: var(--bg);
      color:var(--text);
    }.pay-request-page .pay-request-table .c-table th {
      font-weight:700;
    }@media (max-width: 900px) {.pay-request-page .pay-request-table table {
        min-width:900px;
      }.pay-request-page .pay-total-field {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        margin-left: 0;
      }.pay-request-page .pay-upload-field,
.pay-request-page .pay-request-date-field {
        grid-column: 1 / -1;
      }.pay-request-page .pay-bottom-row {
        grid-template-columns: 1fr;
      }
    }.pay-request-page .pay-detail-table-wrap {
      padding: 8px 12px 12px;
      overflow-x: auto;
      background: #fff;
    }.pay-request-page .pay-detail-table {
      min-width: 1100px;
      table-layout: auto;
    }.pay-request-page .pay-detail-table th,
.pay-request-page .pay-detail-table td {
      padding: 12px 10px;
      font-size: 13px;
      white-space: normal;
      word-break: break-word;
    }.pay-request-page .pay-detail-table th:last-child,
.pay-request-page .pay-detail-table td:last-child {
      width: 90px;
    }.pay-request-page .pay-detail-table td .c-input {
      min-width: 0;
    }.pay-request-page .pay-customer-info {
      padding: 12px 14px;
      border: 1px dashed var(--border);
      border-radius: 12px;
      background: #f8fafc;
      display: grid;
      gap: 6px;
      color: #334155;
      font-size: 13px;
      font-weight: 700;
    }.pay-request-page .pay-customer-info span {
      color: #64748b;
      font-weight: 700;
      margin-right: 6px;
    }.pay-request-page .pay-total-field {
      width: min(420px, 100%);
      justify-self: end;
    }.pay-request-page .pay-upload-field {
      grid-column: 1 / -1;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
    }.pay-request-page .pay-upload-field input[type="file"] {
      font-size: 13px;
      font-weight: 600;
      color: #334155;
    }.pay-request-page .pay-account-card {
      border: 1px dashed var(--border);
      border-radius: 12px;
      background: #f8fafc;
      padding: 12px 14px;
      display: grid;
      gap: 10px;
      color: #0f172a;
    }.pay-request-page .pay-account-title {
      text-align: center;
      font-weight: 900;
      letter-spacing: 2px;
      font-size: 16px;
    }.pay-request-page .pay-account-subtitle {
      text-align: center;
      font-weight: 800;
      color: #334155;
    }.pay-request-page .pay-account-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 10px 24px;
      font-weight: 800;
    }.pay-request-page .pay-account-label {
      color: #334155;
      letter-spacing: 1px;
    }.pay-request-page .pay-account-value {
      color: #0f172a;
      text-align: left;
    }.pay-request-page .pay-bottom-row {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      align-items: start;
    }.pay-request-page .pay-side-stack {
      display: grid;
      gap: 12px;
    }.pay-request-page .pay-total-display {
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: #f8fafc;
      color: #0f172a;
      font-weight: 700;
    }.pay-request-page .pay-column-group {
      display: grid;
      gap: 12px;
    }


/* Permission page */
body.permission-page-body {
            background: transparent;
        }.permission-page .permission-grid {
            display: grid;
            grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.6fr);
            gap: 16px;
            align-items: start;
        }@media (max-width: 1100px) {.permission-page .permission-grid {
                grid-template-columns: 1fr;
            }
        }.permission-page .permission-subtitle {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 13px;
        }


/* personnel page */
.permission-editor {
            display: grid;
            grid-template-columns: minmax(200px, 0.9fr) minmax(320px, 1.6fr);
            gap: 16px;
            align-items: start;
        }

        @media (max-width: 900px) {
            .permission-editor {
                grid-template-columns: 1fr;
            }
        }

        .permission-section {
            border: 1px solid #e4e9f4;
            border-radius: 18px;
            padding: 16px;
            background: #f6f8ff;
        }

        .permission-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }

        .permission-section-title {
            margin: 0;
            font-size: 16px;
            font-weight: 800;
        }

        .permission-section-note {
            color: var(--muted);
            font-size: 12px;
        }

        .permission-role-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }

        .permission-role-option {
            position: relative;
            border-radius: 16px;
            border: 1px solid #dfe6f5;
            background: #fff;
            padding: 22px 16px 16px;
            cursor: pointer;
        }

        .permission-role-option input {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .permission-role-meta strong {
            display: block;
            font-size: 15px;
            font-weight: 700;
        }

        .permission-role-meta span {
            display: block;
            color: var(--muted);
            font-size: 12px;
            margin-top: 4px;
        }

        .permission-section .c-dialog-count {
            display: inline-flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 8px;
            white-space: nowrap;
            line-height: 1;
            flex-wrap: nowrap;
        }

        .permission-section .c-dialog-count span,
        .permission-section .c-dialog-count strong {
            display: inline-flex;
        }

        .permission-count-inline {
            display: inline-flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 8px;
        }

        .permission-section .c-dialog-count input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .permission-section .c-card-compact {
            background: #fff;
        }

        .permission-section .role-menu-checklist {
            gap: 10px;
            max-height: 420px;
            overflow-y: auto;
            padding-right: 6px;
        }

        .permission-section .role-menu-check {
            display: grid;
            grid-template-columns: 18px 1fr;
            align-items: center;
            padding: 10px 12px;
            border-radius: 12px;
            min-height: 44px;
        }

        .permission-section .role-menu-text {
            display: flex;
            align-items: baseline;
            gap: 10px;
            min-width: 0;
            flex-wrap: wrap;
        }

        .permission-section .role-menu-text strong {
            font-size: 14px;
            font-weight: 700;
        }

        .permission-section .role-menu-text span {
            font-size: 12px;
            color: var(--muted);
        }


/* system_settings page */
.sendmsg-section-title {
      grid-column: 1 / -1;
      margin: 4px 0 0;
      font-size: 14px;
      font-weight: 700;
      color: #334155;
    }

    .sendmsg-section-hint {
      grid-column: 1 / -1;
      margin: -6px 0 4px;
      font-size: 12px;
      line-height: 1.5;
      color: #94a3b8;
    }

    .sendmsg-protocol-group {
      display: flex;
      align-items: center;
      gap: 18px;
      min-height: 52px;
      border: 1px solid #cfd8e3;
      border-radius: 12px;
      padding: 0 14px;
      background: #fff;
    }

    .sendmsg-protocol-option {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #4b5563;
      font-weight: 600;
      cursor: pointer;
      margin: 0;
      white-space: nowrap;
    }

    .sendmsg-protocol-option input {
      margin: 0;
    }

    .sendmsg-toggle-field {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      min-height: 44px;
      width: 100%;
    }

    .sendmsg-toggle-compact {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      font-weight: 600;
      color: #4b5563;
      cursor: pointer;
      white-space: nowrap;
      line-height: 1;
      text-align: left;
      margin: 0;
    }

    .sendmsg-toggle-compact input {
      margin: 0;
    }

    .sendmsg-auth-hidden {
      display: none;
    }

    .sendmsg-receiver-hidden {
      display: none !important;
    }

    .line-notify-conditions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      padding: 14px 16px;
      border: 1px solid #dbe4f0;
      border-radius: 14px;
      background: #f8fafd;
    }

    .line-notify-condition-item {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
    }

    .line-notify-condition-item label {
      margin: 0;
    }

    .line-notify-radio-group {
      display: flex;
      align-items: center;
      min-height: 52px;
      border: 1px solid #cfd8e3;
      border-radius: 12px;
      padding: 0 14px;
      background: #fff;
    }

    .line-notify-radio-option {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #4b5563;
      font-weight: 500;
      cursor: pointer;
      margin: 0;
      white-space: nowrap;
    }

    .line-notify-radio-option input {
      margin: 0;
    }

    @media (max-width: 900px) {
      .line-notify-conditions {
        grid-template-columns: 1fr;
      }
    }

/* Migrated inline utility styles */
.notfound-page .notfound-action {
  margin-top: 16px;
}

.notfound-page .notfound-link {
  color: #2563eb;
  text-decoration: none;
}

.home-page .dot-purple {
  background: var(--purple);
}

.home-page .dot-green {
  background: var(--green);
}

.home-page .dot-orange {
  background: var(--orange);
}

.notification-page .notification-table-card {
  margin-top: 12px;
  overflow-x: auto;
}

.bulk-email-page .bulk-body-hint {
  margin: 0 0 8px;
  color: #63708a;
  font-size: 13px;
  line-height: 1.5;
}

.pay-request-page .pay-detail-section {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.pay-request-page .pay-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pay-request-page .pay-detail-table-wrap {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.match-page .match-empty-inline {
  color: #9aa4b5;
}
