/* =========================================================
   AUTHENTIC APPLE HIG DESIGN (macOS / iOS Settings Style)
   ========================================================= */

/* Apple Table Enhancements */
.apple-profiles-table-card {
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04) !important;
  background: #FFFFFF !important;
}

.apple-profiles-table-card .arco-table-container {
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}

.apple-profiles-table-card .arco-table-th {
  background-color: #F5F5F7 !important;
  color: #8E8E93 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  padding: 14px 16px !important;
}

.apple-profiles-table-card .arco-table-td {
  border-bottom: 1px solid rgba(0,0,0,0.04) !important;
  padding: 16px !important;
  font-size: 14px;
}

.apple-profiles-table-card .arco-table-tr:hover .arco-table-td {
  background-color: rgba(0, 113, 227, 0.04) !important;
}

.apple-profiles-table-card .arco-pagination {
  margin-top: 16px !important;
  justify-content: flex-end;
}
.apple-profiles-filter-bar .apple-input,
.apple-profiles-filter-bar .apple-select {
  background-color: rgba(118, 118, 128, 0.12); /* Apple light gray fill */
  border: none;
  border-radius: 10px; /* HIG standard corner radius for inputs */
  padding: 8px 12px;
  font-size: 15px;
  color: #1D1D1F;
  outline: none;
  transition: background-color 0.2s ease;
  height: 36px;
  box-sizing: border-box;
}

.apple-profiles-filter-bar .apple-input::placeholder {
  color: #8E8E93;
}

.apple-profiles-filter-bar .apple-input:hover,
.apple-profiles-filter-bar .apple-select:hover {
  background-color: rgba(118, 118, 128, 0.16);
}

.apple-profiles-filter-bar .apple-input:focus,
.apple-profiles-filter-bar .apple-select:focus {
  background-color: #FFFFFF;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.5); /* Apple focus ring */
}

/* Custom search icon background for input */
.apple-profiles-filter-bar .apple-input {
  padding-left: 36px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: 12px center;
}

