/*整體webpage 的設置*/
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    user-select: none;
    background-color: #ffffff;
    color: #000000;
    color-scheme: light;
}
.clickable {
    cursor: pointer; /* 将鼠标样式改为手形指针 */
}
/*navigation bar 的設置*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

    /*navigation bar 內items 的設置*/
    .navbar img.logo {
        width: 150px;
        height: 30px;
    }
    
    .navbar div.user-info {
        display: flex;
        align-items: center;
    }
    .navbar div.user-info img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 10px;
    }
    .navbar div.user-info span {
        margin-right: 20px;
        font-size: 13px;
    }

    /*navigation bar 按鈕的設置*/
    .navbar .button {
        padding: 5px 10px;
        background-color:rgb(60, 166, 170);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-right:5px;
        font-size: 13px;
    }
    .navbar .button:hover {
        background-color: rgb(73, 200, 204);
    }

    .button {
        padding: 5px 10px;
        background-color:rgb(60, 166, 170);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-left: 10px;  
        margin-top: 5px;    
        margin-bottom: 5px;     
    }
    
    .button:hover {
        background-color: rgb(73, 200, 204);
    }

/*datetimeselector 的設置*/
.datetimeselector {
    display: none; /* 默认隐藏 */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #555;
    padding: 20px;
    background: white;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 80%;
    text-align: center;
  }

  /* 直接喺版面（唔係 pop up）*/
  .datetimeselector.inline-datetime {
    display: block;
    position: static;
    transform: none;
    width: auto;
    border: 1px solid #ccc;
    box-shadow: none;
    padding: 8px 10px;
    margin: 8px 0;
    text-align: left;
  }
  .datetimeselector.inline-datetime .button { margin-left: 4px; }
  
    .datetimeselector .responsive {
        display: block;
    } 
    .datetimeselector .button {
        padding: 5px 10px;
        background-color:rgb(60, 166, 170);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-left: 10px;  
        margin-top: 5px;    
        margin-bottom: 5px;     
    }
    .datetimeselector #SelectedHour{
        padding: 4px 10px;
        margin-top: 5px;
        margin-bottom: 5px; 
        margin-left: 5px; 
    }

    .datetimeselector #solarDate{
        padding: 3px 10px;
        margin-top: 5px;
        margin-bottom: 5px; 
        margin-left: 5px; 
    }


      .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px) grayscale(50%);
        z-index: 1;
      }

/*datetimeselector 的設置*/

/* Matrix 的設置 */
table, th, td {
    border: 0;
    border-collapse: separate;
    border-spacing: 30px; /* 或者您需要的任何值 */
    margin-left: auto;
    margin-right: auto;
    width: 150px;
    height: 100px;

}
    th, td {
        padding: 5px; /* 将所有方向的内边距设置为5px */
        margin: 5px; /* 将所有方向的外边距设置为10px */
        border: 1px solid black;
    }


/* Small matrix within matrix 的設置 */
.nested-table {
    width: 180px; /* 嵌套表格占满整个父单元格 */
    height: 100px; 
    border-spacing: 0; /* 或者您需要的任何值 */
    margin: 0; 
    margin-left: auto;
    margin-right: auto;
    border: none; /* 嵌套表格无边框 */
}


    .nested-table th, .nested-table td {
        border: none; /* 嵌套表格无边框 */
        text-align: center; /* 文本居中 */
        font-size: 18px; /* 字体大小 */
        width: 100px; /* 每个单元格的宽度 */
        height: auto; /* 或設置一個較小的固定高度 */
        padding: 0;
        margin: 0; 
        vertical-align: top;
    }
    .nested-table th {
        border: none; /* 嵌套表格无边框 */
    }

    .nested-table td p {
        margin: 0px;
    }

.devicestatus{
    font-size: 7px;
    text-align: right;
}  

.redText {
    color: red;
    font-size: 12px;  /* 或您希望的任何大小 */
    font-weight: bold;  /* 添加加粗 */
}

#Bazidate{
    font-size: 10px;
    margin-left: 10px;
}

