Rapport_React/src/assets/scss/pages/_dashboard.scss

526 lines
9.2 KiB
SCSS

.rapport-logo {
height: 40px !important;
width: auto !important;
max-width: 168px;
object-fit: contain;
}
.logo-sm .rapport-logo {
height: 22px !important;
max-width: 56px;
}
.apexcharts-legend {
display: none;
}
#cipla_team_heat_map_table.table,
#cipla_team_heat_map_table th,
#cipla_team_heat_map_table td {
border: 5px solid white;
}
.mlb-card {
background: #f6f2fb;
border: 0;
border-radius: 28px;
box-shadow: 0 10px 30px rgba(90, 60, 140, 0.08);
padding: 22px 22px 16px;
height: 100%;
margin-bottom: 24px;
}
.mlb-card-head { margin-bottom: 8px; }
.mlb-card-title {
font-size: 18px;
font-weight: 700;
color: #1f1f1f;
margin: 0 0 6px;
letter-spacing: -0.02em;
}
.mlb-card-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.mlb-card-date {
color: #8b8b8b;
font-size: 14px;
margin: 0;
}
.mlb-card-details {
color: #7b61c8;
font-weight: 600;
font-size: 13px;
text-decoration: none;
border: 1px solid #eadff8;
background: #fff;
border-radius: 999px;
padding: 6px 14px;
display: inline-block;
line-height: 1.2;
}
.mlb-pills {
display: flex;
justify-content: center;
gap: 10px;
margin: 16px 0 4px;
flex-wrap: wrap;
}
.mlb-pill {
border: 1px solid #ebe4f5;
background: #fff;
color: #6f6f6f;
border-radius: 999px;
padding: 6px 16px;
font-size: 13px;
font-weight: 600;
line-height: 1.2;
cursor: pointer;
font-family: inherit;
text-decoration: none;
}
.mlb-pill.is-active {
pointer-events: none;
}
.mlb-pill.is-active,
.mlb-pill:hover {
background: #eadff8;
border-color: #eadff8;
color: #2b2b2b;
}
.mlb-podium {
min-height: 300px;
display: flex;
align-items: flex-end;
justify-content: center;
}
.mlb-podium-row {
width: 100%;
display: flex;
align-items: flex-end;
justify-content: center;
gap: 12px;
padding: 8px 4px 4px;
}
.mlb-col {
width: 96px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.mlb-col.is-first { width: 112px; }
.mlb-col.is-empty .mlb-name,
.mlb-col.is-empty .mlb-bar { color: #9a9a9a; }
.mlb-avatar-wrap {
position: relative;
margin-bottom: 10px;
}
.mlb-crown {
position: absolute;
top: -22px;
left: 50%;
transform: translateX(-50%);
z-index: 2;
}
.mlb-avatar {
width: 62px;
height: 62px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 18px;
overflow: hidden;
background: #eee;
}
.mlb-col.is-first .mlb-avatar {
width: 80px;
height: 80px;
font-size: 24px;
}
.mlb-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.mlb-avatar.rank-1 {
background: #f4e3b8;
color: #222;
box-shadow: 0 10px 24px rgba(243, 211, 74, 0.45);
}
.mlb-avatar.rank-2 {
background: #1d3557;
color: #fff;
}
.mlb-avatar.rank-3 {
background: #ff4f9a;
color: #111;
}
.mlb-badge {
position: absolute;
left: 50%;
bottom: -8px;
transform: translateX(-50%);
width: 24px;
height: 24px;
border-radius: 50%;
color: #fff;
font-size: 12px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #f6f2fb;
}
.mlb-badge.rank-1 { background: #e3b341; }
.mlb-badge.rank-2 { background: #9aa0ad; }
.mlb-badge.rank-3 { background: #e0893a; }
.mlb-name {
font-size: 13px;
font-weight: 600;
color: #4b4b4b;
margin: 6px 0 10px;
min-height: 18px;
max-width: 130px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mlb-bar {
width: 100%;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
font-weight: 800;
color: #4a4a4a;
box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
}
.mlb-bar.rank-1 { height: 128px; background: #f3d34a; }
.mlb-bar.rank-2 { height: 92px; background: #d5d8e0; }
.mlb-bar.rank-3 { height: 68px; background: #ff8b3d; }
.mlb-empty {
width: 100%;
text-align: center;
color: #8b8b8b;
padding: 48px 12px;
}
.mlb-dashboard {
.mlb-toolbar {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
flex-wrap: wrap;
margin: 0 0 16px;
}
.mlb-pills {
margin: 0;
flex: 1;
justify-content: flex-start;
}
.mlb-period {
display: flex;
align-items: center;
gap: 8px;
min-width: 220px;
}
.mlb-period label {
margin: 0;
white-space: nowrap;
color: var(--bs-secondary-color);
font-size: 13px;
font-weight: 600;
}
.mlb-period select {
min-width: 180px;
}
}
.btn-xs {
padding: 0.2rem 0.6rem;
font-size: 0.75rem;
border-radius: 0.15rem;
}
.btn-rounded {
border-radius: 2em;
}
.metric-report-page {
.button-list {
margin-left: -8px;
margin-bottom: -12px;
.btn {
margin-bottom: 12px;
margin-left: 8px;
}
}
.custom-date-go {
cursor: pointer;
}
.metric-report-actions {
display: inline-flex;
align-items: stretch;
justify-content: flex-end;
gap: 0.25rem;
flex-wrap: wrap;
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
line-height: 1.2;
}
}
.metric-report-filter {
padding-left: 0.45rem;
padding-right: 0.45rem;
svg {
width: 0.95em;
height: 0.95em;
}
}
.level-filter {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 12px;
flex-wrap: wrap;
text-align: start;
}
.level-filter-label,
.level-filter-btn {
color: var(--#{$prefix}secondary-color);
font-size: 15px;
font-weight: 500;
line-height: 1;
}
.level-filter-btn {
appearance: none;
background: transparent;
border: 0;
width: 2rem;
height: 2rem;
padding: 0;
border-radius: 50%;
cursor: pointer;
font-family: inherit;
display: inline-flex;
align-items: center;
justify-content: center;
}
.level-filter-btn:hover:not(.is-active) {
background: var(--#{$prefix}tertiary-bg);
}
.level-filter-btn.is-active {
background: var(--#{$prefix}primary-bg-subtle);
color: var(--#{$prefix}primary);
}
.team-trail {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: 6px;
list-style: none;
padding: 0;
margin: 0;
text-align: start;
}
.team-trail-item {
display: inline-flex;
align-items: center;
gap: 6px;
}
.team-trail-sep {
color: var(--#{$prefix}secondary-color);
flex-shrink: 0;
}
.team-trail button,
.team-trail span {
background: none;
border: 0;
padding: 0;
font: inherit;
color: var(--#{$prefix}secondary-color);
}
.team-trail button {
cursor: pointer;
}
.team-trail button:hover {
color: var(--#{$prefix}primary);
}
.team-trail .is-current {
color: var(--#{$prefix}primary);
}
.rank-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2rem;
height: 2rem;
border-radius: 50%;
font-weight: $font-weight-semibold;
font-size: 0.8125rem;
background: var(--#{$prefix}light);
color: var(--#{$prefix}dark);
}
.rank-badge.rank-1 {
background: $warning;
color: $white;
box-shadow: $box-shadow;
}
.rank-badge.rank-2 {
background: $gray-400;
color: $white;
box-shadow: $box-shadow;
}
.rank-badge.rank-3 {
background: $orange;
color: $white;
box-shadow: $box-shadow;
}
}
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 2rem 1rem;
}
.empty-state.is-sm {
padding: 1.25rem 0.75rem;
}
.empty-state-svg {
width: 7rem;
height: 7rem;
margin-bottom: 0.75rem;
}
.empty-state.is-sm .empty-state-svg {
width: 4.75rem;
height: 4.75rem;
}
.empty-state-doc {
fill: var(--#{$prefix}gray-200);
stroke: var(--#{$prefix}gray-400);
}
.empty-state-clip {
fill: var(--#{$prefix}gray-300);
stroke: var(--#{$prefix}gray-400);
}
.empty-state-line {
stroke: var(--#{$prefix}gray-400);
}
.empty-state-glass {
fill: var(--#{$prefix}gray-100);
stroke: var(--#{$prefix}gray-500);
}
.empty-state-handle {
stroke: var(--#{$prefix}gray-500);
}
.empty-state-title {
margin: 0;
font-size: 1rem;
font-weight: 600;
color: var(--#{$prefix}emphasis-color);
}
.empty-state-copy {
margin: 0.25rem 0 0;
font-size: 0.875rem;
color: var(--#{$prefix}secondary-color);
}
.empty-state-row > td {
white-space: normal !important;
}
.action-card {
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
height: 100%;
padding: 1.25rem 1rem;
}
.action-card-icon {
width: 5.5rem;
height: 5.5rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
}
}
.action-card-title {
margin: 0.85rem 0 0;
width: 100%;
text-align: center;
min-height: 2.5em;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.quick-action-modal .modal-content {
height: 90vh;
}
.quick-action-iframe {
width: 100%;
height: 100%;
min-height: 70vh;
border: 0;
}