#header {
  background-color: #f1f1f1;
  text-align: center;
  padding: 5px 0px;
}

body, html {
  font-family: Arial, sans-serif;
  height: 100vh;
  margin: 0;
}

.column {
  float: left;
  width: 50%;
  padding: 10px 20px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  overflow: auto; /* Thay 'scroll' bằng 'auto' để chỉ hiện thanh cuộn khi cần */
  height: 65vh;
}

.menu {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.menu button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
  width: 25%;
}

.plotButton {
  width: 120px;
}

.menu button:hover {
  background-color: #ddd;
}

.menu button.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
  padding: 0px;
  border: none;
  font-size: 17px;
}

#footer {
  background-color: #f1f1f1;
  padding: 0px;
  text-align: center;
  width: 100%;
  display: block;
}

input { 
  width: 100%; 
  height: 100%;   
  text-align: center;
  box-sizing: border-box;
}

input[type="button"] {
  width: 50px;
}

/* Đã sửa cú pháp phân tách dấu phẩy */
table, th, td {
  border: 0;
  border-collapse: collapse;
  font-size: 10px;
  text-align: center;
}

/* ==========================================================================
   MOBILE PORTRAIT (DỒN 1 CỘT)
   ========================================================================== */
@media screen and (max-width: 768px) {
  body, html {
    height: auto !important;
    overflow-y: auto !important;
  }

  .column {
    width: 100% !important;
    float: none !important;
    height: auto !important; /* Để chiều cao tự giãn theo nội dung nếu cần */
    min-height: 320px;
    margin-bottom: 15px;
    box-sizing: border-box;
  }

  .menu button {
    font-size: 13px;
    padding: 10px 4px;
  }
}

/* Ép khung chứa và thẻ canvas co giãn linh hoạt */
.column canvas {
  max-width: 100% !important;
  height: auto !important;
}

@media screen and (max-width: 768px) {
  .column {
    width: 100% !important;
    float: none !important;
    display: block !important; /* Đảm bảo chuyển hẳn sang dạng khối nằm dọc */
    height: auto !important;
    margin-bottom: 15px;
  }
}
