* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #f4f7fc;
    min-height: 100vh;
    padding: 1.5rem;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航 */
.nav-bar {
    position: sticky;
    top: 0.8rem;
    z-index: 100;
    background: white;
    border-radius: 40px;
    padding: 0.4rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 6px 16px rgba(0, 20, 40, 0.06);
    border: 1px solid #e9eef3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nav-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #5b6f82;
    border-radius: 36px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tab.active {
    background: #1a3e6f;
    color: white;
    box-shadow: 0 4px 10px rgba(26, 62, 111, 0.2);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.6rem;
    flex-shrink: 0;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.nav-user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a3e6f;
}

.nav-user-store {
    font-size: 0.7rem;
    color: #7b8fa2;
}

.nav-logout-btn {
    padding: 0.4rem 0.9rem;
    border: 1.5px solid #d9e2ec;
    background: white;
    font-size: 0.8rem;
    color: #5b6f82;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-logout-btn:hover {
    border-color: #d94e4e;
    color: #d94e4e;
    background: #fff5f5;
}

.nav-admin-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid #d9e2ec;
    background: white;
    font-size: 1rem;
    color: #5b6f82;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-admin-btn:hover {
    border-color: #1a3e6f;
    color: #1a3e6f;
    background: #f0f4ff;
}

.btn-outline {
    background: white;
    color: #5b6f82;
    border: 1.5px solid #d9e2ec;
    box-shadow: none;
}

.btn-outline:hover {
    border-color: #a0b8d0;
    background: #fafcff;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    width: auto;
    border-radius: 14px;
}

/* 管理员弹窗内联表单 */
#adminAddForm .form-group { min-width: 90px; }
#adminAddForm .form-group label { font-size: 0.75rem; }
#adminAddForm .form-group input,
#adminAddForm .form-group select { padding: 0.5rem 0.6rem; font-size: 0.85rem; border-radius: 10px; }
#adminAddForm .btn { padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 10px; }

.panel {
    display: none;
}

.panel.active {
    display: block;
}

.card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 35px -8px rgba(0, 20, 40, 0.15);
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.wide-card {
    padding: 2rem 1.8rem;
}

h2 {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    color: #0b2b4a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subhead {
    color: #5b6f82;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    border-left: 4px solid #2d7ff9;
    padding-left: 14px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #1e3a5f;
}

label .required {
    color: #d6394b;
    margin-left: 4px;
    font-size: 1.1rem;
    line-height: 1;
}

select,
input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1.5px solid #d9e2ec;
    border-radius: 18px;
    background: #fafcff;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

