You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/public/cloud/admin-overview.css

962 lines
16 KiB
CSS

.admin-overview {
--vo-ink: #10243d;
--vo-muted: #5c6f83;
--vo-soft: #f5f8fb;
--vo-line: #dce5ee;
--vo-brand: #0a8f78;
--vo-brand-soft: #e7f7f2;
--vo-warning: #a96108;
--vo-warning-soft: #fff4df;
--vo-danger: #bd3847;
--vo-danger-soft: #fdecef;
display: grid;
gap: 16px;
width: 100%;
max-width: 1540px;
min-width: 0;
margin-inline: auto;
padding: 20px 0 32px;
color: var(--vo-ink);
}
.admin-overview *,
.admin-overview *::before,
.admin-overview *::after {
box-sizing: border-box;
}
.vo-page-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
padding: 4px 0 6px;
}
.vo-page-head > div:first-child {
min-width: 0;
}
.vo-page-head h1 {
margin: 0;
color: var(--vo-ink);
font-size: clamp(25px, 2.2vw, 32px);
font-weight: 850;
letter-spacing: -0.035em;
line-height: 1.15;
}
.vo-page-head p {
max-width: 680px;
margin: 8px 0 0;
color: var(--vo-muted);
font-size: 14px;
line-height: 1.6;
}
.vo-page-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
flex: 0 0 auto;
}
.vo-snapshot {
min-height: 44px;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0 14px;
border: 1px solid var(--vo-line);
border-radius: 8px;
color: #52677d;
background: #fff;
font-size: 12px;
font-weight: 750;
white-space: nowrap;
}
.vo-snapshot i {
color: var(--vo-brand);
font-size: 18px;
}
.vo-snapshot.is-error {
border-color: #f1cbd0;
color: #8f2b38;
background: #fff8f9;
}
.vo-snapshot.is-error i {
color: var(--vo-danger);
}
.vo-refresh {
min-height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
border-color: var(--vo-line);
color: #314a64;
font-weight: 750;
}
.vo-alert {
min-height: 48px;
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
border: 1px solid #f0c7cd;
border-radius: 8px;
color: #8d2936;
background: #fff7f8;
font-size: 14px;
font-weight: 700;
}
.vo-alert i {
flex: 0 0 auto;
font-size: 20px;
}
.vo-kpi-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.vo-kpi {
position: relative;
min-width: 0;
min-height: 184px;
display: flex;
flex-direction: column;
padding: 19px 20px 16px;
overflow: hidden;
border: 1px solid var(--vo-line);
border-radius: 8px;
background: #fff;
}
.vo-kpi::before {
position: absolute;
inset: 0 0 auto;
height: 3px;
content: "";
background: var(--vo-brand);
}
.vo-kpi.has-warning::before {
background: #dfa145;
}
.vo-kpi-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: var(--vo-muted);
font-size: 13px;
font-weight: 800;
}
.vo-kpi-head h2 {
margin: 0;
color: inherit;
font: inherit;
letter-spacing: inherit;
}
.vo-kpi-head i {
width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
border-radius: 8px;
color: #087460;
background: var(--vo-brand-soft);
font-size: 21px;
}
.vo-kpi.has-warning .vo-kpi-head i {
color: var(--vo-warning);
background: var(--vo-warning-soft);
}
.vo-kpi > strong {
display: block;
margin-top: 10px;
color: var(--vo-ink);
font-size: clamp(29px, 2.4vw, 36px);
font-weight: 850;
font-variant-numeric: tabular-nums;
letter-spacing: -0.04em;
line-height: 1.08;
}
.vo-kpi > strong small {
margin-right: 2px;
color: #476078;
font-size: 17px;
font-weight: 800;
}
.vo-kpi > p {
min-height: 39px;
margin: 8px 0 10px;
color: var(--vo-muted);
font-size: 12px;
font-weight: 650;
line-height: 1.55;
}
.vo-kpi > a {
min-height: 44px;
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: auto -8px -8px;
padding: 0 8px;
border-radius: 6px;
color: #087460;
font-size: 13px;
font-weight: 800;
text-decoration: none;
}
.vo-kpi > a i {
font-size: 19px;
}
.vo-primary-grid,
.vo-secondary-grid {
display: grid;
gap: 16px;
min-width: 0;
}
.vo-primary-grid {
grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
}
.vo-secondary-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vo-panel {
min-width: 0;
padding: 20px;
border: 1px solid var(--vo-line);
border-radius: 8px;
background: #fff;
}
.vo-panel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 18px;
}
.vo-panel-head > div:first-child {
min-width: 0;
}
.vo-panel-head h2 {
margin: 0;
color: var(--vo-ink);
font-size: 18px;
font-weight: 850;
letter-spacing: -0.02em;
}
.vo-panel-head p {
margin: 5px 0 0;
color: var(--vo-muted);
font-size: 12px;
font-weight: 600;
line-height: 1.55;
}
.vo-panel-summary {
flex: 0 0 auto;
text-align: right;
}
.vo-panel-summary strong {
display: block;
color: var(--vo-ink);
font-size: 21px;
font-weight: 850;
font-variant-numeric: tabular-nums;
}
.vo-panel-summary span {
display: block;
margin-top: 2px;
color: var(--vo-muted);
font-size: 12px;
font-weight: 700;
}
.vo-trend {
display: grid;
gap: 12px;
}
.vo-trend-row {
display: grid;
grid-template-columns: 74px minmax(90px, 1fr) 112px;
align-items: center;
gap: 14px;
min-width: 0;
}
.vo-trend-date,
.vo-trend-value {
min-width: 0;
}
.vo-trend-date strong,
.vo-trend-value strong {
display: block;
color: #27415c;
font-size: 12px;
font-weight: 800;
line-height: 1.25;
}
.vo-trend-date span,
.vo-trend-value span {
display: block;
margin-top: 2px;
color: var(--vo-muted);
font-size: 12px;
font-weight: 650;
line-height: 1.25;
}
.vo-trend-value {
overflow-wrap: anywhere;
text-align: right;
font-variant-numeric: tabular-nums;
}
.vo-trend-track {
height: 9px;
overflow: hidden;
border-radius: 999px;
background: #eaf0f5;
}
.vo-trend-track span {
width: calc(var(--value) * 1%);
min-width: calc(min(var(--value), 1) * 5px);
height: 100%;
display: block;
border-radius: inherit;
background: #27a98d;
}
.vo-panel-foot {
min-height: 44px;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 14px;
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #e8eef4;
color: var(--vo-muted);
font-size: 12px;
font-weight: 700;
}
.vo-panel-foot a,
.vo-head-link {
min-height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 6px;
border-radius: 6px;
color: #087460;
font-size: 12px;
font-weight: 800;
text-decoration: none;
}
.vo-attention-count {
min-width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
border-radius: 999px;
color: #547086;
background: #edf2f6;
font-size: 14px;
font-weight: 850;
font-variant-numeric: tabular-nums;
}
.vo-attention-count.has-items {
color: #9a3420;
background: #ffeadf;
}
.vo-attention-list {
display: grid;
gap: 7px;
}
.vo-attention-list a {
min-height: 66px;
display: grid;
grid-template-columns: 38px minmax(0, 1fr) auto;
align-items: center;
gap: 11px;
padding: 9px 10px;
border: 1px solid transparent;
border-radius: 7px;
color: inherit;
background: #f8fafc;
text-decoration: none;
}
.vo-attention-list > a > i {
width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 7px;
color: #36708e;
background: #e8f2f7;
font-size: 20px;
}
.vo-attention-list > a > i.is-warning {
color: var(--vo-warning);
background: var(--vo-warning-soft);
}
.vo-attention-list > a > i.is-danger {
color: var(--vo-danger);
background: var(--vo-danger-soft);
}
.vo-attention-list span,
.vo-shortcuts span {
min-width: 0;
}
.vo-attention-list strong,
.vo-attention-list small {
display: block;
}
.vo-attention-list strong {
color: #213b55;
font-size: 12px;
font-weight: 800;
}
.vo-attention-list small {
margin-top: 2px;
color: var(--vo-muted);
font-size: 12px;
font-weight: 600;
line-height: 1.35;
}
.vo-attention-list em {
min-width: 29px;
color: var(--vo-ink);
font-size: 15px;
font-style: normal;
font-weight: 850;
font-variant-numeric: tabular-nums;
text-align: right;
}
.vo-health-list {
display: grid;
gap: 19px;
}
.vo-health-item > div {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 8px;
color: #536b82;
font-size: 12px;
font-weight: 750;
}
.vo-health-item strong {
color: var(--vo-ink);
font-size: 13px;
font-weight: 850;
font-variant-numeric: tabular-nums;
}
.vo-health-track {
height: 8px;
display: block;
overflow: hidden;
border-radius: 999px;
background: #e9eff4;
}
.vo-health-track i {
width: calc(var(--value) * 1%);
height: 100%;
display: block;
border-radius: inherit;
background: #28a98d;
}
.vo-definition {
display: grid;
grid-template-columns: 24px minmax(0, 1fr);
gap: 8px;
margin-top: 20px;
padding: 11px 12px;
border-radius: 7px;
color: #526b80;
background: #f1f6f8;
font-size: 12px;
font-weight: 650;
line-height: 1.5;
}
.vo-definition i {
color: #25866f;
font-size: 18px;
}
.vo-flow-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.vo-flow-grid > div {
min-width: 0;
padding: 15px 16px;
border: 1px solid #e5ecf2;
border-radius: 7px;
background: #f8fafc;
}
.vo-flow-grid span,
.vo-flow-grid strong,
.vo-flow-grid small {
display: block;
}
.vo-flow-grid span {
color: var(--vo-muted);
font-size: 12px;
font-weight: 750;
}
.vo-flow-grid strong {
margin-top: 5px;
color: var(--vo-ink);
font-size: 25px;
font-weight: 850;
font-variant-numeric: tabular-nums;
letter-spacing: -0.03em;
}
.vo-flow-grid small {
margin-top: 5px;
color: var(--vo-muted);
font-size: 12px;
font-weight: 650;
line-height: 1.4;
}
.vo-plan-list {
display: grid;
}
.vo-plan-row {
min-height: 48px;
display: grid;
grid-template-columns: 30px minmax(0, 1fr) 58px 92px;
align-items: center;
gap: 10px;
border-bottom: 1px solid #e8eef4;
color: var(--vo-muted);
font-size: 12px;
font-weight: 700;
}
.vo-plan-row:last-child {
border-bottom: 0;
}
.vo-plan-rank {
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 6px;
color: #087460;
background: var(--vo-brand-soft);
font-size: 12px;
font-weight: 850;
}
.vo-plan-row strong {
min-width: 0;
color: #263f58;
font-size: 13px;
font-weight: 800;
line-height: 1.4;
overflow-wrap: anywhere;
}
.vo-plan-count,
.vo-plan-amount {
min-width: 0;
}
.vo-plan-row em {
color: var(--vo-ink);
font-style: normal;
font-weight: 850;
font-variant-numeric: tabular-nums;
text-align: right;
overflow-wrap: anywhere;
}
.vo-empty {
min-height: 154px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 8px;
color: var(--vo-muted);
font-size: 12px;
font-weight: 700;
text-align: center;
}
.vo-empty i {
color: #9eb0bf;
font-size: 28px;
}
.vo-shortcuts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.vo-shortcuts a {
min-height: 72px;
display: grid;
grid-template-columns: 38px minmax(0, 1fr);
align-items: center;
gap: 11px;
padding: 12px;
border: 1px solid #e3eaf1;
border-radius: 7px;
color: inherit;
background: #f8fafc;
text-decoration: none;
}
.vo-shortcuts > a > i {
width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 7px;
color: #087460;
background: var(--vo-brand-soft);
font-size: 20px;
}
.vo-shortcuts strong,
.vo-shortcuts small {
display: block;
}
.vo-shortcuts strong {
color: #253e57;
font-size: 12px;
font-weight: 800;
}
.vo-shortcuts small {
margin-top: 3px;
color: var(--vo-muted);
font-size: 12px;
font-weight: 650;
line-height: 1.35;
}
.vo-method-note {
min-width: 0;
display: grid;
grid-template-columns: 34px minmax(0, 1fr);
gap: 11px;
padding: 14px 16px;
border: 1px solid #d9e7e3;
border-radius: 8px;
color: #49657a;
background: #f2f8f6;
}
.vo-method-note > i {
width: 34px;
height: 34px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 7px;
color: #087460;
background: #dff2ec;
font-size: 19px;
}
.vo-method-note p,
.vo-method-note strong,
.vo-method-note span {
display: block;
margin: 0;
}
.vo-method-note strong {
color: #274c46;
font-size: 12px;
font-weight: 850;
}
.vo-method-note span {
margin-top: 3px;
font-size: 12px;
font-weight: 650;
line-height: 1.55;
}
.admin-overview a {
transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.admin-overview a:hover {
color: #056955;
}
.vo-kpi > a:hover,
.vo-panel-foot a:hover,
.vo-head-link:hover {
background: #eff8f5;
}
.vo-attention-list a:hover,
.vo-shortcuts a:hover {
border-color: #b9ddd3;
background: #f1f8f6;
}
.vo-attention-list a:active,
.vo-shortcuts a:active,
.vo-kpi > a:active,
.vo-panel-foot a:active,
.vo-head-link:active {
background: #e5f3ef;
}
.admin-overview a:focus-visible {
outline: 2px solid #0a7865;
outline-offset: 2px;
}
@media (max-width: 1260px) {
.vo-kpi-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vo-primary-grid {
grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
}
}
@media (max-width: 991px) {
.admin-overview {
padding-top: 16px;
}
.vo-primary-grid,
.vo-secondary-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
.vo-page-head {
align-items: stretch;
flex-direction: column;
gap: 14px;
}
.vo-page-actions {
width: 100%;
align-items: stretch;
}
.vo-snapshot {
min-width: 0;
flex: 1 1 auto;
white-space: normal;
}
.vo-refresh {
flex: 0 0 auto;
}
.vo-kpi-grid {
grid-template-columns: 1fr;
}
.vo-kpi {
min-height: 0;
}
.vo-panel-head {
gap: 10px;
}
.vo-trend-row {
grid-template-columns: 60px minmax(52px, 1fr) minmax(84px, auto);
gap: 9px;
}
.vo-trend-value strong {
font-size: 12px;
}
.vo-flow-grid,
.vo-shortcuts {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 480px) {
.admin-overview {
gap: 12px;
}
.vo-page-actions {
flex-direction: column;
}
.vo-snapshot,
.vo-refresh {
width: 100%;
justify-content: center;
}
.vo-kpi,
.vo-panel {
padding: 16px;
}
.vo-panel-head {
align-items: flex-start;
flex-direction: column;
}
.vo-panel-summary {
text-align: left;
}
.vo-attention-panel .vo-panel-head {
flex-direction: row;
}
.vo-trend-row {
grid-template-columns: 52px minmax(42px, 1fr) minmax(78px, 96px);
gap: 8px;
}
.vo-trend-date strong {
font-size: 12px;
}
.vo-panel-foot {
align-items: flex-start;
flex-direction: column;
gap: 0;
}
.vo-attention-list a {
grid-template-columns: 34px minmax(0, 1fr) auto;
padding-inline: 7px;
}
.vo-attention-list > a > i {
width: 34px;
height: 34px;
}
.vo-flow-grid,
.vo-shortcuts {
grid-template-columns: 1fr;
}
.vo-plan-row {
grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto);
grid-template-rows: auto auto;
padding: 8px 0;
}
.vo-plan-rank {
grid-column: 1;
grid-row: 1 / 3;
}
.vo-plan-row strong {
grid-column: 2;
grid-row: 1;
}
.vo-plan-count {
grid-column: 2;
grid-row: 2;
}
.vo-plan-amount {
grid-column: 3;
grid-row: 1 / 3;
}
}
@media (prefers-reduced-motion: reduce) {
.admin-overview *,
.admin-overview *::before,
.admin-overview *::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
}
}