/* BEGIN STYLESHEET */
/* 暴風BESS畫面Header按鈕 無按下效果 僅顯示*/
.psc-buttonCursorDefault:hover{
	cursor:default;
	box-shadow: none !important
}

/* 暴風BESS畫面電壓,溫度超過時顯示紅框*/
.psc-borderColorRed {
	border-Color: red;
	border-Style: solid;
}

.ReactVirtualized__Grid__innerScrollContainer {
  height: 100%; /* 设置高度为100%以避免频繁调整高度 */
  max-height: 100%;
  overflow-y: auto;
}

.alarmTable .alarmTableBodyRow {
  position: relative; /* 避免使用 !important */
  top: 0; /* 使用明确的值 */
  height: auto;
}

.alarmTable .content > div {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.psc-home-form-grid {
    display: grid;
    overflow: auto;
    gap: 10px;
    padding: 10px;
}

.psc-jp-home-form-grid {
    display: grid;
    overflow: auto;
    gap: 10px;
    padding: 10px;
}

.psc-tooltipShow:hover {
  background-color: bisque;
}


/* 移動設備佈局（< 768px） */
@media (max-width: 767px) 
{
    .psc-home-form-grid {
        grid-template-areas: 
            "site2_Info" "site2_ContainerInfo" "site2_Trend" "site2_DotChart" "site2_KWH"
            "site4_Info" "site4_ContainerInfo" "site4_Trend" "site4_DotChart" "site4_KWH"
            "site9_Info" "site9_ContainerInfo" "site9_Trend" "site9_DotChart" "site9_KWH"
            "site5_Info" "site5_ContainerInfo" "site5_Trend" "site5_DotChart" "site5_KWH"
            "site8_Info" "site8_ContainerInfo" "site8_Trend" "site8_Weather" "site8_KWH"
            "site6_Info" "site6_ContainerInfo" "site6_Trend" "site6_DotChart" "site6_KWH"
            "site10_Info" "site10_ContainerInfo" "site10_Trend" "site10_DotChart" "site10_KWH";
        grid-template-columns: 1fr;
        grid-template-rows: repeat(36, minmax(280px, auto));}

    .psc-jp-home-form-grid {
        grid-template-areas: 
            "site50_Info" "site50_ContainerInfo" "site50_Trend" "site50_DotChart" "site50_KWH"
            "site51_Info" "site51_ContainerInfo" "site51_Trend" "site51_DotChart" "site51_KWH";
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, minmax(280px, auto));}
}

@media (min-width: 767px) and (max-width: 1024px) 
{
    .psc-home-form-grid {
        grid-template-areas: 
            "site2_Info site2_Info site2_ContainerInfo site2_ContainerInfo site2_Trend site2_Trend"
            ". site2_DotChart site2_DotChart site2_KWH site2_KWH ."
            "site4_Info site4_Info site4_ContainerInfo site4_ContainerInfo site4_Trend site4_Trend"
            ". site4_DotChart site4_DotChart site4_KWH site4_KWH ."
            "site9_Info site9_Info site9_ContainerInfo site9_ContainerInfo site9_Trend site9_Trend"
            ". site9_DotChart site9_DotChart site9_KWH site9_KWH ."
            "site5_Info site5_Info site5_ContainerInfo site5_ContainerInfo site5_Trend site5_Trend"
            ". site5_DotChart site5_DotChart site5_KWH site5_KWH ."
            "site8_Info site8_Info site8_ContainerInfo site8_ContainerInfo site8_Trend site8_Trend"
            ". site8_Weather site8_Weather site8_KWH site8_KWH ."
            "site6_Info site6_Info site6_ContainerInfo site6_ContainerInfo site6_Trend site6_Trend"
            ". site6_DotChart site6_DotChart site6_KWH site6_KWH ."
            "site10_Info site10_Info site10_ContainerInfo site10_ContainerInfo site10_Trend site10_Trend"
            ". site10_DotChart site10_DotChart site10_KWH site10_KWH .";
        grid-template-columns: 1fr repeat(4, calc((100% - 4 * 12)/ 3 / 2)) 1fr;
        grid-template-rows: repeat(14, minmax(280px, auto));
        gap: 12px;
    }

    .psc-jp-home-form-grid {
        grid-template-areas: 
            "site50_Info site50_Info site50_ContainerInfo site50_ContainerInfo site50_Trend site50_Trend"
            ". site50_DotChart site50_DotChart site50_KWH site50_KWH ."
            "site51_Info site51_Info site51_ContainerInfo site51_ContainerInfo site51_Trend site51_Trend"
            ". site51_DotChart site51_DotChart site51_KWH site51_KWH .";
        grid-template-columns: 1fr repeat(4, calc((100% - 4 * 12)/ 3 / 2)) 1fr;
        grid-template-rows: repeat(4, minmax(280px, auto));
        gap: 12px;
    }
}

