/* 组件样式 - 卡片、表格、按钮、表单等通用组件 */

/* 登录页面样式 */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    color: #333;
    font-weight: 600;
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.card {
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border: none;
    margin-bottom: 20px;
}

.form-container {
    max-width: 800px;
}

.table-container {
    margin-top: 20px;
}

.action-btn {
    margin-right: 5px;
}

.modal-lg {
    max-width: 800px;
}

.img-preview {
    max-width: 100%;
    max-height: 200px;
    cursor: pointer;
}

.fullscreen-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.fullscreen-img img {
    max-width: 90%;
    max-height: 90%;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0d6efd;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.search-box {
    margin-bottom: 20px;
    width: 50%;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-section h5 {
    color: #0d6efd;
    margin-bottom: 15px;
}

.salary-result {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #dee2e6;
}

.salary-total {
    font-weight: bold;
    font-size: 18px;
    color: #0d6efd;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #dee2e6;
}

.time-filter {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.order-total {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
}

.import-export-buttons {
    margin-bottom: 15px;
}

.status-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

.status-submitted {
    background-color: #6c757d;
    color: #fff;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-paid {
    background-color: #198754;
    color: #fff;
}

.search-time-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-time-container .search-box {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.search-time-container .time-filter {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
}

.table-container-body {
    max-height: 600px;
    overflow-y: auto;
}

.notes-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notes-cell:hover {
    overflow: visible;
    white-space: normal;
    background-color: #f8f9fa;
    z-index: 10;
    position: relative;
}

/* 修复表头对齐问题 */
.table-responsive table {
    width: 100%;
    table-layout: fixed;
}

.table-responsive th, .table-responsive td {
    word-wrap: break-word;
    vertical-align: middle;
}

/* 密码验证样式 */
.password-verify-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.password-verify-box {
    max-width: 400px;
    width: 100%;
}
