/* Mockup layout only. Components and their look come from app.css (the client area itself); colours are its own variables.
   The page opens from the user dropdown (SSE Free), so it has no app bar and no page sidebar: PageFrame (h1, divider) and the body. */

:root {
  --v-chart-visitors: #07C07E;   /* themes-variables.scss, series colours of the client area charts */
  --v-chart-bandwidth: #005EEA;
  --v-chart-axis-label: #797997;
  --v-chart-grid: #DEDEF1;
}

.mk-u { padding-top: 8px; }
.mk-u .page-frame__head h1 { margin: 0; }
.mk-u__admin { text-decoration: none; }
.mk-u__admin .v-btn__content { gap: 10px; white-space: nowrap !important; }
.mk-u__admin svg { display: block; }

/* A native select over the kit v-select, so the period works in the mockup. */
.mk-select { position: relative; }
.mk-select select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font: inherit; }

/* ---- Usage: one card per resource. Same values as UsageCard (90px ring, 6px stroke), one colour for every ring
   (the primary green; the current page paints RAM orange and Disk pink with no meaning behind it). The card has
   its own edge, so the two rows are split by space, not by a line. CPU has no second number: the percent is in the ring. ---- */
.mk-u__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.mk-stat { display: flex; flex-direction: row !important; justify-content: flex-start !important; align-items: center; gap: 20px; padding: 24px; border-radius: 8px; }
.mk-stat__ring { flex: none; width: 90px; height: 90px; color: var(--v-primary-base); }
.mk-stat__ring .v-progress-circular__content { font-size: 16px; font-weight: 700; color: var(--v-text-darken2); }
.mk-stat__body { flex: 1; min-width: 0; }
.mk-stat__list { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 8px 16px; margin: 12px 0 0; }
.mk-stat__list dt { font-size: 16px; line-height: 24px; color: var(--v-text-base); margin: 0; }
.mk-stat__list dd { font-size: 16px; line-height: 24px; font-weight: 700; color: var(--v-text-darken2); margin: 0; text-align: right; }
.mk-stat__note { font-size: 16px; line-height: 24px; color: var(--v-text-base); margin: 12px 0 0; }

/* ---- Graphs: the tab row of GraphsCard with the period select on its right; the Live counter as plain text. ---- */
.mk-graphs { padding: 8px 24px 24px; border-radius: 8px; }
.mk-graphs__head { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.mk-graph-tabs { height: 56px; min-width: 0; }
.mk-graph-tabs .v-slide-group__container { overflow-x: auto; scrollbar-width: none; }
.mk-graph-tabs .v-slide-group__container::-webkit-scrollbar { display: none; }
.mk-graph-tabs .v-slide-group__content { gap: 24px; }
.mk-graph-tabs .v-tab { position: relative; height: 56px; padding: 0 !important; background: none; border: 0; font-family: inherit; font-size: 18px; line-height: 26px; font-weight: 500; color: var(--v-text-darken2); cursor: pointer; white-space: nowrap; transition: color .3s ease; }
.mk-graph-tabs .v-tab:hover { color: var(--v-primary-base); }
.mk-graph-tabs .v-tab--selected { color: var(--v-primary-darken1); }
.mk-graph-tabs .v-tab__slider { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; opacity: 0; }
.mk-graph-tabs .v-tab--selected .v-tab__slider { opacity: 1; }
.mk-graph-tabs .v-tab:focus-visible { outline: 2px solid var(--v-primary-base); outline-offset: -2px; }
.mk-graphs__controls { display: flex; align-items: center; gap: 16px; }
.mk-graphs__controls .free-tasks__filter { width: 160px; max-width: 160px; }
.mk-graphs__live { font-size: 14px; line-height: 20px; color: var(--v-text-base); white-space: nowrap; }

.mk-legend { display: flex; gap: 24px; min-height: 20px; margin: 16px 0 4px; }
.mk-legend__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--v-text-base); }
.mk-legend__dot { width: 10px; height: 10px; border-radius: 50%; }

.mk-chart { position: relative; height: 300px; }
.mk-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mk-chart .axis { font-family: inherit; font-size: 12px; font-weight: 700; fill: var(--v-chart-axis-label); }
.mk-chart .grid { stroke: var(--v-chart-grid); stroke-dasharray: 4 4; }
.mk-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mk-chart .area { opacity: .08; }
.mk-chart .cursor { stroke: var(--v-gray-base); stroke-dasharray: 3 3; }
.mk-tip { position: absolute; top: 0; pointer-events: none; min-width: 150px; padding: 8px 12px; border-radius: 4px; background: var(--v-tooltip-base); box-shadow: 0px 8px 24px 6px var(--shadowColor4), 0px 0px 1px 0px var(--shadowColor5); font-size: 14px; line-height: 20px; color: var(--v-text-darken2); opacity: 0; transition: opacity .1s; z-index: 3; }
.mk-tip.is-on { opacity: 1; }
.mk-tip__time { color: var(--v-text-base); margin-bottom: 4px; }
.mk-tip__row { display: flex; align-items: center; gap: 8px; }
.mk-tip__row b { margin-left: auto; padding-left: 16px; }