/* 桌面設備佈局（≥ 1024px） */
@media (min-width: 1024px) 
{
    .psc-home-form-grid {
        grid-template-areas: 
            "site2_Info site2_ContainerInfo site2_Trend site2_DotChart site2_KWH"
            "site4_Info site4_ContainerInfo site4_Trend site4_DotChart site4_KWH"
            "site9_Info site9_ContainerInfo site9_Trend site9_DotChart site9_KWH"
            "site5_Info site5_ContainerInfo site5_Trend site5_DotChart site5_KWH"
            "site8_Info site8_ContainerInfo site8_Trend site8_Weather site8_KWH"
            "site6_Info site6_ContainerInfo site6_Trend site6_DotChart site6_KWH"
            "site10_Info site10_ContainerInfo site10_Trend site10_DotChart site10_KWH";
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(7, minmax(280px, auto));
        gap: 15px;
    }

	.psc-jp-home-form-grid {
        grid-template-areas: 
            "site50_Info site50_ContainerInfo site50_Trend site50_DotChart site50_KWH"
            "site51_Info site51_ContainerInfo site51_Trend site51_DotChart site51_KWH"
            ". . . . .";
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(3, minmax(280px, auto));
        gap: 15px;
    }
}

.psc-grid-item {
  border-radius: 10px;
  box-shadow: 0 5px 5px #bdc3c7;
}

/* 數值改變時,像powin有背景顏色更新提示 */
.psc-colorOnChange0 {
  background-color: #D0FAEE;
  animation: changeColor0 1.5s forwards;
}


@keyframes changeColor0 {
  from {
    background-color: #D0FAEE;
  }
  to {
    background-color: transparent;
  }
}

.psc-colorOnChange1 {
  background-color: #D0FAEE;
  animation: changeColor1 1.5s forwards;
}


@keyframes changeColor1 {
  from {
    background-color: #D0FAEE;
  }
  to {
    background-color: #DAE9F8;
  }
}

.psc-colorOnChange2 {
  background-color: #D0FAEE;
  animation: changeColor2 1.5s forwards;
}


@keyframes changeColor2 {
  from {
    background-color: #D0FAEE;
  }
  to {
    background-color: #F2F2F2;
  }
}


.psc-country-switch-btn {
    /* 基本樣式 */
    padding: 10px 20px;
    border: 1px solid #2d5f9e;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    min-width: 100px;
}