#Solardate{
    display: none;
}

.pctitle{
    display: none;
}

.mobiletitle{
    display: block;
    font-weight: bold;  /* 添加加粗 */
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
}



.Recordselector {
    display: none; /* 默认隐藏 */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #555;
    padding: 20px;
    background: white;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 40%;
    text-align: center;
  }

    .Recordselector .button {
        padding: 5px 10px;
        background-color:rgb(60, 166, 170);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin-left: 10px;  
        margin-top: 5px;    
        margin-bottom: 5px;     
    }
    
    .Recordselector #QimenID{
        width: 90%;
    }

.overlayforrecord {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px) grayscale(50%);
    z-index: 1;
  }

  
.overlayfordetailspopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px) grayscale(50%);
    z-index: 1;
  }
  .Detailspopup {
    display: none; /* 默认隐藏 */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #555;
    padding: 20px;
    background: white;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 80%;
    text-align: center;
    max-height: 80vh; /* 限制弹窗的最大高度为视口高度的80% */
    overflow-y: auto; /* 如果内容超出高度，启用垂直滚动条 */
  }

  .Detailspopup .detailscontent{
    text-align: left;
  }
  
  
#personalinfo-panel {
    background-color: #f8f9fa;
    border: 1px solid #e1e4e8;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

#personalinfo-panel .inputbox {
    margin-bottom: 15px;
}

#personalinfo-panel .inputbox label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#personalinfo-panel .inputbox input[type="text"], 
#personalinfo-panel .inputbox select {
    width: 96%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


#Comment-panel,#Comment-panel2 {
    background-color: #f8f9fa;
    border: 1px solid #e1e4e8;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

#Comment-panel .inputbox ,#Comment-panel2 .inputbox{
    margin-bottom: 15px;
}

#Comment-panel .inputbox label ,#Comment-panel2 .inputbox label{
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#Comment-panel .inputbox input[type="text"], 
#Comment-panel .inputbox select,
#Comment-panel2 .inputbox input[type="text"], 
#Comment-panel2 .inputbox select {
    width: 96%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#Comment,#AIGuide {
    width: 100%;  /* 设置宽度为父容器的 100% */
    max-width: 1000px; /* 最大宽度为 600px */
    height: 30%;
    min-height: 300px; /* 最小宽度为 300px */
    margin-bottom: 15px;
}


    .overlayfory2ypopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px) grayscale(50%);
    z-index: 1;
  }
  .y2ypopup {
    display: none; 
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #555;
    padding: 20px;
    background: white;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 80%;/* 默认隐藏 
    text-align: center;*/
    max-height: 80vh; /* 限制弹窗的最大高度为视口高度的80% */
    overflow-y: auto; /* 如果内容超出高度，启用垂直滚动条 */
  }


   /* 限制樣式作用範圍 */
    .y2ypopup {
      font-family: Arial, sans-serif;
      padding: 20px;
    }

    .y2ypopup .row {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      /*flex-wrap: wrap;  窄屏時允許內容換行 */
      padding-bottom: 10px; /* 增加內部間距 */
      border-bottom: 1px solid #ccc; /* 添加底部邊框 */
    }
    .y2ypopup .row:last-child {
      border-bottom: none; /* 最後一行不需要邊框 */
    }

    .y2ypopup .row label {
      margin-right: 10px;
      white-space: nowrap; /* 防止文字折行 */
    }

    .y2ypopup .row input[type="text"] {
      margin-right: 10px;
      padding: 5px 10px;
      flex-grow: 1; /* 自適應寬度 */
      min-width: 150px; /* 最小寬度 */
    }

    .y2ypopup .row select {
      margin-right: 10px;
      flex-grow: 1; /* 下拉選單可以自適應寬度 */
    }

    /* 確保 checkbox 和 label 在同一行 */
    .y2ypopup .checkbox-group {
      display: flex;
      align-items: center;
      margin-left: 10px; /* 與前面元素保持間距 */
    }

    .y2ypopup .checkbox-group input[type="checkbox"] {
      margin-right: 5px; /* 與 label 保持間距 */
    }

    .y2ypopup button {
      margin-right: 10px;
      padding: 10px 15px;
      font-size: 14px;
      cursor: pointer;
    }

    .y2ypopup #content {
      margin-bottom: 20px;
    }



/* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */  

@media (max-width: 333px) {
    /* For Vivo x fold3 */

    .navbar {
        /*調節 navigation bar padding*/
        padding-left: 5px;
        padding-right: 5px;
    }
        .navbar img.logo {
            /* 把logo 調細一點 及設置 左margin*/
            width: 80px;
            height: 20px;
            margin-left: 1px;
        }

        .navbar div.user-info img {
            /* 把user info image 調細一點 及設置 右margin */
            width: 20px;
            height: 20px;
            margin-right: 5px;
        }
        .navbar div.user-info span {
            /* 把user info 調細一點 及設置 右margin */
            margin-right: 10px;
            font-size: 10px;
        }
        .navbar .button{
            /*調節 按鈕 較小 並增加右margin*/
            font-size: 9px;
            margin-right: 10px;
        }
    
    
    table, th, td {
        border-spacing: 5px; /* 或者您需要的任何值 */
        width: 90%;
        height: auto;
    
    }
    
    
        .Matrixoverview_tr{
        width: 100%;
        }
    
        .Matrixoverview_td{
        width: 30%;
        }
    
        .Matrixoverview{
        width: 100%;
        }
    
    .nested-table {
        width: 100%; /* 嵌套表格占满整个父单元格 */
        height: 100%;    
    }
    
        .nested-table tr{
        width:100%;
        }
    
        .nested-table td{
        width:25%;
        }
    
        .nested-table th, .nested-table td {
            font-size: 10px; /* 字体大小 */
        }
    
    
    
    .datetimeselector{
        width: 80%;
        text-align: center;
    }
    
        .datetimeselector #SelectedHour{
            padding: 2px 5px;
            margin-top: 5px;
            margin-bottom: 5px; 
            margin-left: 5px; 
    
        }
    
        .datetimeselector #solarDate{
            padding: 3px 7px;
            margin-top: 5px;
            margin-bottom: 5px; 
            margin-left: 5px; 
    
        }
    
    .Recordselector{
        width: 80%;
        text-align: center;
    }

        .Recordselector #QimenID{
            width: 90%;
        }

    .button {
        padding: 2px 5px;
        font-size: 10px;
        margin-left: 3px; 
    }

    #personalinfo-panel label,
    #personalinfo-panel .inputbox input[type="text"], 
    #personalinfo-panel .inputbox select{
        font-size: 10px;
    }

    #Comment {
        min-height: 150px; /* 最小宽度为 300px */
        margin-bottom: 10px;
        font-size: 10px; 
    }

    .Detailspopup {
        font-size: 10px;
    }
    
    
}


@media ((max-width: 400px) and (min-width: 333px) ) {
        /* Iphone11 pro max */
table, th, td {
    border-spacing: 10px; /* 或者您需要的任何值 */
    width: 90%;
    height: auto;

}


    .Matrixoverview_tr{
    width: 100%;
    }

    .Matrixoverview_td{
    width: 30%;
    }

    .Matrixoverview{
    width: 100%;
    }

.nested-table {
    width: 100%; /* 嵌套表格占满整个父单元格 */
    height: 100%;    
}
    
    .nested-table th, .nested-table td {
        font-size: 12px; /* 字体大小 */
    }

    .nested-table tr{
    width:100%;
    }

    .nested-table td{
    width:25%;
    }

.button {
    padding: 2px 5px;
    font-size: 12px;
    margin-left: 3px; 
}


.datetimeselector{
    width: 80%;
    text-align: center;
}

    .datetimeselector #SelectedHour{
        padding: 2px 5px;
        margin-top: 5px;
        margin-bottom: 5px; 
        margin-left: 5px; 

    }

    .datetimeselector #solarDate{
        padding: 3px 7px;
        margin-top: 5px;
        margin-bottom: 5px; 
        margin-left: 5px; 

    }