/* ---- Narrow screens ---- */
@media (width <= 1279.98px) {
  .mk-u__stats { grid-template-columns: minmax(0, 1fr); }
}
@media (width <= 959.98px) {
  .mk-u .page-frame__head { flex-direction: column !important; align-items: flex-start !important; gap: 12px; margin: 12px 0 !important; }
  .mk-u hr.v-divider { margin-bottom: 12px !important; }
  .mk-graphs { padding: 8px 16px 16px; }
  .mk-graphs__head { gap: 8px; }
  .mk-graph-tabs { width: 100%; }
  .mk-graphs__controls { width: 100%; justify-content: space-between; padding-bottom: 8px; }
  .mk-chart { height: 240px; }
}
@media (width <= 600px) {
  .mk-u .px-6 { padding-left: 16px !important; padding-right: 16px !important; }
  .mk-stat { padding: 16px; gap: 16px; }
  .mk-u__admin { width: 100%; justify-content: center; }
  .mk-u .page-frame__filters { width: 100%; }
}

/* ---- B: the three rings in one card, as UsageCard today (manage-panel: three equal columns, 24px padding, 20px gap). ---- */
.mk-u__panel { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; border-radius: 8px; }
.mk-panel-item { display: flex; align-items: center; gap: 20px; padding: 24px; }

/* ---- C: tiles with the percent and a bar; the five graphs in a grid, CPU across the full width. ---- */
.mk-u__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.mk-tile { padding: 24px; border-radius: 8px; justify-content: flex-start !important; }
.mk-tile__value { font-size: 32px; line-height: 40px; font-weight: 800; color: var(--v-text-darken2); margin: 8px 0 12px; }
/* Same look as a V4 v-progress-linear (6px, rounded): track gray-lighten2, fill primary. */
.mk-bar { height: 6px; border-radius: 3px; background: var(--v-gray-lighten2); overflow: hidden; }
.mk-bar span { display: block; height: 100%; min-width: 3px; border-radius: 3px; background: var(--v-primary-base); }
.mk-tile__note { font-size: 16px; line-height: 24px; color: var(--v-text-base); margin: 12px 0 0; }
.mk-tile__note b { color: var(--v-text-darken2); }
.mk-u__controls { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 16px; }
.mk-u__controls .free-tasks__filter { width: 160px; max-width: 160px; }
.mk-u__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mk-mini { padding: 20px 24px 16px; border-radius: 8px; justify-content: flex-start !important; }
.mk-mini--wide { grid-column: 1 / -1; }
.mk-mini__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-mini .mk-legend { margin: 0; min-height: 0; }
.mk-chart--small { height: 200px; }
.mk-mini--wide .mk-chart--small { height: 240px; }

/* ---- Index ---- */
.mk-ix { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.mk-ix__card { display: block; color: inherit; text-decoration: none; padding: 24px; border-radius: 8px; justify-content: flex-start !important; }
.mk-ix__card:hover .mk-ix__title { color: var(--v-primary-darken1); }
.mk-ix__title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--v-text-darken2); margin-bottom: 8px; }
.mk-ix__text { font-size: 14px; line-height: 20px; color: var(--v-text-base); margin: 0; }
.mk-ix__lead { max-width: 760px; color: var(--v-text-base); font-size: 16px; line-height: 24px; margin-bottom: 32px; }
.mk-ix__h1 { font-size: 32px; line-height: 40px; font-weight: 800; color: var(--v-text-darken2); margin: 28px 0; }
.mk-ix-hr { border: 0; border-top: 1px solid var(--v-gray-lighten2); margin: 0 0 40px; }

@media (width <= 1279.98px) {
  .mk-u__panel { grid-template-columns: minmax(0, 1fr); }
  .mk-u__tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (width <= 959.98px) {
  .mk-u__grid { grid-template-columns: minmax(0, 1fr); }
  .mk-u__controls { justify-content: space-between; }
  .mk-mini { padding: 16px; }
}
@media (width <= 600px) {
  .mk-panel-item { padding: 16px; gap: 16px; }
  .mk-tile { padding: 16px; }
}
