/* ============================================
   淮安瑞济HRP系统 - 公共样式
   ============================================ */

:root {
    --primary: #2d8cf0;
    --primary-light: #5cadff;
    --success: #19be6b;
    --warning: #ff9900;
    --danger: #ed4014;
    --text-main: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --border: #dcdfe6;
    --border-light: #e8eef2;
    --bg: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

/* 页面容器 */
.hr-container {
    padding: 20px;
    background: var(--bg);
    min-height: 100vh;
}

/* 卡片 */
.hr-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.hr-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.hr-card-header i {
    margin-right: 8px;
    color: var(--primary);
}

.hr-card-body {
    padding: 0 24px 24px 24px;
}

/* 搜索面板 */
.hr-search-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.hr-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
}

.hr-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hr-search-item label {
    font-size: 13px;
    color: var(--text-regular);
    font-weight: 500;
    white-space: nowrap;
}

.hr-search-item .layui-input {
    width: 180px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0 10px;
    outline: none;
    transition: all 0.2s;
}

.hr-search-item .layui-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.1);
}

/* select 样式 - 完整美化 */
.hr-search-item select {
    width: 180px;
    height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--white);
    font-size: 13px;
    color: var(--text-regular);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23909399' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.hr-search-item select:hover {
    border-color: var(--primary);
}

.hr-search-item select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.1);
}

.hr-search-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.hr-search-buttons .layui-btn {
    height: 36px;
    line-height: 36px;
    padding: 0 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

/* 表格美化 */
.layui-table-view {
    margin: 0;
    border-radius: var(--radius);
}

.layui-table th {
    background-color: #fafbfc !important;
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
}

.layui-table td {
    color: var(--text-regular);
    font-size: 13px;
}

/* 状态标签 */
.hr-status {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 12px;
}

.hr-status.active { background: #e8f8f0; color: var(--success); }
.hr-status.trial { background: #fff4e6; color: var(--warning); }
.hr-status.leave { background: #feebe8; color: var(--danger); }

/* 操作按钮 */
.hr-actions {
    display: flex;
    gap: 6px;
}

/* 弹窗样式 */
.hr-dialog {
    padding: 10px 20px;
}

.hr-dialog .layui-form-item {
    margin-bottom: 15px;
}

.hr-dialog .layui-form-label {
    width: 80px;
    color: var(--text-regular);
    font-weight: 500;
}

.hr-dialog .layui-input-block {
    margin-left: 95px;
}

.hr-dialog .layui-input {
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0 10px;
    width: 100%;
    outline: none;
    transition: all 0.2s;
}

.hr-dialog .layui-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.1);
}

/* 弹窗 select 样式 */
.hr-dialog select {
    height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--white);
    font-size: 13px;
    color: var(--text-regular);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23909399' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    width: 100%;
}

.hr-dialog select:hover {
    border-color: var(--primary);
}

.hr-dialog select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 140, 240, 0.1);
}

/* 单选框组 */
.hr-dialog .layui-input-block input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.hr-dialog .layui-input-block .layui-input-inline {
    display: inline-block;
    margin-right: 15px;
}

/* 详情弹窗 */
.hr-detail {
    padding: 10px 20px;
}

.hr-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.hr-detail-label {
    width: 90px;
    color: var(--text-secondary);
}

.hr-detail-value {
    flex: 1;
    color: var(--text-main);
    font-weight: 500;
}