/* 非按下狀態 (enabled & normal) */
.psc-country-switch-btn {
    background: linear-gradient(to bottom, #4a90e2, #357abd);
}

.psc-country-switch-btn:hover {
    background: linear-gradient(to bottom, #5a9fed, #4688d3);
}

.psc-country-switch-btn:active {
    /* 按下狀態 (enabled & active) */
    background: linear-gradient(to bottom, #357abd, #2a6099);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    transform: translateY(1px);
}

/* 禁用狀態 (disabled) */
.psc-country-switch-btn:disabled,
.psc-country-switch-btn.disabled {
    background: linear-gradient(to bottom, #b0b0b0, #909090);
    border-color: #808080;
    color: #f0f0f0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}

/* 按下狀態的獨立類別 (用於程式控制) */
.psc-country-switch-btn.pressed {
    background: linear-gradient(to bottom, #357abd, #2a6099);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    border-color: #1a4a7a;
}

/* 確保禁用狀態不受其他狀態影響 */
.psc-country-switch-btn:disabled:hover,
.psc-country-switch-btn.disabled:hover {
    background: linear-gradient(to bottom, #b0b0b0, #909090);
    transform: none;
}

.psc-country-switch-btn:disabled:active,
.psc-country-switch-btn.disabled:active {
    background: linear-gradient(to bottom, #b0b0b0, #909090);
    box-shadow: none;
    transform: none;
}
/* BEGIN STYLE CLASSES */
.psc-BackgroundColors\/Gradient_BlueToLightBlue {
  background-image: linear-gradient(to bottom right, var(--SM-Blue) 30% , var(--SM-LightBlue));
}

.psc-BackgroundColors\/Grey_40procent {
  background-color: var(--SM-DarkGrey-40);
}

.psc-BackgroundColors\/LightBlue_40procent {
  background-color: var(--SM-LightBlue-40);
}

.psc-Fonts\/HeaderOrange {
  color: var(--SM-LightOrange);
  text-shadow: #444444 0px 0px 5px;
}

.psc-Form\/Error {
  color: #e83a56;
  font-size: 16px;
  fill: #e83a56;
}

.psc-Form\/Field {
  background-color: var(--neutral-10);
  border-color: var(--neutral-30);
  border-style: solid;
  border-width: 1px;
  border-radius: 4px;
  color: var(--neutral-100);
  font-size: 16px;
}

.psc-Form\/Field_Error {
  background-color: var(--neutral-10);
  border-color: #e83a56;
  border-style: solid;
  border-width: 1px;
  border-radius: 4px;
  color: var(--neutral-100);
  font-size: 16px;
}

.psc-Header\/DropDown {
  background-color: var(--neutral-20);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  color: var(--neutral-100);
  margin-bottom: 10px;
  margin-top: 10px;
}

.psc-Header\/Header {
  background-color: #003E69;
  border-bottom-color: var(--neutral-40);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  color: #E7F5FF;
  font-size: 14px;
  line-height: 17px;
  fill: #FFFFFF;
}

.psc-Header\/Icon {
  fill: #FFFFFF;
}

.psc-Header\/Title {
  color: #FFFFFF;
  font-size: 24px;
  font-weight: normal;
  line-height: 19px;
  fill: #FFFFFF;
}

.psc-Menu\/All_Header {
  background-color: var(--neutral-80);
  color: var(--neutral-10);
  font-size: 14px;
  font-weight: bold;
  line-height: 17px;
  text-transform: none;
}

.psc-Menu\/Item {
  background-color: var(--neutral-20);
  border-bottom-style: none;
  border-top-color: var(--neutral-60);
  border-top-style: solid;
  border-top-width: 1px;
  color: var(--neutral-80);
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
}
.psc-Menu\/Item:last-child {
  border-bottom-color: var(--neutral-60);
  border-bottom-style: solid;
  border-bottom-width: 1px;
}
.psc-Menu\/Item:hover {
  background-color: var(--callToActionHighlight);
}

.psc-Menu\/Menu {
  background-color: var(--neutral-30);
}

.psc-Page\/Alarm\/Alarm {
  border-bottom-style: none;
  border-left-color: var(--neutral-40);
  border-left-style: solid;
  border-left-width: 1px;
  border-right-color: var(--neutral-40);
  border-right-style: solid;
  border-right-width: 1px;
  border-top-style: none;
}

.psc-Page\/Alarm\/Page {
  background-color: var(--neutral-20);
}

.psc-Page\/Bold {
  font-weight: bold;
}

.psc-Page\/Margins {
  margin-left: 12px;
  margin-right: 12px;
}

.psc-Page\/Page {
  border-left-color: var(--neutral-60);
  border-left-style: solid;
  border-left-width: 1px;
  font-size: 14px;
  line-height: 20px;
}

.psc-Page\/Text {
  font-size: 14px;
  line-height: 20px;
}

.psc-Shadows\/depth-12 {
  box-shadow: 0 12px 17px 2px rgba(0,0,0,0.14), 0 5px 22px 4px rgba(0,0,0,0.12), 0 7px 8px -4px rgba(0,0,0,0.20);
}

.psc-Title\/Icon {
  fill: var(--neutral-90);
}

.psc-Title\/Text {
  color: var(--neutral-90);
  font-size: 16px;
  font-weight: bold;
  line-height: 19px;
  margin-left: 6px;
  fill: var(--neutral-90);
}

.psc-Title\/Title {
  background-color: var(--neutral-30);
  border-bottom-color: var(--neutral-60);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-top-color: var(--neutral-60);
  border-top-style: solid;
  border-top-width: 1px;
}

.psc-Tooltip {
  background-color: #FFFFFF;
  color: #000000;
  opacity: 0;
  text-align: center;
}
.psc-Tooltip:hover {
  opacity: 0.90;
}

@keyframes psc-Header\/Alarm_Active-anim {
  0% {
    color: #E7F5FF;
    fill: #E7F5FF;
  }
  100% {
    color: #FF2E2E;
    fill: #FF2E2E;
  }
}
.psc-Header\/Alarm_Active {
  animation-name: psc-Header\/Alarm_Active-anim;
  animation-delay: 0s;
  animation-direction: alternate;
  animation-duration: 2s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