select {
    appearance: none;
    background: #fafcff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%235b6f82" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 0.8rem center;
    background-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
select:hover { border-color: #a0b8d0; }

select:focus,
input:focus,
input[type="number"]:focus {
    border-color: #2d7ff9;
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.15);
    background-color: white;
}

.btn {
    background: #1a3e6f;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.8rem;
    width: 100%;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 18px -6px rgba(26, 62, 111, 0.3);
    margin-top: 0.8rem;
}

.btn-secondary {
    background: #2d7ff9;
    box-shadow: 0 8px 18px -6px #2d7ff9;
}

.btn:hover {
    background: #0f2c4f;
}
.btn-secondary:hover { background: #1a5bbf; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; pointer-events: none; }

.message {
    margin-top: 1.5rem;
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.message.success { background: #e1f7e9; color: #0b5e3c; border-left: 6px solid #1f9a5e; }
.message.error { background: #ffe9e9; color: #b12a2a; border-left: 6px solid #d94e4e; }
.message.info { background: #e7f0fd; color: #1a4c8c; border-left: 6px solid #2d7ff9; }

.footer-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #7b8fa2;
}

/* 快速提交卡片 */
.submit-card { margin-bottom: 1.5rem; }
.inline-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.inline-form .form-group {
    flex: 1 1 160px;
    margin-bottom: 0;
}
.inline-form .btn {
    margin-top: 0;
    padding: 0.9rem 1.8rem;
    white-space: nowrap;
}

/* 管理面板 */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 20px;
    background: #f9fcff;
    padding: 15px 20px;
    border-radius: 20px;
}
.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-item label { margin-bottom: 0; font-weight: 500; color: #1e3a5f; }
.filter-item select { min-width: 140px; }

.btn-small {
    background: #eef3f9;
    border: 1px solid #d0dce8;
    color: #1e3a5f;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,20,40,0.06);
}
.btn-small:hover { filter: brightness(0.95); box-shadow: 0 4px 12px rgba(0,20,40,0.1); }
.btn-small:active { transform: scale(0.98); }
.btn-small:disabled { opacity: 0.6; pointer-events: none; box-shadow: none; }
.btn-danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.btn-import { background: #e0f2fe; color: #0369a1; }

.table-wrapper {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #e2eaf2;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.data-table th {
    background: #f0f5fa;
    padding: 12px 8px;
    font-weight: 600;
    color: #1e3a5f;
    text-align: left;
    border-bottom: 1px solid #d9e2ec;
}
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #ecf1f6;
}
.data-table tbody tr:hover { background: #f8fafd; }
.loading-msg { text-align: center; padding: 20px; color: #7b8fa2; }
.action-btn { background: none; border: none; cursor: pointer; margin: 0 4px; font-size: 1.1rem; }

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}
.page-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #d0dce8;
    background: white;
    cursor: pointer;
}
.page-btn.active { background: #1a3e6f; color: white; }

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}
.modal-content {
    background: white;
    margin: 5% auto;
    padding: 25px;
    border-radius: 28px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.close {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* 排班表表格 (7列) */
.quick-shift-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #d9e2ec;
    border-radius: 50%;
    background: #fafcff;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.quick-shift-btn:hover {
    border-color: #2d7ff9;
}
.quick-shift-btn.morning-btn:hover { background: #fef3c7; }
.quick-shift-btn.evening-btn:hover { background: #e0e7ff; }

.staff-row input, .staff-row select {
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #d9e2ec;
    width: 90%;
}
/* 点位下拉面板 */
.staff-row select:disabled {
    background: #ecf1f6;
    color: #7b8fa2;
}
.date-input { max-width: 200px; }

/* 行内错误提示 */

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2eaf2;
    border-top-color: #1a3e6f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 班次设置 */
.shift-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.8rem 0 1.2rem;
    color: #5b6f82;
    font-weight: 500;
    font-size: 0.85rem;
}
.shift-divider::before,
.shift-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2eaf2;
}

.shift-config-card .shift-form-row {
    margin-bottom: 1rem;
}
.shift-config-card .shift-form-row .form-group {
    max-width: 280px;
    margin-bottom: 0;
}

.shift-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-top: 0.5rem;
}

.shift-block {
    flex: 1 1 240px;
    border: 1.5px solid #e2eaf2;
    border-radius: 18px;
    overflow: hidden;
    background: #fafcff;
    transition: border-color 0.2s;
}
.shift-block.morning-block { border-left: 5px solid #f59e0b; }
.shift-block.evening-block { border-left: 5px solid #6366f1; }

.shift-block-header {
    background: #f0f5fa;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e3a5f;
}

.shift-block-body {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
}

.shift-time-group {
    flex: 1;
}
.shift-time-group label {
    font-size: 0.75rem;
    margin-bottom: 3px;
    color: #7b8fa2;
}
.shift-time-group input[type="time"] {
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.shift-time-sep {
    padding-bottom: 0.5rem;
    color: #7b8fa2;
    font-weight: 500;
}

/* 晚班开关 */
.shift-evening-toggle {
    display: flex;
    align-items: center;
    align-self: stretch;
}
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #5b6f82;
    white-space: nowrap;
    padding: 0.5rem 0;
    user-select: none;
}
.toggle-label input[type="checkbox"] {
    display: none;
}
.toggle-switch {
    width: 44px;
    height: 26px;
    border-radius: 13px;
    background: #d0dce8;
    position: relative;
    transition: background 0.25s;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-label input:checked + .toggle-switch {
    background: #6366f1;
}
.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(18px);
}

/* 当前班次信息 */
.shift-current-info {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.shift-current-info .shift-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
}
.shift-tag.morning { background: #fef3c7; color: #92400e; }
.shift-tag.evening { background: #e0e7ff; color: #3730a3; }
.shift-tag.set-time { background: #f0f5fa; color: #5b6f82; font-size: 0.8rem; }

/* 历史记录 */
.shift-history {
    margin-top: 1.2rem;
}
.shift-history summary {
    cursor: pointer;
    color: #5b6f82;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0;
}
.shift-history .table-wrapper {
    margin-top: 0.6rem;
}

/* 已有排班记录筛选栏 */
.records-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    background: #f9fcff;
    border: 1px solid #e2eaf2;
    border-radius: 20px;
    padding: 1rem 1.4rem;
    margin-bottom: 1rem;
}
.records-filter-item {
    flex: 1 1 auto;
}
.records-filter-item label {
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #7b8fa2;
}
.records-filter-item select,
.records-filter-item input[type="date"] {
    min-width: 140px;
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}
.time-range {
    display: flex;
    align-items: center;
    gap: 6px;
}
.time-range input[type="time"] {
    width: 110px;
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
    border: 1.5px solid #d9e2ec;
    border-radius: 14px;
    background: #fafcff;
    outline: none;
}
.time-range input[type="time"]:focus {
    border-color: #2d7ff9;
    box-shadow: 0 0 0 3px rgba(45,127,249,0.12);
}
.time-range span {
    color: #7b8fa2;
    font-size: 0.85rem;
}
.records-filter-actions {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    padding-top: 0.6rem;
}

/* 全屏加载遮罩 */
.loading-overlay {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-overlay-content {
    text-align: center;
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,20,40,0.15);
}
.progress-bar-wrapper {
    width: 100%; height: 12px;
    background: #e2eaf2;
    border-radius: 6px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1a3e6f, #2d6aa6);
    border-radius: 6px;
    transition: width 0.3s ease;
}


/* 行内编辑 */
.sched-inline-input {
    padding: 3px 6px;
    border: 1.5px solid #2d7ff9;
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
    background: white;
}
.sched-inline-select {
    padding: 3px 6px;
    border: 1.5px solid #2d7ff9;
    border-radius: 8px;
    font-size: 0.82rem;
    background: white;
}

/* 业绩权重配置 */
.weight-config-row { display: flex; align-items: flex-end; gap: 0.8rem; flex-wrap: wrap; }
.weight-config-row .form-group { margin-bottom: 0; }
.weight-config-row input { width: 80px; }
.weight-config-row label { font-size: 0.8rem; color: #5b6f82; margin-bottom: 2px; }
.weight-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.weight-tag.full { background: #e0f2fe; color: #0369a1; }
.weight-tag.part { background: #fef3c7; color: #92400e; }

/* ========================================
   排班表拖拽布局
   ======================================== */

/* 整体布局容器 */
.attendance-layout {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: flex-start;
    padding-bottom: 0.5rem;
}

/* === 人员池（左侧） === */
.staff-pool-card {
    flex: 0 0 200px;
    background: white;
    border: 1.5px solid #e2eaf2;
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    min-width: 180px;
}
.staff-pool-header {
    background: #f0f5fa;
    padding: 0.7rem 1rem;
    font-weight: 600;
    color: #1e3a5f;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #d9e2ec;
    flex-shrink: 0;
}
.staff-pool-count {
    font-size: 0.75rem;
    color: #7b8fa2;
    font-weight: 400;
}
.staff-pool-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* === 可拖拽人员卡片 === */
.staff-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.6rem;
    border: 1.5px solid #d9e2ec;
    border-radius: 14px;
    background: #fafcff;
    cursor: grab;
    font-size: 0.82rem;
    user-select: none;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.staff-chip:hover {
    border-color: #2d7ff9;
    box-shadow: 0 2px 8px rgba(45,127,249,0.12);
}
.staff-chip:active { cursor: grabbing; }
.staff-chip.dragging { opacity: 0.35; }
.staff-chip.selected { box-shadow: 0 0 0 2px #2d7ff9, 0 2px 8px rgba(45,127,249,0.25); background: #e8f4fd; }
.staff-chip .chip-type-badge {
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
    flex-shrink: 0;
    line-height: 1.4;
}
.staff-chip .chip-type-badge.ft { background: #e0f2fe; color: #0369a1; }
.staff-chip .chip-type-badge.pt { background: #fef3c7; color: #92400e; }
.staff-chip.is-assigned {
    opacity: 0.5;
    background: #f0f9ff;
    border-style: dashed;
}
.staff-chip.is-assigned::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.7rem;
    color: #059669;
    font-weight: 600;
}

/* === 点位列 === */
.location-columns {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    min-width: 0;
}
.location-column {
    flex: 0 0 280px;
    max-width: 380px;
    background: white;
    border: 1.5px solid #e2eaf2;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.location-column-header {
    background: #1a3e6f;
    color: white;
    padding: 0.55rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.location-column-header .loc-bulk-actions {
    display: flex;
    gap: 4px;
}
.location-column-header .loc-bulk-btn {
    width: 24px; height: 24px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: white;
    cursor: pointer;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    line-height: 1;
}
.location-column-header .loc-bulk-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* === 拖放区 === */
.location-drop-zone {
    flex: 1;
    min-height: 100px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s, border-color 0.2s;
    border: 2px dashed transparent;
    border-radius: 0 0 18px 18px;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}
.location-drop-zone.drag-over {
    background: #e8f4fd;
    border-color: #2d7ff9;
}
.location-drop-zone .drop-placeholder {
    color: #a0b8d0;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.82rem;
    pointer-events: none;
}

/* === 点位列内已分配人员 === */
.assigned-staff {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #e2eaf2;
    border-radius: 12px;
    background: #fafcff;
    font-size: 0.78rem;
    flex-wrap: wrap;
}
.assigned-staff .as-name {
    font-weight: 600;
    color: #1e3a5f;
    min-width: 45px;
    display: flex;
    align-items: center;
}
.assigned-staff .as-select {
    width: 16px; height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
}
.assigned-staff.selected { border-color: #2d7ff9; background: #e8f4fd; }
.assigned-staff.selected .as-select { border-color: #2d7ff9; background: #2d7ff9; }
.assigned-staff.selected .as-select::after { content: ""; display: block; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: 3px 0 0 4px; }
.assigned-staff .as-type-badge {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 6px;
    font-weight: 500;
    flex-shrink: 0;
}
.assigned-staff .as-type-badge.ft { background: #e0f2fe; color: #0369a1; }
.assigned-staff .as-type-badge.pt { background: #fef3c7; color: #92400e; }
.assigned-staff .as-time-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.assigned-staff .as-time-group input[type="time"] {
    width: 72px;
    padding: 0.25rem 0.2rem;
    font-size: 0.7rem;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fafcff;
}
.assigned-staff .as-rest-btn,
.assigned-staff .as-holiday-btn,
.assigned-staff .as-remove-btn {
    width: 20px; height: 20px;
    border: 1px solid #d9e2ec;
    border-radius: 50%;
    background: #fafcff;
    cursor: pointer;
    font-size: 0.6rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.assigned-staff .as-rest-btn:hover { background: #fef3c7; border-color: #f59e0b; }
.assigned-staff .as-holiday-btn:hover { background: #dbeafe; border-color: #3b82f6; }
.assigned-staff .as-remove-btn:hover { background: #fee2e2; border-color: #d94e4e; color: #d94e4e; }

/* 已分配人员状态 */
.assigned-staff.is-rest { opacity: 0.35; }
.assigned-staff.is-rest input { pointer-events: none; }
.assigned-staff.is-holiday { opacity: 0.5; background: #f0f9ff; }
.assigned-staff.is-holiday input { pointer-events: none; }

/* 响应式 */
@media (max-width: 768px) {
    .attendance-layout { flex-direction: column; }
    .staff-pool-card { position: static; flex: 0 0 auto; max-height: 200px; width: 100%; }
    .location-columns { flex-direction: column; width: 100%; }
    .location-column { max-width: 100%; flex: 0 0 100%; }
    .location-drop-zone { max-height: none; }
}

/* 响应式 */
@media (max-width: 768px) {
    .inline-form .form-row { flex-direction: column; }
    .inline-form .form-group { width: 100%; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .shift-blocks { flex-direction: column; }
    .shift-evening-toggle { align-self: flex-start; }
}

/* 响应式 */
@media (max-width: 768px) {
    .inline-form .form-row { flex-direction: column; }
    .inline-form .form-group { width: 100%; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .shift-blocks { flex-direction: column; }
    .shift-evening-toggle { align-self: flex-start; }
    .records-filter-bar { flex-direction: column; align-items: stretch; }

/* 权限管理复选框 */
.perm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem 1rem;
}
.perm-checkbox {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0;
    user-select: none;
}
.perm-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #1a3e6f;
}
    .records-filter-actions { margin-left: 0; }
}