
.page-header {
  display: flex;
  align-items: end;
  position: sticky;
  top: 0;
  padding: 1em;
  z-index: 10;
  width: 100%;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  background-color: var(--p-surface-0);
.info {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    min-width: fit-content;
    width: 50%;
}
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart {
  min-height: fit-content;
  max-height: fit-content;
.chart-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.p-chart {
    max-height: 100%;
}
&.chart-large,
  &.chart-medium {
.chart-title {
      font-size: var(--text-base);
}
.chart-subtitle {
      font-size: var(--text-sm);
}
}
&.chart-xlarge {
    width: 100%;
.p-chart {
      height: 280px;
}
}
&.chart-large {
    width: 100%;
.p-chart {
      height: 220px;
}
}
&.chart-medium {
    width: 49%;
.p-chart {
      height: 200px;
}
}
&.chart-small {
    width: 32%;
.chart-title {
      font-size: var(--text-sm);
}
.chart-subtitle {
      font-size: var(--text-xs);
}
.p-chart {
      height: 180px;
}
}
.p-chart canvas {
    max-width: 100%;
    height: 100%;
}
}

.sp-content {
.top .right {
    min-width: 220px;
    width: 20%;
.date-selector {
      width: 20%;
      min-width: max-content;
      align-self: end;
.date-selector-slider {
        min-width: 220px;
}
}
.p-card.result {
      min-height: 100px;
      max-height: 150px;
}
.p-card.result .p-card-body {
      padding: var(--text-xs);
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: flex-end;
}
.p-card.result .p-card-title {
      font-size: 0.9rem;
      font-weight: 600;
      padding-right: 20px;
}
}
.p-panel {
    width: 100%;
}
.dt-grouped .p-datatable {
.p-datatable-tbody > tr > td:nth-child(3),
    .p-datatable-tbody > tr > td:nth-child(5),
    .p-datatable-tbody > tr > td:nth-child(8),
    .p-datatable-thead > tr:first-child th:not(:last-child),
    .p-datatable-thead > tr:last-child > th:nth-child(2),
    .p-datatable-thead > tr:last-child > th:nth-child(4),
    .p-datatable-thead > tr:last-child > th:nth-child(7) {
      border-right-width: 1px;
}
    /* .p-datatable-tbody > tr:last-child > td */
.p-datatable-thead > tr:not(:last-child) > th:not([rowspan]) {
      border-bottom-width: 0;
}
}
}

thead > tr:first-child > th[data-v-7861d5bd]:nth-child(2),
  thead > tr:last-child > th:nth-child(3)
  tbody > tr > td[data-v-7861d5bd]:nth-child(3) {
    border-right-width: 1px;
    border-right-color: var(--grid-line-dark);
}

.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  position: sticky;
  top: 0;
  padding: 1em;
  background-color: var(--p-surface-0);
  z-index: 10;
  width: 100%;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
.sec-info {
    align-items: end;
    min-width: fit-content;
    width: 50%;
}
.date-selector {
    display: flex; 
    gap: 0.5rem;
    align-items: center; 
    justify-content: end;
    min-width: fit-content;
    width: 50%;
}
}

.bp-content .top .right {
  min-width: 220px;
  width: 20%;
}
.bp-content .date-selector {
  width: 20%;
  min-width: max-content;
  align-self: end;
.date-selector-slider {
    min-width: 220px;
}
}
.bp-content .p-card.result {
  min-height: 100px;
  max-height: 150px;
}
.bp-content .p-card.result .p-card-body {
  padding: var(--text-xs);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.bp-content .p-card.result .p-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  padding-right: 20px;
}
.bp-content .p-datatable {
.p-datatable-tbody > tr > td:nth-child(4),
  .p-datatable-tbody > tr > td:nth-child(6),
  .p-datatable-tbody > tr > td:nth-child(9),
  .p-datatable-thead > tr:not(:last-child) th:not(:first-child),
  .p-datatable-thead > tr:last-child > th:nth-child(4),
  .p-datatable-thead > tr:last-child > th:nth-child(6),
  .p-datatable-thead > tr:last-child > th:nth-child(9) {
    border-right-width: 1px;
}
  /* .p-datatable-tbody > tr:last-child > td */
.p-datatable-thead > tr:not(:last-child) > th {
    border-bottom-width: 0;
}
}

.mhms-content {
  display: flex;
  flex-direction: column;
  gap: 1em;
.row {
    display: flex;
    flex-direction: row;
    gap: 1em;
.p-panel {
      flex-shrink: 1;
      flex-basis: min-content;
      flex-grow: 1;
}
.p-panel.half {
      flex-basis: calc(50% - 0.5em);
}
}
.p-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: min-content;
}
  /*
  .pi-arrow-circle-up {
    color: var(--p-green-500);
    font-weight: 900;
    margin-left: 0.25em;
  }
  .pi-arrow-circle-down {
    color: var(--p-red-500);
    font-weight: 900;
    margin-left: 0.25em;
  }
  */
}
@media screen and (max-width: 32em) {
.mhms-content {
    min-width: 400px;
.p-panel {
      width: 100%;
      max-width: 100%;
      min-width: 0;
}
.row {
      flex-wrap: wrap;
.p-panel.half {
        flex-basis: auto;
}
}
}
}