/* Custom chevron for select */
.apple-profiles-filter-bar .apple-select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none; /* Removes native OS double arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Filter Bar Buttons */
.apple-btn {
  border-radius: 8px !important; /* Apple standard button radius */
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 0 16px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.apple-btn:active {
  transform: scale(0.96) !important; /* Apple touch interaction */
  opacity: 0.8;
}

/* Primary Button (Apple Blue) */
.apple-btn-primary {
  background-color: #0071E3 !important;
  color: #FFFFFF !important;
}
.apple-btn-primary:hover {
  background-color: #0077ED !important;
}

/* Success/Transfer Button (Apple Green) */
.apple-btn-success {
  background-color: #34C759 !important;
  color: #FFFFFF !important;
}
.apple-btn-success:hover {
  background-color: #30B753 !important;
}

/* Danger Button (Apple Red) */
.apple-btn-danger {
  background-color: #FF3B30 !important;
  color: #FFFFFF !important;
}
.apple-btn-danger:hover {
  background-color: #E3342B !important;
}

/* Outline/Secondary Button (Apple Light Gray) */
.apple-btn-outline {
  background-color: rgba(118, 118, 128, 0.12) !important;
  color: #0071E3 !important;
}
.apple-btn-outline:hover {
  background-color: rgba(118, 118, 128, 0.18) !important;
}

/* Drawer Base */
.apple-drawer .arco-drawer-content {
  background-color: #F2F2F7 !important;
}
.apple-drawer .arco-drawer-header {
  background-color: #F2F2F7 !important;
  border-bottom: none !important;
  padding: 24px 20px 8px !important;
}
.apple-drawer .arco-drawer-title {
  font-weight: 600 !important;
  color: #1D1D1F !important;
  font-size: 20px !important;
  letter-spacing: -0.5px;
}
.apple-drawer .arco-drawer-body {
  background-color: #F2F2F7 !important;
  padding: 0 20px 24px !important;
}
.apple-drawer .arco-drawer-footer {
  background-color: #F2F2F7 !important;
  border-top: none !important;
  padding: 16px 20px 24px !important;
}

/* Avatar and Tag */
.apple-drawer-header-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: #FFFFFF;
  border-radius: 20px;
  margin-bottom: 32px;
  box-shadow: var(--apple-shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.apple-drawer-name {
  font-size: 28px;
  font-weight: 700;
  color: #1D1D1F;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.apple-settings-form .arco-avatar {
  border: 4px solid #FFFFFF;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.apple-drawer-status-tag {
  border-radius: 12px !important;
  background: #E5E5EA !important;
  color: #1D1D1F !important;
  border: none !important;
  padding: 4px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Apple Grouped List (Authentic iOS Settings Form) */
.apple-settings-group-title {
  padding: 0 0 14px 10px;
  font-size: 19px;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.3px;
}

.apple-settings-group {
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--apple-dur) var(--apple-ease);
  animation: appleFadeUp .42s ease both;
}
.apple-settings-group:hover {
  box-shadow: var(--apple-shadow-sm);
}

.apple-settings-form .arco-form-item {
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.apple-mini-upload .arco-upload-list-item-picture,
.apple-mini-upload .arco-upload-picture-card {
  width: 64px !important;
  height: 64px !important;
  line-height: 64px !important;
  border-radius: 10px !important;
}

.apple-mini-upload .arco-upload-list-item {
  margin-bottom: 0 !important;
}

.apple-settings-group > .arco-form-item {
  background: transparent !important;
}

.apple-settings-form .arco-form-item {
  margin-bottom: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  min-height: 44px;
  position: relative;
  background-color: transparent !important;
  border-bottom: none !important;
}

/* Inner separator line */
.apple-settings-form .arco-form-item:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px; /* Indent matches text */
  right: 0;
  height: 1px;
  background-color: #E5E5EA;
}

/* Hide required red asterisk */
.apple-settings-form .arco-form-item-label-required-symbol {
  display: none !important;
}

.apple-settings-form .arco-col {
  width: auto !important;
  max-width: none !important;
  flex-basis: auto !important;
}

.apple-settings-form .arco-col-5,
.apple-settings-form .arco-form-label-item {
  flex: 0 0 140px !important; /* 固定宽度，确保左侧对齐并且右侧剩余空间一致 */
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  padding: 11px 0 11px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  border: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.apple-settings-form .arco-col.arco-col-5 {
  flex: 0 0 140px !important;
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
}

.apple-settings-form .arco-row {
  flex-wrap: nowrap !important;
}

.apple-settings-form .arco-col-19 {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
}

.apple-settings-form .arco-form-label-item label {
  color: #000000 !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

.apple-settings-form .arco-form-item-wrapper-col,
.apple-settings-form .arco-form-item-wrapper {
  flex: 1 1 auto !important;
  display: flex !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.apple-settings-form .arco-form-item-control-wrapper {
  flex: 1 1 auto !important;
  display: flex !important;
  padding: 11px 16px 11px 16px !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  text-align: right !important;
}

.apple-settings-form .arco-form-item-control {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  text-align: right !important;
}

/* Input and Select Overrides inside settings group */
.apple-settings-form .arco-input-wrapper,
.apple-settings-form .arco-input-inner-wrapper,
.apple-settings-form .arco-input-group-wrapper,
.apple-settings-form .arco-picker {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  flex: 0 0 100px !important;
}

/* Prevent Arco default blue border and shadow on focus */
.apple-settings-form *,
.apple-settings-form *::before,
.apple-settings-form *::after {
  outline: none !important;
  transition: none !important; /* Disable all transitions to prevent flashing */
}

/* Specifically target Arco's wrapper classes to prevent background flashing */
.apple-settings-form .arco-input-wrapper,
.apple-settings-form .arco-input-inner-wrapper,
.apple-settings-form .arco-input-group-wrapper,
.apple-settings-form .arco-picker,
.apple-settings-form .arco-input-wrapper.arco-input-focus,
.apple-settings-form .arco-picker-focused,
.apple-settings-form .arco-select-view-focus,
.apple-settings-form .arco-select-view:focus-within,
.apple-settings-form .arco-select:focus-within,
.apple-settings-form .arco-select:focus,
.apple-settings-form .arco-select-view:focus,
.apple-settings-form .arco-select.arco-select-focused,
.apple-settings-form .arco-input-wrapper:focus-within,
.apple-settings-form .arco-input-inner-wrapper:focus-within,
.apple-settings-form .arco-input-group-wrapper:focus-within,
.apple-settings-form .arco-picker:focus-within {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
}

.apple-settings-form .arco-select-view,
.apple-settings-form .arco-select-view-focus,
.apple-settings-form .arco-select-view:hover,
.apple-settings-form .arco-select-view:active,
.apple-settings-form .arco-select-view-active,
.apple-settings-form .arco-select-view-focus:hover,
.apple-settings-form .arco-select-view-focus:active {
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
}

.apple-settings-form .arco-input,
.apple-settings-form .arco-picker-input input {
  text-align: right !important;
  font-size: 14px !important;
  color: #3A3A3C !important;
  background: transparent !important;
  width: 100% !important;
  height: auto !important;
  outline: none !important;
  padding-right: 12px !important; /* 强制所有输入框统一右内边距，确保完美右对齐 */
}

.apple-settings-form .arco-input[readonly] {
  color: #8E8E93 !important;
  background: transparent !important;
  -webkit-text-fill-color: #8E8E93 !important;
  opacity: 1 !important;
}

.apple-settings-form .arco-input:focus,
.apple-settings-form .arco-input:active,
.apple-settings-form .arco-picker-input input:focus,
.apple-settings-form .arco-picker-input input:active {
  color: #1D1D1F !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  background-color: transparent !important;
}

.apple-settings-form .arco-textarea {
  text-align: right !important;
  font-size: 14px !important;
  color: #3A3A3C !important;
  background: transparent !important;
  width: 100% !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-right: 12px !important;
}

.apple-settings-form .arco-textarea:focus,
.apple-settings-form .arco-textarea:active {
  color: #1D1D1F !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  background-color: transparent !important;
}

.apple-settings-form .arco-input::placeholder,
.apple-settings-form .arco-picker-input input::placeholder,
.apple-settings-form .arco-textarea::placeholder,
.apple-settings-form .arco-select-view-input::-webkit-input-placeholder {
  color: #C7C7CC !important;
  text-align: right !important;
}

.apple-settings-form .arco-select-view-placeholder {
  color: #C7C7CC !important;
  text-align: right !important;
  padding-right: 12px !important;
  width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.apple-settings-form .arco-select-view-value,
.apple-settings-form .arco-select-view-value-mirror {
  padding-right: 12px !important;
  color: #3A3A3C !important;
  text-align: right !important;
  width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

/* Ensure Select components are right aligned and transparent */
.apple-settings-form .arco-select,
.apple-settings-form .arco-select *,
.apple-settings-form .arco-select-view,
.apple-settings-form .arco-select-view *,
.apple-settings-form .arco-select:hover,
.apple-settings-form .arco-select-view:hover,
.apple-settings-form .arco-select.arco-select-focused,
.apple-settings-form .arco-select.arco-select-open {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.apple-settings-form .arco-select {
  width: 100% !important;
}

.apple-settings-form .arco-select-view {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  justify-content: flex-end !important;
  display: flex !important;
  align-items: center !important;
}

/* Force override any pseudo-element borders from Arco */
.apple-settings-form .arco-select-view::before,
.apple-settings-form .arco-select-view::after,
.apple-settings-form .arco-select::before,
.apple-settings-form .arco-select::after,
.apple-settings-form .arco-input-inner-wrapper::before,
.apple-settings-form .arco-input-inner-wrapper::after {
  display: none !important;
  border: none !important;
  box-shadow: none !important;
}

.apple-settings-form .arco-select-view-inner {
  display: flex !important;
  justify-content: flex-end !important;
  width: 100% !important;
}

/* Specifically target the search input inside select to hide placeholder when typing */
.apple-settings-form .arco-select-view-search {
  position: absolute !important;
  right: 0 !important;
  text-align: right !important;
  width: 100% !important;
  z-index: 10 !important;
}

.apple-settings-form .arco-select-view-input {
  text-align: right !important;
  color: #1D1D1F !important; /* typing text color */
  padding-right: 12px !important;
  background: #fff !important;
}

/* Hide the pseudo-value/placeholder when actually searching */
.apple-settings-form .arco-select-view-focus .arco-select-view-value,
.apple-settings-form .arco-select-view-focus .arco-select-view-placeholder,
.apple-settings-form .arco-select-view-search:focus-within ~ .arco-select-view-value,
.apple-settings-form .arco-select-view-search:focus-within ~ .arco-select-view-placeholder,
.apple-settings-form .arco-select-view-focus-with-search .arco-select-view-value,
.apple-settings-form .arco-select-view-focus-with-search .arco-select-view-placeholder {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.apple-settings-form .arco-select-suffix {
  display: none !important;
}

.apple-settings-form .arco-picker-suffix {
  display: none !important;
}

.apple-settings-form .arco-form-item-control-children > div {
  justify-content: flex-end !important;
}

.apple-settings-form .arco-input[disabled] {
  color: #8E8E93 !important;
  background: transparent !important;
  -webkit-text-fill-color: #8E8E93 !important;
  opacity: 1 !important;
}

/* Buttons */
.apple-drawer .arco-btn {
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  height: 36px !important;
  padding: 0 20px !important;
  border: none !important;
  transition: background-color 0.2s ease;
}
.apple-drawer .arco-btn-primary {
  background: #0071E3 !important;
  color: #FFFFFF !important;
}
.apple-drawer .arco-btn-primary:hover {
  background: #0077ED !important;
}
.apple-drawer .arco-btn:not(.arco-btn-primary) {
  background: #E5E5EA !important;
  color: #1D1D1F !important;
}
.apple-drawer .arco-btn:not(.arco-btn-primary):hover {
  background: #D1D1D6 !important;
}
.apple-text-button {
  color: #0071E3 !important;
  font-size: 14px !important;
  background: transparent !important;
  height: auto !important;
  padding: 0 !important;
}
.apple-text-button:hover {
  color: #0077ED !important;
  background: transparent !important;
}

/* Custom Add Career Event Button */
.apple-add-career-btn {
  background-color: #0071E3 !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  height: 24px !important;
  padding: 0 10px !important;
  border: none !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

.apple-add-career-btn:hover {
  background-color: #0077ED !important;
}

.apple-add-career-btn:active {
  transform: scale(0.96) !important;
}

/* Prevent hover background changes on Arco wrappers */
.apple-settings-form .arco-input-wrapper:hover,
.apple-settings-form .arco-picker:hover {
  background-color: transparent !important;
}

/* Responsive adjustments for filter bar and actions */
.apple-profiles-filter-bar {
  flex-wrap: nowrap !important;
  overflow: visible !important; /* Change from hidden to visible to prevent focus ring clipping */
}

.apple-profiles-filters {
  flex-wrap: nowrap !important;
  overflow: visible !important; /* Change from hidden to visible to prevent focus ring clipping */
  flex-shrink: 1 !important;
}

.apple-profiles-filters .apple-input {
  flex-shrink: 1 !important;
  min-width: 100px !important;
}

.apple-profiles-filters .apple-select {
  flex-shrink: 0 !important;
}

.apple-profiles-actions {
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1100px) {
  .apple-profiles-actions {
    display: none !important;
  }
}

/* Apple Table Action Pill Buttons */
.apple-table-action-group {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.apple-table-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 4px 12px !important;
  border-radius: 100px !important; /* Pill shape */
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.apple-table-action-btn:active {
  transform: scale(0.96) !important;
}

/* 档案 - Primary (Blue) */
.apple-table-action-btn-primary {
  color: #0071E3 !important;
  background-color: rgba(0, 113, 227, 0.1) !important;
}
.apple-table-action-btn-primary:hover {
  background-color: rgba(0, 113, 227, 0.15) !important;
}

/* 调转 - Success (Green) */
.apple-table-action-btn-success {
  color: #34C759 !important;
  background-color: rgba(52, 199, 89, 0.1) !important;
}
.apple-table-action-btn-success:hover {
  background-color: rgba(52, 199, 89, 0.15) !important;
}

/* 离职 - Gray (Lighter Black) */
.apple-table-action-btn-black {
  color: #86868B !important;
  background-color: rgba(134, 134, 139, 0.1) !important;
}
.apple-table-action-btn-black:hover {
  background-color: rgba(134, 134, 139, 0.15) !important;
}

/* 删除 - Danger (Red) */
.apple-table-action-btn-danger {
  color: #FF3B30 !important;
  background-color: rgba(255, 59, 48, 0.1) !important;
}
.apple-table-action-btn-danger:hover {
  background-color: rgba(255, 59, 48, 0.15) !important;
}

/* 下拉菜单中的「删除」项：危险红，与表格按钮语义一致 */
.apple-profiles-menu-danger.arco-menu-item,
.apple-profiles-menu-danger {
  color: #FF3B30 !important;
}
.apple-profiles-menu-danger.arco-menu-item:hover,
.apple-profiles-menu-danger:hover {
  background-color: rgba(255, 59, 48, 0.1) !important;
  color: #FF3B30 !important;
}

/* Table Spacing Optimization */
.apple-profiles-table-card .arco-table-th {
  padding: 15px 18px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  color: #515154 !important;
  background-color: #F2F2F7 !important;
  border-bottom: 1px solid #D1D1D6 !important;
  white-space: nowrap !important;
}

.apple-profiles-table-card .arco-table-td {
  padding: 17px 18px !important;
  font-size: 14px !important;
  color: #1D1D1F !important;
  border-bottom: 1px solid #E5E5EA !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" !important;
  transition: background-color 0.15s ease !important;
}

.apple-profiles-table-card .arco-table-tr:hover .arco-table-td {
  background-color: #F2F2F7 !important;
}

/* 悬浮行左侧品牌强调条，强化"大气"层级 */
.apple-profiles-table-card .arco-table-tr:hover .arco-table-td:first-child {
  box-shadow: inset 3px 0 0 0 #0071E3 !important;
}

/* Animations for Modals */
@keyframes appleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.apple-profiles-table-card .arco-table-container::-webkit-scrollbar-thumb {
  background-color: transparent !important;
  display: none !important;
}

.apple-profiles-table-card .arco-table-container::-webkit-scrollbar-thumb:hover {
  background-color: transparent !important;
}

/* 全局隐藏所有的滚动条 */
::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}

@keyframes appleScaleUp {
  from { 
    opacity: 0;
    transform: scale(0.95) translateY(10px); 
  }
  to { 
    opacity: 1;
    transform: scale(1) translateY(0); 
  }
}

/* Apple Native Alert Button */
.apple-alert-btn {
  transition: background-color 0.2s ease !important;
}
.apple-alert-btn:active {
  background-color: rgba(60, 60, 67, 0.1) !important;
}



/* Force CopyableText to align correctly by targeting its parent */
.apple-settings-form .arco-form-item-wrapper-col,
.apple-settings-form .arco-form-item-wrapper,
.apple-settings-form .arco-form-item-control-wrapper,
.apple-settings-form .arco-form-item-control,
.apple-settings-form .arco-form-item-content {
  min-width: 0 !important;
}

.apple-settings-form .arco-form-item-control-wrapper,
.apple-settings-form .arco-form-item-control,
.apple-settings-form .arco-form-item-content {
  width: 100% !important;
}

.apple-settings-form .arco-form-item-content {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.apple-settings-form .arco-form-item-content > div {
  width: 100% !important;
  justify-content: flex-end !important;
  text-align: right !important;
}

/* ===== Profiles Hero Refinement (大气 / premium) ===== */
.apple-profiles-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0071E3;
  opacity: 0.9;
}

/* Real-data stat strip */
.apple-profiles-stat-strip {
  display: flex !important;
  align-items: stretch;
  gap: 0 !important;
  padding-top: 4px !important;
  margin-top: 2px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.apple-profiles-stat-tile {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 20px 28px 6px !important;
  position: relative !important;
}

.apple-profiles-stat-tile + .apple-profiles-stat-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 16px;
  width: 1px;
  background: rgba(0, 0, 0, 0.06) !important;
}

.apple-profiles-stat-num {
  font-size: 36px !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -1.2px !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" !important;
  color: #1D1D1F !important;
}

.apple-profiles-stat-label {
  margin-top: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #8E8E93 !important;
  letter-spacing: 0.02em !important;
}

/* Elevate the table card for a more premium feel */
.apple-profiles-table-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 768px) {
  .apple-settings-form .arco-col-5,
  .apple-settings-form .arco-form-label-item {
    flex: 0 0 65px !important;
    width: 65px !important;
    min-width: 65px !important;
    max-width: 65px !important;
    padding: 11px 0 11px 8px !important;
  }
  
  .apple-settings-form .arco-col.arco-col-5 {
    flex: 0 0 65px !important;
    width: 65px !important;
    min-width: 65px !important;
    max-width: 65px !important;
  }

  .apple-settings-form .arco-form-item-control-wrapper {
    padding: 11px 8px 11px 8px !important;
  }

  .apple-profiles-table-card .arco-table-th {
    padding: 12px !important;
  }

  /* --- 手机端“员工档案”顶部卡片优化 --- */
  .apple-profiles-top-card {
    padding: 8px !important;
    margin-bottom: 0px !important; /* 间距设置为0 */
  }
  
  .apple-profiles-top-card .arco-card-body {
    padding: 16px !important;
  }

  .apple-profiles-top-container {
    gap: 16px !important;
  }

  /* 手机端：数据概览带改为 2×2 网格，避免拥挤 */
  .apple-profiles-stat-strip {
    flex-wrap: wrap !important;
    border-top: none !important;
  }

  .apple-profiles-stat-tile {
    flex: 1 1 45% !important;
    padding: 14px 16px 6px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  .apple-profiles-stat-tile + .apple-profiles-stat-tile::before {
    display: none !important;
  }

  .apple-profiles-stat-num {
    font-size: 28px !important;
  }

  .apple-profiles-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .apple-profiles-title-col {
    width: 100% !important;
  }

  .apple-profiles-title {
    font-size: 22px !important;
  }

  .apple-profiles-desc {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* 隐藏导出和同步按钮 */
  .apple-profiles-export-btn,
  .apple-profiles-sync-btn {
    display: none !important;
  }

  .apple-profiles-filter-row {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px !important;
    background: transparent !important;
    border: none !important;
  }

  .apple-profiles-filter-left {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .apple-profiles-search-box {
    width: 100% !important;
  }

  .apple-profiles-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .apple-profiles-select {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .apple-profiles-filter-right {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .apple-profiles-quick-btn {
    flex: 1 !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    text-align: center !important;
  }

  /* --- 手机端表格优化（恢复数据表格形态，支持左右滑动） --- */
  .apple-profiles-table-card {
    padding: 0 !important;
    margin-top: 0px !important;
    border-radius: 12px !important;
  }
  
  .apple-profiles-table-card .arco-card-body {
    padding: 0 !important;
  }

  .apple-profiles-table-card .arco-table-container {
    border-radius: 12px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 0 !important;
  }
  
  .apple-profiles-table-card .arco-table-container::-webkit-scrollbar {
    display: none;
  }

  /* 恢复原生表格展示，去掉之前的卡片化 flex 布局 */
  .apple-profiles-table-card .arco-table-header {
    display: table-header-group !important;
  }
  
  .apple-profiles-table-card .arco-table-body table,
  .apple-profiles-table-card .arco-table-body tbody {
    display: table !important;
    width: max-content !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  
  .apple-profiles-table-card .arco-table-tr {
    display: table-row !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  
  .apple-profiles-table-card .arco-table-td {
    display: table-cell !important;
    padding: 12px 12px !important; /* 减小内边距 */
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    white-space: nowrap !important; /* 强制不换行 */
  }
  
  .apple-profiles-table-card .arco-table-th {
    padding: 12px 12px !important;
    white-space: nowrap !important;
  }

  /* 移除之前伪表头的 ::before */
  .apple-profiles-table-card .arco-table-td::before {
    display: none !important;
  }

  /* 去除多余的 flex 设置 */
  .apple-profiles-table-card .arco-table-td .arco-table-cell {
    display: block !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  
  /* 操作列靠右 */
  .apple-profiles-table-card .arco-table-td:last-child .arco-table-cell {
    text-align: right !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  /* 隐藏操作列中的下拉菜单（三个点），移动端仅保留"档案"按钮 */
  .apple-profiles-table-card .arco-table-td:last-child .arco-dropdown,
  .apple-mobile-hide-dropdown,
  .apple-desktop-only,
  .apple-profiles-table-card .arco-table-td:last-child .arco-btn-text:not(:first-child) {
    display: none !important;
  }

  .apple-drawer-header-profile {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    text-align: center;
  }
  
  .apple-drawer-header-profile .arco-avatar {
    margin: 0 auto;
  }
  
  .apple-drawer-header-profile > div {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* --- 手机端分页器 (Pagination) 优化 --- */
  .apple-profiles-table-card .arco-pagination {
    margin-top: 16px !important;
    padding: 0 12px 12px !important;
    display: flex !important;
    flex-direction: column !important; /* 强制纵向排列，让总条数在上面，页码在下面 */
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important; /* 确保分页器占满宽度 */
    box-sizing: border-box !important;
  }

  /* 隐藏在手机端显得多余的 "x 条/页" 切换器和跳转输入框 */
  .apple-profiles-table-card .arco-pagination-size,
  .apple-profiles-table-card .arco-pagination-jumper {
    display: none !important;
  }

  /* 保留“共 x 条”，稍微调整样式 */
  .apple-profiles-table-card .arco-pagination-total {
    display: block !important;
    text-align: center !important;
    margin-bottom: 4px !important;
    color: #8E8E93 !important;
    font-size: 13px !important;
  }

  /* 强制显示页码列表 (ul 元素) */
  .apple-profiles-table-card .arco-pagination-list {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important; /* 确保占满宽度以便居中 */
    max-width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important; /* 确保高度不被限制 */
    box-sizing: border-box !important;
  }
  
  /* 在移动端，Arco 可能给 pagination 添加了 simple 模式，强制覆盖它隐藏页码的样式 */
  .apple-profiles-table-card .arco-pagination-simple .arco-pagination-list,
  .apple-profiles-table-card .arco-pagination-simple .arco-pagination-item,
  .apple-profiles-table-card .arco-pagination-item,
  .arco-pagination-item,
  .arco-pagination-item-active,
  .apple-profiles-table-card .arco-pagination-item-ellipsis {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 2px !important;
    min-width: 32px !important;
    height: 32px !important;
    line-height: 1 !important;
    border-radius: 8px !important; /* Apple 风格圆角 */
    font-size: 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: transparent !important;
    color: #1D1D1F !important;
    padding: 0 !important; /* 清除多余内边距 */
  }
  
  /* 选中状态的页码 */
  .apple-profiles-table-card .arco-pagination-item-active {
    background-color: #0071E3 !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
  }

  /* 优化上一页/下一页按钮 */
  .apple-profiles-table-card .arco-pagination-item-prev,
  .apple-profiles-table-card .arco-pagination-item-next {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: transparent !important;
    margin: 2px !important; /* 给左右箭头也加上同样的 margin 保证整体平衡 */
    padding: 0 !important; /* 清除多余内边距 */
  }
}
