.employee-page {
|
flex: 1;
|
padding: 20px;
|
background: transparent;
|
}
|
|
.employee-card {
|
min-height: calc(100vh - 122px);
|
padding: 0 20px 28px;
|
border: 1px solid #dde8f7;
|
border-radius: 6px;
|
background: #fff;
|
box-shadow: 0 8px 24px rgba(34, 69, 126, 0.06);
|
}
|
|
.employee-card h1 {
|
height: 40px;
|
margin: 0;
|
display: flex;
|
align-items: center;
|
color: #111827;
|
font-size: 16px;
|
font-weight: 800;
|
}
|
|
.employee-layout {
|
display: grid;
|
grid-template-columns: 232px minmax(0, 1fr);
|
gap: 36px;
|
}
|
|
.employee-dept-side h2,
|
.employee-main-panel h2 {
|
margin: 0 0 10px;
|
color: #111827;
|
font-size: 15px;
|
font-weight: 800;
|
}
|
|
.employee-dept-search {
|
height: 26px;
|
display: grid;
|
grid-template-columns: 1fr 28px;
|
margin-bottom: 8px;
|
border: 1px solid #c8d1dc;
|
background: #fff;
|
}
|
|
.employee-dept-search input {
|
min-width: 0;
|
height: 24px;
|
padding: 0 8px;
|
border: 0;
|
outline: 0;
|
color: #1f2d3d;
|
font-size: 12px;
|
}
|
|
.employee-dept-search button {
|
position: relative;
|
border: 0;
|
background: transparent;
|
cursor: pointer;
|
}
|
|
.employee-dept-search button::before {
|
content: "";
|
position: absolute;
|
left: 6px;
|
top: 5px;
|
width: 11px;
|
height: 11px;
|
border: 1.5px solid #52657a;
|
border-radius: 50%;
|
}
|
|
.employee-dept-search button::after {
|
content: "";
|
position: absolute;
|
left: 18px;
|
top: 17px;
|
width: 7px;
|
height: 1.5px;
|
background: #52657a;
|
transform: rotate(45deg);
|
transform-origin: left center;
|
}
|
|
.employee-dept-tree {
|
min-height: 570px;
|
padding: 8px 0;
|
border: 1px solid #d8dce2;
|
overflow: auto;
|
}
|
|
.employee-dept-node {
|
min-height: 38px;
|
}
|
|
.employee-dept-row {
|
height: 38px;
|
display: grid;
|
grid-template-columns: 18px 20px 1fr;
|
align-items: center;
|
gap: 6px;
|
padding: 0 12px;
|
color: #344658;
|
font-size: 14px;
|
cursor: pointer;
|
}
|
|
.employee-dept-row.level-2 {
|
padding-left: 32px;
|
}
|
|
.employee-dept-row.level-3 {
|
padding-left: 54px;
|
}
|
|
.employee-dept-row.level-4 {
|
padding-left: 76px;
|
}
|
|
.employee-dept-row.active {
|
color: #1685ff;
|
background: #e5f6ff;
|
}
|
|
.employee-dept-row:hover {
|
background: #f6fbff;
|
}
|
|
.employee-dept-toggle {
|
width: 16px;
|
height: 16px;
|
position: relative;
|
border: 0;
|
background: transparent;
|
cursor: pointer;
|
}
|
|
.employee-dept-toggle::before {
|
content: "";
|
position: absolute;
|
left: 4px;
|
top: 5px;
|
border-left: 4px solid transparent;
|
border-right: 4px solid transparent;
|
border-top: 6px solid #435363;
|
}
|
|
.employee-dept-node.collapsed > .employee-dept-row .employee-dept-toggle::before {
|
border-top: 4px solid transparent;
|
border-bottom: 4px solid transparent;
|
border-left: 6px solid #435363;
|
border-right: 0;
|
}
|
|
.employee-dept-node.no-children > .employee-dept-row .employee-dept-toggle::before {
|
display: none;
|
}
|
|
.employee-folder-icon,
|
.employee-file-icon {
|
width: 14px;
|
height: 14px;
|
position: relative;
|
display: inline-block;
|
color: #52657a;
|
}
|
|
.employee-folder-icon {
|
border: 1.4px solid currentColor;
|
border-radius: 1px;
|
}
|
|
.employee-folder-icon::before {
|
content: "";
|
position: absolute;
|
left: 1px;
|
top: -5px;
|
width: 7px;
|
height: 5px;
|
border: 1.4px solid currentColor;
|
border-bottom: 0;
|
}
|
|
.employee-file-icon {
|
border: 1.4px solid currentColor;
|
border-radius: 2px;
|
}
|
|
.employee-file-icon::before {
|
content: "";
|
position: absolute;
|
right: -1px;
|
top: -1px;
|
width: 5px;
|
height: 5px;
|
border-left: 1.4px solid currentColor;
|
border-bottom: 1.4px solid currentColor;
|
background: #fff;
|
}
|
|
.employee-dept-empty {
|
padding: 24px;
|
color: #8a9ab0;
|
text-align: center;
|
font-size: 13px;
|
}
|
|
.employee-query {
|
display: grid;
|
grid-template-columns: repeat(3, minmax(210px, 1fr));
|
gap: 16px 34px;
|
align-items: center;
|
padding: 4px 0 18px;
|
border-bottom: 1px solid #d9dee8;
|
}
|
|
.employee-query label {
|
display: grid;
|
grid-template-columns: 76px 1fr;
|
align-items: center;
|
gap: 10px;
|
color: #111827;
|
font-size: 13px;
|
font-weight: 700;
|
}
|
|
.employee-query input,
|
.employee-query select {
|
width: 100%;
|
height: 26px;
|
min-width: 0;
|
padding: 0 8px;
|
border: 1px solid #c8d1dc;
|
outline: 0;
|
background: #fff;
|
font-size: 12px;
|
}
|
|
.employee-query-actions {
|
display: flex;
|
justify-content: flex-end;
|
gap: 18px;
|
}
|
|
.employee-reset,
|
.employee-search,
|
.employee-toolbar button {
|
height: 26px;
|
border-radius: 4px;
|
font-size: 12px;
|
font-weight: 700;
|
cursor: pointer;
|
}
|
|
.employee-reset {
|
min-width: 58px;
|
border: 1px solid #c8d1dc;
|
color: #344658;
|
background: #fff;
|
}
|
|
.employee-search,
|
.employee-toolbar button {
|
min-width: 58px;
|
border: 1px solid #1685ff;
|
color: #fff;
|
background: #1685ff;
|
}
|
|
.employee-toolbar {
|
display: flex;
|
gap: 18px;
|
padding: 10px 8px 28px;
|
}
|
|
.employee-toolbar button {
|
min-width: 58px;
|
padding: 0 16px;
|
}
|
|
.employee-table {
|
width: 100%;
|
border-collapse: collapse;
|
table-layout: fixed;
|
border: 1px solid #d8dce2;
|
font-size: 14px;
|
}
|
|
.employee-table th,
|
.employee-table td {
|
height: 42px;
|
padding: 0 10px;
|
color: #111827;
|
text-align: left;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
.employee-table th {
|
background: #f1f1f1;
|
font-weight: 700;
|
}
|
|
.employee-table tbody tr:nth-child(even) {
|
background: #f3f3f3;
|
}
|
|
.employee-table th:first-child,
|
.employee-table td:first-child {
|
width: 38px;
|
text-align: center;
|
}
|
|
.employee-face-thumb {
|
width: 34px;
|
height: 34px;
|
display: inline-block;
|
border-radius: 2px;
|
object-fit: cover;
|
vertical-align: middle;
|
}
|
|
.employee-status {
|
font-weight: 700;
|
}
|
|
.employee-actions {
|
display: flex;
|
gap: 8px;
|
}
|
|
.employee-actions button {
|
border: 0;
|
color: #1685ff;
|
background: transparent;
|
font-size: 14px;
|
font-weight: 700;
|
cursor: pointer;
|
white-space: nowrap;
|
}
|
|
.employee-empty {
|
padding: 36px;
|
border: 1px solid #d8dce2;
|
border-top: 0;
|
color: #8a9ab0;
|
text-align: center;
|
}
|
|
.pagination {
|
height: 46px;
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
gap: 10px;
|
color: #52657a;
|
font-size: 12px;
|
}
|
|
.pagination button {
|
min-width: 28px;
|
height: 24px;
|
border: 1px solid transparent;
|
border-radius: 3px;
|
color: #52657a;
|
background: transparent;
|
cursor: pointer;
|
}
|
|
.pagination button.active {
|
color: #1685ff;
|
}
|
|
.pagination button:disabled {
|
cursor: not-allowed;
|
opacity: 0.5;
|
}
|
|
.employee-modal-panel {
|
width: 724px;
|
min-height: 530px;
|
border-radius: 4px;
|
}
|
|
.employee-modal-header {
|
height: 58px;
|
justify-content: center;
|
}
|
|
.employee-modal-header h3 {
|
font-size: 16px;
|
font-weight: 700;
|
}
|
|
.employee-form {
|
display: grid;
|
grid-template-columns: 1fr 1fr;
|
gap: 18px 56px;
|
padding: 18px 40px 88px;
|
}
|
|
.employee-form-row {
|
display: grid;
|
gap: 10px;
|
color: #111827;
|
font-size: 14px;
|
font-weight: 700;
|
}
|
|
.employee-form-row.required > span::before,
|
.employee-position-field legend span::before {
|
content: "*";
|
margin-right: 8px;
|
color: #f15a5a;
|
font-weight: 400;
|
}
|
|
.employee-form-row input,
|
.employee-form-row select {
|
width: 100%;
|
height: 38px;
|
min-width: 0;
|
padding: 0 10px;
|
border: 1px solid #cbd2dc;
|
outline: 0;
|
font: inherit;
|
}
|
|
.employee-position-field {
|
grid-column: 1 / span 2;
|
display: flex;
|
align-items: center;
|
gap: 58px;
|
margin: 0;
|
padding: 0;
|
border: 0;
|
color: #111827;
|
font-size: 14px;
|
font-weight: 700;
|
}
|
|
.employee-position-field legend {
|
float: left;
|
width: 70px;
|
padding: 0;
|
}
|
|
.employee-position-field label {
|
font-weight: 400;
|
}
|
|
.employee-face-row {
|
align-items: start;
|
}
|
|
.face-upload-button {
|
width: 74px;
|
height: 74px;
|
display: grid;
|
place-items: center;
|
border: 1px solid #cbd2dc;
|
color: #666;
|
background: #fff;
|
font-size: 28px;
|
cursor: pointer;
|
overflow: hidden;
|
}
|
|
.face-upload-button img {
|
width: 100%;
|
height: 100%;
|
object-fit: cover;
|
}
|
|
.employee-modal-actions {
|
position: absolute;
|
right: 34px;
|
bottom: 22px;
|
display: flex;
|
gap: 34px;
|
}
|
|
.employee-modal-actions .ghost-button,
|
.employee-modal-actions .primary-button {
|
width: 66px;
|
height: 28px;
|
}
|
|
@media (max-width: 1280px) {
|
.employee-layout {
|
gap: 24px;
|
}
|
|
.employee-query {
|
grid-template-columns: repeat(2, minmax(210px, 1fr));
|
}
|
}
|
|
/* Employee management UI refresh */
|
.employee-page {
|
padding: 18px 20px 24px;
|
background: #f6faff;
|
}
|
|
.employee-card {
|
min-height: calc(100vh - 118px);
|
padding: 0;
|
border: 0;
|
border-radius: 0;
|
background: transparent;
|
box-shadow: none;
|
}
|
|
.employee-card h1 {
|
height: 34px;
|
color: #14233b;
|
font-size: 18px;
|
}
|
|
.employee-layout {
|
grid-template-columns: 242px minmax(0, 1fr);
|
gap: 18px;
|
align-items: stretch;
|
}
|
|
.employee-dept-side {
|
min-height: calc(100vh - 154px);
|
padding: 16px;
|
border: 1px solid #d9e7fb;
|
border-radius: 16px;
|
background: rgba(255, 255, 255, 0.92);
|
box-shadow: 0 10px 28px rgba(47, 115, 255, 0.04);
|
}
|
|
.employee-dept-side h2,
|
.employee-main-panel h2 {
|
margin-bottom: 12px;
|
color: #1d2e48;
|
font-size: 16px;
|
}
|
|
.employee-dept-search {
|
height: 34px;
|
grid-template-columns: 1fr 34px;
|
margin-bottom: 14px;
|
border-color: #d8e5f5;
|
border-radius: 12px;
|
background: #fbfdff;
|
overflow: hidden;
|
}
|
|
.employee-dept-search input {
|
height: 32px;
|
padding: 0 12px;
|
background: transparent;
|
color: #2c405a;
|
}
|
|
.employee-dept-search input::placeholder {
|
color: #9aacbf;
|
}
|
|
.employee-dept-search button::before {
|
left: 8px;
|
top: 8px;
|
border-color: #7d91ad;
|
}
|
|
.employee-dept-search button::after {
|
left: 20px;
|
top: 20px;
|
background: #7d91ad;
|
}
|
|
.employee-dept-tree {
|
min-height: 0;
|
border: 0;
|
padding: 0;
|
overflow: visible;
|
}
|
|
.employee-dept-row {
|
height: 34px;
|
border-radius: 9px;
|
color: #38516d;
|
font-size: 13px;
|
}
|
|
.employee-dept-row.active {
|
color: #1665e8;
|
background: #e7f3ff;
|
}
|
|
.employee-dept-row:hover {
|
background: #f0f7ff;
|
}
|
|
.employee-main-panel {
|
min-width: 0;
|
}
|
|
.employee-query {
|
grid-template-columns: repeat(3, minmax(220px, 1fr));
|
gap: 12px 34px;
|
padding: 14px 20px;
|
border: 1px solid #d9e7fb;
|
border-radius: 14px;
|
background: rgba(255, 255, 255, 0.88);
|
box-shadow: 0 8px 22px rgba(47, 115, 255, 0.03);
|
}
|
|
.employee-query label {
|
grid-template-columns: 56px 1fr;
|
gap: 8px;
|
color: #20324d;
|
font-size: 12px;
|
}
|
|
.employee-query input,
|
.employee-query select {
|
height: 36px;
|
padding: 0 12px;
|
border-color: #d8e5f5;
|
border-radius: 8px;
|
color: #2b3c53;
|
background: #fff;
|
}
|
|
.employee-query input:focus,
|
.employee-query select:focus {
|
border-color: #3f86ff;
|
box-shadow: 0 0 0 2px rgba(63, 134, 255, 0.08);
|
}
|
|
.employee-query-actions {
|
align-self: center;
|
gap: 10px;
|
}
|
|
.employee-reset,
|
.employee-search {
|
height: 32px;
|
min-width: 56px;
|
border-radius: 8px;
|
}
|
|
.employee-reset {
|
border-color: #d5e1f1;
|
color: #52657a;
|
}
|
|
.employee-search {
|
border-color: #276dff;
|
background: #276dff;
|
box-shadow: 0 8px 18px rgba(39, 109, 255, 0.16);
|
}
|
|
.employee-toolbar {
|
align-items: center;
|
justify-content: space-between;
|
gap: 16px;
|
padding: 18px 0 22px;
|
}
|
|
.employee-toolbar-left {
|
display: flex;
|
gap: 12px;
|
}
|
|
.employee-toolbar button {
|
height: 30px;
|
border-radius: 8px;
|
font-size: 12px;
|
}
|
|
.employee-secondary-button {
|
min-width: 78px;
|
border: 1px solid #cfe1ff !important;
|
color: #276dff !important;
|
background: #eef5ff !important;
|
}
|
|
.employee-add-button {
|
min-width: 74px;
|
border: 1px solid #276dff !important;
|
color: #fff !important;
|
background: #276dff !important;
|
box-shadow: 0 8px 18px rgba(39, 109, 255, 0.18);
|
}
|
|
.employee-table {
|
border: 0;
|
border-radius: 12px;
|
overflow: hidden;
|
background: #fff;
|
box-shadow: inset 0 0 0 1px #e1eaf8;
|
}
|
|
.employee-table th,
|
.employee-table td {
|
height: 36px;
|
padding: 0 10px;
|
color: #23364d;
|
font-size: 13px;
|
}
|
|
.employee-table th {
|
background: #f2f6fc;
|
color: #31425a;
|
}
|
|
.employee-table tbody tr:nth-child(even) {
|
background: #f6f9fe;
|
}
|
|
.employee-table tbody tr:hover {
|
background: #eef6ff;
|
}
|
|
.employee-table th:nth-child(1),
|
.employee-table td:nth-child(1) {
|
width: 42px;
|
}
|
|
.employee-table th:nth-child(2),
|
.employee-table td:nth-child(2) {
|
width: 76px;
|
}
|
|
.employee-table th:nth-child(3),
|
.employee-table td:nth-child(3) {
|
width: 110px;
|
}
|
|
.employee-table th:nth-child(4),
|
.employee-table td:nth-child(4) {
|
width: 108px;
|
}
|
|
.employee-table th:nth-child(5),
|
.employee-table td:nth-child(5) {
|
width: 120px;
|
}
|
|
.employee-table th:nth-child(6),
|
.employee-table td:nth-child(6) {
|
width: 110px;
|
}
|
|
.employee-table th:nth-child(7),
|
.employee-table td:nth-child(7) {
|
width: 118px;
|
}
|
|
.employee-table th:nth-child(8),
|
.employee-table td:nth-child(8) {
|
width: 74px;
|
text-align: center;
|
}
|
|
.employee-table th:nth-child(9),
|
.employee-table td:nth-child(9) {
|
width: 74px;
|
text-align: center;
|
}
|
|
.employee-table th:nth-child(10),
|
.employee-table td:nth-child(10) {
|
width: 146px;
|
}
|
|
.employee-status {
|
min-width: 46px;
|
height: 24px;
|
display: inline-flex;
|
align-items: center;
|
justify-content: center;
|
border-radius: 999px;
|
font-size: 12px;
|
font-weight: 700;
|
}
|
|
.employee-status.enabled {
|
border: 1px solid #aee9c4;
|
color: #21a45a;
|
background: #e9fbf0;
|
}
|
|
.employee-status.disabled {
|
border: 1px solid #d6dee9;
|
color: #728299;
|
background: #f1f4f8;
|
}
|
|
.employee-actions {
|
align-items: center;
|
gap: 10px;
|
justify-content: flex-start;
|
}
|
|
.employee-actions .employee-link-action {
|
color: #1976ff;
|
font-size: 13px;
|
padding: 0;
|
}
|
|
.employee-status-switch {
|
width: 40px;
|
height: 22px;
|
position: relative;
|
flex: 0 0 40px;
|
border: 0 !important;
|
border-radius: 999px;
|
background: #cbd6e4 !important;
|
cursor: pointer;
|
}
|
|
.employee-status-switch span {
|
position: absolute;
|
left: 3px;
|
top: 3px;
|
width: 16px;
|
height: 16px;
|
border-radius: 50%;
|
background: #fff;
|
box-shadow: 0 1px 4px rgba(28, 47, 78, 0.2);
|
transition: transform 0.16s ease;
|
}
|
|
.employee-status-switch.on {
|
background: #47cf73 !important;
|
}
|
|
.employee-status-switch.on span {
|
transform: translateX(18px);
|
}
|
|
.employee-face-thumb {
|
width: 28px;
|
height: 28px;
|
border-radius: 50%;
|
}
|
|
.employee-face-missing {
|
height: 24px;
|
display: inline-flex;
|
align-items: center;
|
justify-content: center;
|
padding: 0 10px;
|
border: 1px solid #d7e0ec;
|
border-radius: 999px;
|
color: #718197;
|
background: #f5f7fa;
|
font-size: 12px;
|
}
|
|
.employee-empty {
|
border-color: #e1eaf8;
|
background: #fff;
|
}
|
|
.pagination {
|
height: 54px;
|
padding-right: 8px;
|
}
|
|
@media (max-width: 1280px) {
|
.employee-layout {
|
grid-template-columns: 230px minmax(0, 1fr);
|
gap: 16px;
|
}
|
|
.employee-query {
|
grid-template-columns: repeat(2, minmax(220px, 1fr));
|
}
|
}
|