body            { font-family: 'Helvetica','Arial','LiHei Pro','黑體-繁','微軟正黑體', sans-serif;}
a, h1, h2       { color: #377ba8; }
h1, h2          { margin: 0; }
h1              { border-bottom: 2px solid #eee; }
h2              { font-size: 1.2em; }
hr		{ clear:both;}
table.dataframe, .dataframe th, .dataframe td {
  border: none;
  border-bottom: 1px solid #C8C8C8;
  border-collapse: collapse;
  text-align:left;
  padding: 10px;
  margin-bottom: 40px;
  font-size: 0.9em;
}

.container {
  display:flex;
  align-items:center;
  justify-content:center;
  width:600px;
  height:600px;
  background-color:#eee;
}
tr:nth-child(odd)		{ background-color:#eee; }
tr:nth-child(even)	{ background-color:#fff; }

tr:hover            { background-color: #ffff99;}

.ssh_left,.ssh_center,.ssh_right{
  float:left;
  margin-left:5px;
}
.ssh_center {
    margin-top: 10px;
    margin: 10px;
    display: flex;
    flex-wrap: wrap; /* 不允许换行 */
    flex-direction: row; /* 垂直排列 */
    /* justify-content: center; */
    align-items: center;
    width: 81px;
    white-space: nowrap;

}
.ssh_center input[type="radio"],
.ssh_center label {
     white-space: nowrap;
     /*display: block; */
}
.ssh_center input[type="radio"] {
    margin-bottom: 5px;
}
.ssh_center label {
    font-size: 18px;
    margin-left: 5px; /* 调整label与radio之间的距离 */
}


/* 重置 header 相關所有樣式 */
.header {
    background-color: #34495e !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-left: 0 !important;
    position: fixed !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1001 !important;
    padding: 15px 30px 15px 30px !important;
}

.header > div {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 20px !important;
}

.header .stage-text {
    font-size: 28px;
    color: white;
    white-space: nowrap !important;
}

.header .fw-upload-link {
    font-size: 18px;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    white-space: nowrap !important;
    display: inline-flex !important;
}

.header .logout-link {
    font-size: 18px;
    padding: 8px 20px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    white-space: nowrap !important;
    margin-left: 300px !important;
    display: inline-flex !important;
}

.function-title {
    font-size: 28px;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #2c3e50;
    font-weight: 500;
    border-left: 4px solid #34495e;  /* 改用較深的灰藍色 */
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 重置基本樣式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 側邊欄樣式修復 */
.sidebar {
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    background-color: #34495e;
    padding-top: 80px;
    overflow-y: auto;
    z-index: 1000;
}

.menu-item {
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 16px;  /* 添加字體大小 */
    font-family: 'Roboto', 'Open Sans', sans-serif;  /* 確保字體 */
}

/* 主要內容區域 */
.main-content {
    margin-left: 250px;
    padding: 130px 20px 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background-color: #fff;
    width: calc(100% - 250px);
    box-sizing: border-box;
}

/* 確保表單正確顯示 */
.main-content form {
    width: 100%;
    position: relative;
    display: block;
}

/* 功能區塊樣式 */
.main-content > form > div[id] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 確保所有功能區塊在選中時正確顯示 */
#GET_SN_INFO,
#GET_SUPPORT_TICKET,
#BUILD_SSH_TUNNEL,
#DISABLED_TFA,
#CHECK_MAC_SN_VALID,
#CREATE_LICENSE,
#GET_LICENSE_INFO,
#EXTEND_FREE_LICENSE,
#SET_CHT,
#CHECK_OFFLINE_DEVICE,
#BIND_SN_MAC,
#FREEZE_FIRMWARE,
#FW_UPLOAD,
#CHECK_SWITCH_LOG,
#GET_ORG_DEVICE_INFO {
    display: none;
}

/* 當功能區塊被選中時顯示 */
#GET_SN_INFO.active,
#GET_SUPPORT_TICKET.active,
#BUILD_SSH_TUNNEL.active,
#DISABLED_TFA.active,
#CHECK_MAC_SN_VALID.active,
#CREATE_LICENSE.active,
#GET_LICENSE_INFO.active,
#EXTEND_FREE_LICENSE.active,
#SET_CHT.active,
#CHECK_OFFLINE_DEVICE.active,
#BIND_SN_MAC.active,
#FREEZE_FIRMWARE.active,
#FW_UPLOAD.active,
#CHECK_SWITCH_LOG.active,
#GET_ORG_DEVICE_INFO.active {
    display: block !important;
}


