/* 기본 설정 */
html, body { 
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;     
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 450;
  font-style: normal;
  font-size: 16px;  
  overflow-x: hidden;
  overflow-y: hidden;
}

/* 모든 요소 통일 */
* {
  box-sizing: border-box;
}

/* 상단메뉴 영역 */
.menuTOP {
  position: fixed;
  width: 100%;
  height: 60px; 
  top: 0;         
  left: 0;     
  z-index: 1000;  
}

/* 메뉴 바 */
.menuTOP nav {
  font-size: 1rem;
  display: flex;
  width: 100%;
  height: 60px;
  padding-left: 300px;
  padding-right: 300px;
  flex-direction: row;
  overflow-x: auto; 
  color: #ffffff;
  background-color: #2c3e50;
  align-items: center;
  justify-content: center;
}
.menuTOP nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0; 
}
.menuTOP nav ul li {
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap; 
}
.menuTOP nav ul li a {
  color: white;
  text-decoration: none;
}
.menuTOP nav ul li:hover {
  background-color: #79aee2;
}

/* 하단메뉴 영역 */
.menuBOT {
  position: fixed;
  width: 100%;
  height: 60px; 
  bottom: 0;         
  left: 0;     
  z-index: 1000; 
  background-color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* 컨테이너 영역 */
.container { 
  display: flex; 
  flex-direction: row;
  width: 100%; 
  height: calc(100% - 120px); 
  margin-top: 60px;  
  margin-bottom: 60px;  
  padding: 0;   
  background-color: #ffffff; 
  overflow-y: auto; 
}

/* 사이드 영역 */
.view-left,
.view-right {   
  flex: 0 0 300px;
  background-color: #ffffff;  
}

/* 센터 영역 */
.view-center {  
  flex-grow: 1;
  background-color: #f5f5f5;  
  overflow-y: auto; 
}

/* 메뉴 영역*/
.menu-from { 
  display: flex;  
  flex-direction: column; 
  margin: 10px;  
  align-items: center;   
}
.menu-from label {
  font-size: 1rem;
  width: 40%; 
  margin: 5px; 
  padding: 10px;   
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;  
}
.menu-from button {
  font-size: 1rem;
  width: 40%; 
  margin: 5px; 
  padding: 10px;   
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px; 
  background-color: #2c3e50;
  color: white;
  cursor: pointer;
}
.menu-from button:hover {
  background-color: #79aee2;
}

/*컨텐츠 영역*/
.content-form {    
  display: flex;   
  flex-grow: 1; 
  flex-direction: column; 
  margin-top: 5px;
  margin-bottom: 5px;
  margin-left: 10px;
  margin-right: 10px;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: hidden;
}
.content-ad {
  display: flex;  
  width: 320px;
  height: 50px;
  margin: 0px;
}
.content-form .content-row {
  width: 100%;    
  flex-direction: row; 
}
.content-form span {
    display: inline-block;
    font-size: 1rem; 
    vertical-align: middle;
    width: auto;    
    height: auto;
    margin-right: 5px; 
    margin-top: 5px;
    margin-bottom: 5px; 
    text-align: left; 
}
.content-form label{   
  display: inline-block;
  font-size: 1rem;
  vertical-align: middle;
  width: 30%; 
  height: 40px;
  margin-right: 5px; 
  margin-top: 5px;
  margin-bottom: 5px; 
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;  
  background: #b2d5f8;
  text-align: center;
  line-height: 40px; 
}
.content-form p{   
  display: inline-block;
  font-size: 1rem;
  vertical-align: middle;
  width: auto; 
  min-width: 30%;
  height: auto;
  min-height: 40px;
  margin-right: 5px; 
  margin-top: 5px;
  margin-bottom: 5px; 
  padding-left: 10px;
  padding-right: 10px;     
  border: 1px solid #ccc;
  border-radius: 5px;  
  background: #f5f5f5;
  text-align: left;
  line-height: 40px; 
}
.content-form img{    
  vertical-align: middle;
  width: 30%; 
  margin-right: 5px; 
  margin-top: 5px;
  margin-bottom: 5px; 
}
.content-form button{ 
  font-size: 1rem;   
  vertical-align: middle;
  width: 30%;
  height: 40px;
  margin-right: 5px; 
  margin-top: 5px;
  margin-bottom: 5px; 
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px; 
  background-color: #2c3e50;
  color: white;
  cursor: pointer;
}
.content-form button:hover {
  background-color: #79aee2;
}
.content-form input{  
  font-size: 1rem;  
  vertical-align: middle;
  width: 30%;
  height: 40px;
  margin-right: 5px; 
  margin-top: 5px;
  margin-bottom: 5px; 
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px; 
  background-color: #ffffff;
  color: #2c3e50; 
}
.content-form input::placeholder {
  color: #555;
  opacity: 0.8;
}
.content-form table {
  font-size: 0.9rem; 
  vertical-align: middle;
  width: 100%;
  margin-right: 5px; 
  margin-top: 5px;
  margin-bottom: 5px; 
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 5px; 
  border-collapse: collapse;
  table-layout: fixed;
}
.content-form tbody {
  background-color: white; 
}
.content-form thead {
  background-color: #c4e2ff;   
}
.content-form th,
.content-form td { 
  padding: 10px;  
  border: 1px solid #a7a7a7;
  text-align: left;   
  overflow-wrap: break-word; 
  word-wrap: break-word;     
}
.content-form tr:hover {
  background-color: #c4e2ff;
}

.list-form {    
  display: flex;   
  flex-grow: 1; 
  flex-direction: column; 
  margin: 10px;  
  align-items: flex-start;
}
.list-form table {    
  font-size: 1.1rem; 
  vertical-align: middle;
  width: 100%;
  margin-right: 5px;
  border-collapse: collapse;
  table-layout: fixed;
}
.list-form tbody {
  background-color: #f5f5f5; 
  width: 100%; 
}
.list-form thead {
  background-color: #2c3e50;  
  width: 100%;
}
.list-form th { 
  padding: 5px; 
  width: 100%;
  height: 40px;
  border-bottom: 1px solid #ccc; 
  text-align: left;   
  overflow-wrap: break-word; 
  word-wrap: break-word;   
  color : white;
  font-weight: bold;  
}
.list-form td { 
  padding: 5px; 
  width: 100%;
  border-bottom: 1px solid #ccc; 
  text-align: left;   
  overflow-wrap: break-word; 
  word-wrap: break-word;  
  color : black; 
  font-weight: bold;  
}
.list-form td label{  
  color : #646464;
  font-weight: normal;  
}
.list-form tr:hover {
  background-color: #d8d8d8;
}

/* 로딩 폼 */
.loading-from { 
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center; 
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  height: 100%; 
  width: 100%; 
}

@media (max-width: 768px) {  
  .container {     
    height: calc(100% - 60px);    
    margin-bottom: 0px;     
  } 
  .view-left,
  .view-right,
  .menuBOT {
    display: none;
  }    
  .menuTOP nav {   
    padding-left: 0px;
    padding-right: 0px;    
  }   
  .menu-from label {    
    width: 100%;     
  }
  .menu-from button {    
    width: 100%;     
  }
  .content-form label {  
    width: 100%;     
  }
  .content-form p {  
    width: 100%;     
  }
  .content-form button{ 
    width: 100%;     
  }
  .content-form input{ 
    width: 100%;     
  }  
  .content-form img{    
    width: 100%;  
  }
}