/* 文件职责：排班看板与周排班抽屉样式。 */
.page-store-staff {
  .schedule-empty,
  .staff-week-empty {
    padding: 18px 0;
  }

  .schedule-board-wrap,
  .staff-week-table-wrap {
    overflow-x: auto;
    border: 1px solid #f0f2f5;
    border-radius: 10px;
  }

  .schedule-board-tip {
    padding: 10px 12px;
    font-size: 12px;
    color: #ad6800;
    background: #fffbe6;
    border-bottom: 1px solid #ffe58f;
  }

  .schedule-board-table,
  .staff-week-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;

    th,
    td {
      padding: 10px 8px;
      text-align: center;
      border-bottom: 1px solid #f3f4f6;
    }

    th {
      font-size: 12px;
      font-weight: 600;
      color: #667085;
      background: #fafafa;
    }

    th:first-child {
      width: 140px;
      padding-left: 16px;
      text-align: left;
    }
  }

  .schedule-staff-cell,
  .staff-week-name-cell {
    width: 140px;
    min-width: 140px;
    padding-left: 16px !important;
    text-align: left !important;
    background: #fff;
  }

  .schedule-staff-name,
  .staff-week-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2329;
  }

  .schedule-staff-role,
  .staff-week-role {
    margin-top: 2px;
    font-size: 11px;
    color: #86909c;
  }

  .schedule-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 4px 5px;
    border: 1px solid;
    border-radius: 8px;
  }

  .schedule-cell.shift-unconfigured,
  .staff-week-cell.shift-unconfigured {
    color: #8c8c8c;
    background: #fafafa;
    border-color: #d9d9d9;
  }

  .schedule-cell-time {
    font-size: 11px;
    line-height: 1.3;
  }

  .schedule-cell-label {
    font-size: 11px;
    opacity: 0.82;
  }

  .staff-week-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #667085;
  }

  .staff-week-legend-item {
    display: inline-flex;
    gap: 6px;
    align-items: center;
  }

  .staff-week-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1px solid transparent;
    border-radius: 3px;
  }

  .staff-week-cell-wrap {
    padding: 6px;
  }

  .staff-week-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 6px;
    cursor: pointer;
    border: 1px solid;
    border-radius: 8px;
    transition: filter 0.2s ease;
  }

  .staff-week-cell:hover {
    filter: brightness(0.98);
  }

  .staff-week-cell-label {
    font-size: 12px;
    font-weight: 600;
  }

  .staff-week-cell-time {
    font-size: 11px;
    opacity: 0.85;
  }
}
