/* 考勤模块样式 */

.hint-box {
    background: #fff8e6;
    border: 1px solid #ffe08a;
    color: #856404;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.month-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.month-picker-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-picker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.month-picker-group input[type="month"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.work-rule-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.work-rule-title {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.work-rule-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 13px;
    color: #374151;
}

.work-rule-chip.start {
    background: #eef2ff;
    color: #4338ca;
}

.work-rule-chip.end {
    background: #ecfdf5;
    color: #047857;
}

.work-rule-chip .chip-label {
    opacity: 0.85;
}

.work-rule-chip strong {
    font-size: 15px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 22px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 8px;
}

.summary-card .num {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.section-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 22px 24px;
    margin-bottom: 24px;
}

.section-box h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.settings-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.settings-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.settings-row input[type="time"] {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.workday-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 14px;
    color: #374151;
}

.workday-group label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.stat-card-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 22px 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card-small h3 {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 8px;
}

.stat-card-small .stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.container > div:has(.att-table) {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 4px;
    margin-bottom: 24px;
}

.section-box > div:has(.att-table) {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.att-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.att-table thead {
    background: #f8f9fa;
}

.att-table th,
.att-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef0f2;
    white-space: nowrap;
}

.att-table th {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
}

.att-table tbody tr:hover {
    background: #fafbfc;
}

.att-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.status-badge.status-normal {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-late {
    background: #fee2e2;
    color: #b91c1c;
}

.status-badge.status-early_leave {
    background: #ffedd5;
    color: #c2410c;
}

.status-badge.status-absent {
    background: #f3f4f6;
    color: #4b5563;
}

.status-badge.status-leave {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.status-rest {
    background: #ede9fe;
    color: #6d28d9;
}

@media (max-width: 768px) {
    .month-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .work-rule-group {
        justify-content: flex-start;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
