/* 文件职责：员工排班抽屉与表单样式。 */
.staff-editor-drawer {
  .ant-drawer-header {
    min-height: 56px;
    padding: 0 24px;
    border-bottom: 1px solid #e5e7eb;
  }

  .ant-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
  }

  .ant-drawer-body {
    padding: 20px 24px;
  }

  .ant-drawer-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e7eb;
  }

  .staff-drawer-form {
    display: block;
  }

  .g-form-group {
    margin-bottom: 16px;
  }

  .g-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
  }

  .g-form-label.required::before {
    margin-right: 3px;
    color: #ff4d4f;
    content: '*';
  }

  .g-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .g-input {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    padding: 0 11px;
    font-size: 13px;
    color: #1a1a2e;
    outline: none;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    transition: all 0.2s ease;
  }

  .g-input:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgb(22 119 255 / 10%);
  }

  .g-input::placeholder {
    color: #bfbfbf;
  }

  .staff-form-select {
    width: 100%;
    font-size: 13px;
  }

  .staff-form-select .ant-select-selector {
    height: 34px !important;
    padding: 0 11px !important;
    background: #fff !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
  }

  .staff-form-select .ant-select-selection-item,
  .staff-form-select .ant-select-selection-placeholder {
    line-height: 32px !important;
  }

  .staff-form-select .ant-select-selection-item {
    font-size: 13px;
    color: #1a1a2e;
  }

  .staff-form-select .ant-select-selection-placeholder {
    font-size: 13px;
    color: #bfbfbf;
  }

  .staff-form-select .ant-select-arrow {
    color: #8c8c8c;
  }

  .staff-form-select:not(.ant-select-disabled):hover .ant-select-selector,
  .staff-form-select.ant-select-focused .ant-select-selector {
    border-color: #1677ff !important;
  }

  .staff-form-select.ant-select-focused .ant-select-selector {
    box-shadow: 0 0 0 3px rgb(22 119 255 / 10%) !important;
  }

  .g-hint {
    margin-top: 4px;
    font-size: 11px;
    color: #8c8c8c;
  }

  .staff-permission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  .staff-permission-item {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    font-size: 13px;
    color: #1a1a2e;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .staff-permission-item:hover {
    border-color: #1677ff;
  }

  .staff-permission-item input[type='checkbox'] {
    margin: 0;
    accent-color: #1677ff;
    cursor: pointer;
  }

  .staff-permission-item-all {
    grid-column: 1 / -1;
    font-weight: 600;
    background: #f0f5ff;
    border-color: #d6e4ff;
  }
}

.staff-editor-drawer .staff-drawer-footer,
.staff-schedule-drawer .staff-drawer-footer,
.staff-week-drawer .staff-drawer-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.staff-editor-drawer .staff-drawer-footer .ant-btn,
.staff-schedule-drawer .staff-drawer-footer .ant-btn,
.staff-week-drawer .staff-drawer-footer .ant-btn {
  min-width: 96px;
  height: 40px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 10px;
}

.staff-schedule-drawer,
.staff-week-drawer {
  .ant-drawer-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
  }

  .ant-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
  }

  .ant-drawer-body {
    padding: 18px 20px;
  }

  .ant-drawer-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
  }
}

.staff-schedule-drawer {
  .staff-schedule-hint {
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #1d39c4;
    background: #f0f5ff;
    border: 1px solid #adc6ff;
    border-radius: 8px;
  }

  .staff-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .staff-schedule-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
  }

  .staff-schedule-row:last-child {
    border-bottom: 0;
  }

  .staff-schedule-day {
    width: 44px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2329;
  }

  .staff-schedule-shifts {
    display: flex;
    gap: 6px;
  }

  .staff-schedule-empty {
    margin-left: 8px;
    font-size: 12px;
    color: #8c8c8c;
  }

  .staff-shift-pill {
    min-width: 46px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #667085;
    cursor: pointer;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    transition: all 0.2s ease;
  }

  .staff-shift-pill:hover {
    color: #1677ff;
    border-color: #1677ff;
  }

  .staff-shift-pill.active.shift-morning {
    color: #096dd9;
    background: #e6f7ff;
    border-color: #91d5ff;
  }

  .staff-shift-pill.active.shift-evening {
    color: #d46b08;
    background: #fff7e6;
    border-color: #ffd591;
  }

  .staff-shift-pill.active.shift-full {
    color: #389e0d;
    background: #f6ffed;
    border-color: #b7eb8f;
  }

  .staff-shift-pill.active.shift-off {
    color: #8c8c8c;
    background: #f5f5f5;
    border-color: #d9d9d9;
  }

  .staff-schedule-time {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
  }

  .staff-schedule-time.hidden {
    visibility: hidden;
  }

  .staff-schedule-separator {
    color: #8c8c8c;
  }
}