.bg-content {
  display: flex;
  flex-direction: column;
  gap: 1em;
li {
    margin-left: 1em;
}
.p-card-content {
    max-width: 100% !important;
    overflow: auto !important;
}
.row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    height: 5rem;
    max-height: max-content;
p {
      position: sticky;
      left: 0;
      width: 10rem;
      flex-shrink: 0;
      font-size: var(--text-sm);
      font-weight: 800;
      padding: 0.2rem 0.2rem 0.2rem 1rem;
      border-bottom: 1px solid var(--p-gray-300);
      background: var(--p-surface-0);
      z-index: 2;
      height: 100%;
      display: inline-flex;
      align-items: flex-end;
}
td {
      min-width: 8rem;
}
}
}

.efa-content .date-selector {
  width: 20%;
  min-width: max-content;
  align-self: end;
.date-selector-slider {
    min-width: 220px;
}
}
.efa-content .p-card.result {
  min-height: 100px;
  max-height: 150px;
.p-card-body {
    padding: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}
.p-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    padding-right: 20px;
}
}
.efa-content .p-slider {
  width: 90%;
  align-self: center;
&.p-slider-horizontal .p-slider-handle {
    margin-top: -0.5rem;
    margin-left: -0.5rem;
}
.p-slider-handle {
    height: 1rem;
    width: 1rem;
}
}

.p-datepicker.quarter-selector .p-monthpicker {
  display: flex;
.p-monthpicker-month:nth-child(1),
  .p-monthpicker-month:nth-child(2),
  .p-monthpicker-month:nth-child(4),
  .p-monthpicker-month:nth-child(5),
  .p-monthpicker-month:nth-child(7),
  .p-monthpicker-month:nth-child(8),
  .p-monthpicker-month:nth-child(10),
  .p-monthpicker-month:nth-child(11) {
    display: none !important;
}
}
.eft-content,
.eft-content .charts {
  width: 100%;
}
.eft-content .charts .row:first-child .p-card.chart {
  height: 200px;
  min-height: fit-content;
  width: 100%;
.p-chart {
    height: 150px;
}
}
.eft-content .charts .row:not(:first-child) .p-card.chart {
  height: 150px;
  min-height: fit-content;
  width: 32%;
.p-chart {
    height: 100px;
}
}
.eft-content .p-card.chart .p-card-content {
  padding: 0;
}
.eft-content .p-card.chart .p-card-title {
  font-size: 1rem;
}
.eft-content .p-card.chart .p-chart {
  max-height: 100%;
}
.eft-content .p-card.chart .p-chart canvas {
  max-width: 100%;
  height: 100%;
}
.eft-content .p-card.result {
  min-height: 100px;
  max-height: 150px;
}
.eft-content .p-card.result .p-card-body {
  padding: 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.eft-content .p-card.result .p-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  padding-right: 20px;
}
.eft-content .p-slider {
  width: 90%;
  align-self: center;
}
.eft-content .p-slider.p-slider-horizontal .p-slider-handle {
  margin-top: -0.5rem;
  margin-left: -0.5rem;
}
.eft-content .p-slider .p-slider-handle {
  height: 1rem;
  width: 1rem;
}
.eft-content .legend {
  gap: 5%;
}
.eft-content .p-datatable-column-header-content {
  min-width: 5rem;
  white-space: break-spaces;
}

.wh-content {
.p-datatable-column-header-content {
    min-width: 5rem;
    white-space: break-spaces;
}
}

.tl-content {
.p-card {
    width: max-content;
.p-card-content {
      width: max-content;
.row {
        display: flex;
        gap: 2rem;
.field {
          width: 350px;
          text-align: right;
}
.field:has(span) {
          display: flex;
          justify-content: space-between;
}
}
}
}
}

.rd-content {
.p-datatable-column-header-content {
    min-width: 5rem;
    white-space: break-spaces;
}
}

.mct-content {
.p-datatable-column-header-content {
    min-width: 5rem;
    white-space: break-spaces;
}
}

@keyframes p-progress-spinner-color {
0% {
    stroke: var(--p-primary-900);
}
50% {
    stroke: var(--p-primary-500);
}
100% {
    stroke: var(--p-primary-100);
}
}

.p-confirm-dialog p {
  margin-bottom: 0.5em;
}

.home {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
& > div {
    height: fit-content;
    display: flex;
    align-items: start;
    gap: 1rem;
    width: 100%;
.p-button {
      width: fit-content;
.p-button-label {
        max-width: fit-content;
}
}
.p-card {
      width: 45%;
.p-card-title .pi {
        margin-right: 0.5rem;
        font-size: var(--text-2xl);
        font-weight: 800;
}
.p-card-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
ol {
          padding-left: 1.5rem;
}
.p-button {
.p-button-label {
            font-size: var(--text-lg);
}
.pi {
            font-size: var(--text-2xl);
}
.p-button-icon-left {
            margin-right: 1rem;
}
.p-button-icon-right {
            margin-left: 1rem;
}
}
.p-message {
.p-message-wrapper {
            padding: 0.65rem;
}
.p-message-text {
            font-weight: 400;
}
.p-icon:not(.p-message-close-icon) {
            width: 1.25rem;
            height: 1.25rem;
}
}
}
.p-card-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
}
}
}
}
