.board-wrap {
  width: 100%; display: table; table-layout: fixed;
  /************************************** 게시판 헤더 **************************************/
  .board-head {
    display: table-header-group; color:#000; background:#eceeef;
    > span.board-head-tit {
      display: table-cell; text-align: center; font-size: 1.3rem; font-weight: 500; border-top:1px solid var(--line-color); padding: 12px 0
    }
    > span.board-head-tit.num {
      width: 50px;
    }
    > span.board-head-tit.title {
      width: calc(100% - 540px);
      &.community {
        width: calc(100% - 500px);
      }
    }
    > span.board-head-tit.writer {
      width: 200px;
    }
    > span.board-head-tit.status {
      width: 100px;
    }
    > span.board-head-tit.date {
      width: 150px;
    }
    > span.board-head-tit.date-ing {
      width: 240px;
    }
    > span.board-head-tit.view {
      width:100px
    }
  }
  /************************************** 게시판 바디 **************************************/
  .board-body {
    display: table-row; width: 100%; 
    &.pin {
      background:#f8f8f8;
    }
    > div.board-cell {
      display: table-cell; vertical-align: middle; font-size: 1.3rem; text-align: center; padding: 12px 5px; border-bottom: 1px solid var(--line-color); color: #000; word-break: break-all;
      .label {
        background: #Fff;border: 1px solid var(--main-color); padding: 5px; border-radius: 3px;color: var(--main-color); font-size: 1.1rem; display:inline-block; font-weight:500;min-width: 52px; text-align: center;
        &.end {
          color:#aaa; border-color:#ccc;
        }
      }   
      &:hover.cell-tit {
        text-decoration: underline;
      }
    }
    > div.board-cell.cell-tit {
      text-align: left;
    }
    > div.board-cell.cell-tit a {
      display: block;color:#000; line-height:27px; @include ellipsis;
    }
    span.notice-pin {
      img {width: 15px; height: 15px; position: relative; top: -1px}
    }
    .mo-notice-pin {display: none} 
  }
}

/*
.board-wrap .board-body > div.board-cell:hover.cell-tit {text-decoration: underline;} */

/* 검색 결과 없음 */
.board-empty { position: relative; text-align: center; width: 100%; padding: 50px 0; border-bottom: 1px solid var(--line-color); }

@media(max-width:  1024px) {
  .board-wrap {
    border-top:1px solid var(--line-color);
    /* 보드 헤더*/
    .board-head {
      display: none;position: absolute; top: -9999px; left: -9999px;
    }
    /* 보드 바디 */
    .board-body {
      padding: 10px 0 12px; display: block; border-bottom: 1px solid var(--line-color);
      > div.board-cell {
        border-bottom: 0; text-align: left; padding: 3px 5px; position: relative;
        .notice-pin-cell {
          display: none;
        } 
      }
      > div.board-cell.cell-tit {
        display: inline-block; width: calc(100% - 65px);
        a {
          line-height:21px;
        }
        &.community {
          width:100%; display:block;
        }
      }	
      > div.board-cell {
        font-size: 1.4rem;
        br {
          display:none;
        }
        &:not(.cell-tit) {
          font-size: 1.2rem; padding-top: 5px;
        }
        &:not(.cell-tit):before {
          padding-right: 5px;color: #b3b3b3; content: attr(data-label); font-weight: 600;
        }
        &:after {
          content: ''; width: 1px; height: 10px; background-color:#cfcfcf; top: 7px; right: -10px; position: absolute
        }
        &:first-child{
          display:none;
          &:after {
            content:none;
          }
        }        
        &.cell-tit {
          &:after {
            content: none
          }
        }
        &:last-child {
          &:after {
            content:none;
          }
        }
      }
      > div.board-cell.inline {
        display: inline-block; width: auto; margin-right: 15px;
        &:nth-child(2) {
          margin-right:0;
          &.portal-name {
            color: #598cc1; padding-bottom: 7px;
          }
          &:before {
            content:none;
          }
          &:after {
            content:none;
          }
        }
      }  
      .mo-notice-pin img {width: 13px; height: 13px; position: relative; top: 3px}
      .mo-notice-pin {display: inline-block; margin-right: 5px}
    }
  }
}

/* board detail */


/* detail */
.detail {
  .d-head {
    padding:40px 20px;background: #f2f5f6; border-bottom:1px solid var(--line-color); border-top:1px solid var(--line-color);
    .d-tit {
      p.h2 {
        font-size:1.8rem; font-weight:500; padding-bottom:15px;
      }
      .notice-pin {
        margin-right:5px;
        img {
          width:18px; height:18px;
        }
      }
    }
    .d-info {
      ul {
        > li {
          position: relative; display: inline-block; margin-right:15px; font-size:1.3rem; color:#888;
          &:after { 
            content: ''; position: absolute; top: 3px; right: -10px; width: 1px;  height: 12px; background: #d5d5d5;            
          }
          &:last-child {
            &:after {content:none;}
          }
        }
      }
    }
  }
  .file-set-wrap {
    padding:15px 0; border-bottom:1px solid var(--line-color);
    .file-tit {
      float:left; vertical-align: middle; margin-right:10px; font-size:1.5rem; font-weight:600;
    }
    .add-file-wrap {
      float:left;
    }
  }
  .d-content {
    padding:20px 10px; border-bottom:1px solid var(--line-color);
    p {
      font-size:1.5rem; line-height:23px;
    }
    img {
      max-width:100%;
    }
    video {
      max-width:100%;
    }       
  }
  .d-foot {
    margin-top:10px;
    .navi-wrap {
      font-size:1.4rem;color: #666; 
      a {
        color: #666; 
        &.empty {
          color:#aaa; cursor:no-drop;
          &:hover {text-decoration: none;}
        }        
        &:hover {
          text-decoration: underline
        } 
      }
      div.navi {
        width:100%;
        a { 
          width:calc(100% - 83px); margin-left:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display: inline-block; position:relative; top:4px;}border-bottom: 1px solid var(--line-color); padding-bottom:10px; margin-bottom:10px;  
        img {
          vertical-align: middle; width: 20px; height: 20px;opacity: 0.3; margin-right:3px;
        }          
      }      
    }
    .btn-wrap{
      .btn-right {
        button {
          height:40px; padding: 0 45px
        }
      }
    } 
  }   
}

@media(max-width:768px) {
  .detail {
    .d-head {
      padding:30px 20px;
      .d-tit {
          p.h2 {
            font-size:1.7rem;
          }
        }
      }    
      .d-content {
        p {font-size:1.4rem; line-height:20px;}  
    }    
  }    
}

@media(max-width:500px) {
  .detail {
    .d-head {
      .d-tit {
          p.h2 {
            font-size:1.6rem;
          }
          .notice-pin {
            img  {
              width:14px; height:14px;
          }
        }
      }
    }
    .d-content {
      padding:15px 0;
      p {
        font-size:1.3rem;
      }
    }
    .d-foot {
      .btn-wrap {
        text-align: center;
        .btn-right {
          float:none;
          button {
            float:none; font-size:1.3rem; height:30px;
          }
        }
      }
    }
  }
}