.Recordselector{
    width: 80%;
    text-align: center;
}

    .Recordselector #QimenID{
        width: 90%;
    }

#Comment {
    min-height: 150px; /* 最小宽度为 300px */
}

.Detailspopup {
    font-size: 12px;
}
}

/* 平板解析度樣式，當螢幕寬度在600px至1024px之間 */
@media ((max-width: 700px) and (min-width: 400px) ) {
        /* Matrix 的mobile設置 */
table, th, td {

    border-spacing: 10px; /* 或者您需要的任何值 */
    width: 90%;
    height: auto;

}

    .Matrixoverview_tr{
    width: 100%;
    }

    .Matrixoverview_td{
    width: 30%;
    }

    .Matrixoverview{
    width: 100%;
    }



.nested-table {
    width: 100%; /* 嵌套表格占满整个父单元格 */
    height: 100%;    
}

    .nested-table tr{
    width:100%;
    }

    .nested-table td{
    width:25%;
    }

.nested-table th, .nested-table td {
    font-size: 14px; /* 字体大小 */
}


.datetimeselector{
    width: 80%;
    text-align: center;
}
.button {
    padding: 2px 5px;
    font-size: 10px;
    margin-left: 3px; 
}
.Recordselector{
    width: 80%;
    text-align: center;
}
    .Recordselector #QimenID{
        width: 90%;
    }

#personalinfo-panel label,
#personalinfo-panel .inputbox input[type="text"], 
#personalinfo-panel .inputbox select{
    font-size: 10px;
}
  
#Comment {
    min-height: 150px; /* 最小宽度为 300px */
    font-size: 14px; 
}

.Detailspopup {
    font-size: 14px;
}
}


/* 手機窄屏響應式設計 */
    @media (max-width: 600px) {
      .y2ypopup .row {
        flex-direction: column; /* 垂直堆疊 */
        align-items: flex-start; /* 左對齊 */
      }

      .y2ypopup .row label {
        margin-bottom: 5px; /* 與其他元素間距 */
      }

      .y2ypopup .row input[type="text"],
      .y2ypopup .row select {
        margin-bottom: 10px; /* 元素之間的間距 */
        width: calc(100% - 40px); /* 輸入框左右各留白 20px */
        max-width: 300px; /* 限制最大寬度，避免過寬 */
        box-sizing: border-box; /* 包含內邊距和邊框的寬度計算 */
      }

      .y2ypopup .checkbox-group {
        margin-left: 0; /* 移除多餘的左邊距 */
        margin-top: 5px; /* 與上方元素保持間距 */
      }
    }

/* 電腦解析度樣式，當螢幕寬度超過1024px */
@media (min-width: 700px) {
     
    .navbar img.logo {
        width: 180px;
        height: 36px;
    }

    .navbar div.user-info span {
        margin-right: 40px; 
        font-size: 16px;
    }

    /*navigation bar 按鈕的設置*/
    .navbar .button {
        padding: 6px 20px;
        margin-right:30px;
        font-size: 16px;
    }


/*datetimeselector 的設置*/
.datetimeselector {
    padding: 20px;
    background-color: #f4f4f4;
    text-align: left;
}

    .datetimeselector .responsive {
        display: none;
    } 

    .datetimeselector .label {
        margin-bottom: 10px;
    } 

/* Matrix 的設置 */
.datetimeselector{
    width: 20%;
    text-align: center;
}

.Recordselector {
    padding: 20px;
    background-color: #f4f4f4;
    width: 20%;
    text-align: center;
}
    .Recordselector .label {
        margin-bottom: 10px;
    } 

/* Matrix 的設置 */

#Solardate{
    display: block;
    margin-left: 10px;
}


#Bazidate{
    font-size: 16px;
}

.redText {
    font-size: 18px;  /* 或您希望的任何大小 */
}
.mobiletitle{
    display: none;
}
.pctitle{
    display: block;
}

#personalinfo-panel label,
#personalinfo-panel .inputbox input[type="text"], 
#personalinfo-panel .inputbox select{
    font-size: 16px;
}

}
    

