2026-06-05 20:29:12 +08:00

514 lines
8.8 KiB
CSS

.role-pill {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 10px;
border-radius: 999px;
background: var(--hy-theme-primary-soft, #f4ebff);
color: var(--primary-deep);
font-size: 12px;
font-weight: 900;
}
.superadmin-center .name {
margin-top: 7px;
}
.salary-card,
.team-card {
padding: 16px;
}
.salary-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.salary-head h2 {
margin: 0;
color: var(--text);
font-size: 18px;
font-weight: 950;
line-height: 1.2;
}
.salary-value {
display: flex;
align-items: center;
gap: 10px;
margin-top: 18px;
color: #23272d;
font-size: 34px;
font-weight: 950;
line-height: 1;
}
.coin-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
flex: 0 0 28px;
border-radius: 50%;
background: linear-gradient(145deg, #ffe179 0%, #ffb62d 52%, #f49b20 100%);
color: #fff;
font-size: 19px;
font-weight: 950;
box-shadow:
inset 0 1px 2px rgba(255, 255, 255, 0.7),
0 1px 2px rgba(195, 117, 12, 0.24);
}
.salary-value strong {
min-width: 0;
overflow-wrap: anywhere;
}
.menu-card {
display: grid;
padding: 0 16px;
}
.menu-row {
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 24px;
gap: 12px;
align-items: center;
min-height: 64px;
border-bottom: 1px solid var(--line);
text-align: left;
}
.menu-row:last-child {
border-bottom: 0;
}
.menu-icon {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 50%;
background: var(--primary-soft);
color: var(--primary-deep);
}
.menu-icon svg {
width: 20px;
height: 20px;
}
.menu-icon path {
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 2;
}
.menu-label {
min-width: 0;
overflow: hidden;
color: #464951;
font-size: 16px;
font-weight: 850;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.team-card {
display: grid;
gap: 12px;
}
.team-summary,
.history-summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.team-summary.is-two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.history-summary.compact {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-summary > div,
.history-summary > div {
min-width: 0;
padding: 10px;
border-radius: 8px;
background: var(--hy-theme-primary-soft, #f4ebff);
}
.team-summary span,
.history-summary span {
display: block;
overflow: hidden;
color: var(--muted);
font-size: 11px;
font-weight: 850;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.team-summary strong,
.history-summary strong {
display: block;
margin-top: 5px;
overflow-wrap: anywhere;
color: var(--text);
font-size: 15px;
font-weight: 950;
line-height: 1.15;
}
.team-list,
.history-list,
.invite-list {
display: grid;
gap: 10px;
}
.team-list {
max-height: 360px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.member-row,
.invite-card {
display: grid;
grid-template-columns: 44px minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfcfc;
text-align: left;
}
.member-avatar {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
overflow: hidden;
border-radius: 50%;
background: var(--primary);
}
.member-avatar img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.member-fallback {
color: var(--primary-deep);
font-size: 18px;
font-weight: 950;
}
.member-main,
.invite-main {
min-width: 0;
}
.member-name,
.invite-name {
overflow: hidden;
color: var(--text);
font-size: 15px;
font-weight: 900;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-meta,
.invite-meta {
margin-top: 4px;
overflow: hidden;
color: var(--muted);
font-size: 12px;
font-weight: 800;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.member-side {
display: grid;
gap: 3px;
color: #555b64;
font-size: 12px;
font-weight: 850;
line-height: 1.2;
text-align: right;
}
.member-side strong {
color: var(--primary-deep);
font-size: 14px;
font-weight: 950;
}
.history-sheet {
max-height: 82vh;
max-height: 82dvh;
}
.history-summary,
.history-list {
padding: 0 18px 14px;
}
.history-row {
display: grid;
gap: 9px;
padding: 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfcfc;
}
.history-title {
color: var(--text);
font-size: 16px;
font-weight: 950;
}
.status-tag {
justify-self: flex-start;
padding: 5px 9px;
border-radius: 999px;
background: var(--primary-soft);
color: var(--primary-deep);
font-size: 12px;
font-weight: 900;
}
.history-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}
.readonly-line {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 48px;
padding: 0 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfcfc;
color: var(--muted);
font-size: 14px;
font-weight: 850;
}
.readonly-line strong {
color: var(--text);
font-weight: 950;
}
.invite-modal {
position: fixed;
z-index: 24;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
}
.invite-dialog {
position: relative;
display: flex;
flex-direction: column;
width: min(394px, 100%);
max-height: 80vh;
max-height: 80dvh;
overflow: hidden;
border-radius: 14px;
background: #fff;
box-shadow: 0 18px 44px rgba(23, 31, 42, 0.2);
}
.invite-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 18px 18px 12px;
}
.invite-head h2 {
margin: 0;
color: var(--text);
font-size: 20px;
font-weight: 950;
}
.invite-close {
display: flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
flex: 0 0 34px;
border-radius: 50%;
background: #f1f4f4;
color: #5d6570;
font-size: 25px;
font-weight: 400;
line-height: 1;
}
.invite-body {
display: grid;
gap: 12px;
min-height: 0;
overflow-y: auto;
padding: 0 18px 18px;
-webkit-overflow-scrolling: touch;
}
.invite-field {
display: grid;
gap: 8px;
}
.invite-field > span {
color: var(--text);
font-size: 14px;
font-weight: 900;
}
.invite-search-control {
display: grid;
grid-template-columns: minmax(0, 1fr) 96px;
gap: 8px;
}
.invite-search-control input {
min-width: 0;
height: 44px;
padding: 0 12px;
border: 1px solid var(--line);
border-radius: 8px;
background: #fbfcfc;
color: var(--text);
font-size: 14px;
font-weight: 800;
}
.invite-search-control button,
.invite-action {
display: flex;
align-items: center;
justify-content: center;
min-height: 44px;
border-radius: 8px;
background: var(--button);
color: #fff;
font-size: 14px;
font-weight: 950;
}
.invite-action {
min-width: 82px;
padding: 0 12px;
}
.invite-action:disabled {
background: var(--hy-theme-button-disabled, #eadffc);
color: var(--hy-theme-button-disabled-text, #9a8faa);
}
.invite-status,
.invite-empty {
min-height: 42px;
padding: 11px 12px;
border-radius: 8px;
background: var(--primary-soft);
color: var(--primary-deep);
font-size: 13px;
font-weight: 900;
}
.invite-status.warning {
background: #fff5e8;
color: #ba791c;
}
.invite-status.success {
background: #ecfbef;
color: #219251;
}
.invite-empty {
display: flex;
align-items: center;
justify-content: center;
color: var(--muted);
}
body.modal-open {
overflow: hidden;
}
[dir='rtl'] .menu-row,
[dir='rtl'] .member-row,
[dir='rtl'] .invite-card {
text-align: right;
}
[dir='rtl'] .member-side {
text-align: left;
}
[dir='rtl'] .chevron {
transform: rotate(180deg);
}
@media (max-width: 360px) {
.salary-card,
.team-card {
padding-right: 14px;
padding-left: 14px;
}
.team-summary,
.history-summary,
.history-grid {
grid-template-columns: 1fr;
}
.member-row,
.invite-card {
grid-template-columns: 40px minmax(0, 1fr);
}
.member-side,
.invite-action {
grid-column: 2;
justify-self: start;
text-align: left;
}
}