Scert/frontend/src/views/UserManagement/UserManagement.css

253 lines
4.3 KiB
CSS

.user-management {
margin-top: 18px;
}
.user-management-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 22px;
margin-bottom: 20px;
}
.user-management-heading h2 {
margin-bottom: 8px;
font-size: 26px;
}
.user-management-description {
margin: 0;
color: #71809a;
font-size: 13px;
}
.user-management-actions,
.user-row-actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 9px;
}
.user-message {
margin: 12px 0;
padding: 11px 14px;
border-radius: 10px;
font-size: 13px;
}
.error-message {
border: 1px solid #f0c4c4;
color: #9c3b3b;
background: #fff2f2;
}
.notice-message {
border: 1px solid #bfe7d1;
color: #24734b;
background: #effbf4;
}
.user-empty {
padding: 30px 12px;
border: 1px dashed #d5ddea;
border-radius: 12px;
color: #7a879d;
text-align: center;
}
.user-table-wrap {
overflow-x: auto;
}
.user-table {
width: 100%;
border-collapse: collapse;
color: #394963;
font-size: 13px;
}
.user-table th,
.user-table td {
padding: 13px 10px;
border-bottom: 1px solid #edf0f5;
text-align: left;
vertical-align: middle;
white-space: nowrap;
}
.user-table th {
color: #7a879d;
font-size: 12px;
font-weight: 700;
}
.user-table td:first-child {
color: #263752;
}
.user-badge,
.user-status {
display: inline-flex;
align-items: center;
padding: 4px 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 700;
}
.user-badge {
color: #315aaa;
background: #edf3ff;
}
.user-status.active {
color: #24734b;
background: #effbf4;
}
.user-status.disabled {
color: #91672e;
background: #fff7e8;
}
.user-modal {
width: min(100%, 620px);
}
.eyebrow {
margin: 0 0 8px;
color: #687792;
font-size: 12px;
font-weight: 700;
letter-spacing: 0;
}
.primary-button,
.secondary-button {
min-height: 42px;
padding: 10px 16px;
border: 1px solid #d5ddea;
border-radius: 8px;
background: #fff;
color: #32405a;
font: inherit;
font-size: 14px;
font-weight: 700;
cursor: pointer;
}
.primary-button {
border-color: #315aaa;
background: #315aaa;
color: #fff;
}
button:disabled {
cursor: wait;
opacity: 0.6;
}
.text-button {
min-height: 36px;
padding: 6px;
border: 0;
color: #315aaa;
background: transparent;
font: inherit;
cursor: pointer;
}
.danger-text,
.form-error {
color: #9c3b3b;
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 10;
display: grid;
place-items: center;
overflow-y: auto;
padding: 16px;
background: rgba(18, 31, 58, 0.52);
}
.user-modal {
box-sizing: border-box;
max-height: calc(100dvh - 32px);
overflow: auto;
padding: 24px;
border: 1px solid #b9cbe0;
border-radius: 8px;
background: #fff;
box-shadow: 0 20px 60px rgba(19, 38, 79, 0.25);
}
.modal-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 20px;
}
.modal-heading h2 {
margin: 0;
font-size: 24px;
letter-spacing: 0;
}
.close-button {
flex: 0 0 34px;
width: 34px;
height: 34px;
border: 0;
border-radius: 8px;
color: #687792;
background: #f1f4f8;
font-size: 24px;
cursor: pointer;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.field {
display: flex;
min-width: 0;
flex-direction: column;
gap: 8px;
margin-bottom: 17px;
color: #32405a;
font-size: 13px;
font-weight: 700;
}
.field small {
color: #687792;
font-size: 12px;
font-weight: 400;
}
.field input,
.field select {
box-sizing: border-box;
width: 100%;
min-width: 0;
height: 42px;
padding: 10px 12px;
border: 1px solid #bdcde0;
border-radius: 8px;
color: #172033;
background: #fff;
font: inherit;
font-weight: 400;
}
.field input:focus-visible,
.field select:focus-visible,
button:focus-visible {
outline: 2px solid #315aaa;
outline-offset: 2px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
gap: 10px;
margin-top: 20px;
}
@media (max-width: 720px) {
.user-management-heading {
align-items: stretch;
flex-direction: column;
}
.user-management-actions {
justify-content: flex-start;
}
.user-table th,
.user-table td {
padding: 11px 8px;
}
}
@media (max-width: 480px) {
.form-grid {
grid-template-columns: minmax(0, 1fr);
gap: 0;
}
.user-modal {
padding: 18px;
}
}