/* 메인 */
#indexWrap {
    background-image: url(../img/background.jpg);
    background-size: cover;
    background-position: center center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}
#indexWrap .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
#indexWrap .menu a {
    border-radius: 1rem;
    background: #fff;
    font-size: 20px;
    font-weight: 600;
    padding: 20px;
    transition: 0.5s;
}
#indexWrap .menu a:hover {
    background: rgba(255, 255, 255, 0.5);
}
#indexWrap h1 {
    margin-bottom: 30px;
}
#indexWrap h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #3b3b3b;
}
#indexWrap h1 b {
    width: 100%;
    font-size: 23px;
    font-weight: 700;
    color: #222;
}
#indexWrap h1 img {
    width: 100%;
}
.container {
    width: 620px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 50px 60px 55px 60px;
    background: #fff;
    border-radius: 50px;
}
.row {
    width: 100%;
    display: block;
    justify-content: center;
}
.col-md-6 {
    max-width: 100%;
}
.form-control {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    background: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
    height: unset;
}
.panel-body fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 0;
}
.btn-block {
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    background: #fe9100;
    color: #fff;
    border: none;
    transition: 0.5s;
}
.btn-block:hover {
    filter: brightness(120%);
    background: #fe9100;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}
#idSaveCheck {
    appearance: auto;
}

/* Header */
header {
    position: sticky;
    background: #fff;
    z-index: 1111;
    top: 0;
    width: 100%;
    height: 100px;
}
header .header {
    max-width: 1800px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .header h1 {
    width: 120px;
}
header .header h1 img {
    width: 100%;
}
header .header nav {
    display: flex;
    gap: 20px;
}
header .header nav a {
    font-size: 20px;
    font-weight: 600;
    transition: 0.5s;
    color: #aaa;
    text-decoration: none;
}
header .header nav a:hover {
    color: rgba(253, 197, 124, 0.5);
}

/* 모바일 NAV */
.mobileNav {
    border-radius: 1rem;
    background: #fff;
    z-index: 1111;
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    display: none;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    flex-flow: column nowrap;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
}
.mobileNav.active {
    transform: scale(1);
    opacity: 1;
}
.mobileNav a {
    font-size: 16px;
    font-weight: 600;
    padding: 20px;
    transition: 0.5s;
    color: #aaa;
    text-decoration: none;
}
.mobileNav a:hover {
    color: rgba(253, 197, 124, 0.5);
}

/* 모니터링 Dashboard */
main {
    max-width: 1800px;
    margin: 0 auto;
    padding-bottom: 20px;
}
main .fixedHeader {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding: 40px 0;
}
main .fixedHeader h1 {
    font-size: 24px;
    font-weight: 800;
}
main .fixedHeader p {
    font-size: 20px;
    font-weight: 600;
}
main .fixedHeader p span {
    font-size: 20px;
}
main .mainTable {
    width: 100%;
    margin-bottom: 20px;
}
main .mainTable #tbody_master {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}
main .mainTable #tbody_master .monitor {
    width: calc(100% / 5 - 9px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
    border-radius: 0.5rem;
    overflow: hidden;
}
main .mainTable #tbody_master .monitor button {
    width: 100%;
    height: 100%;
    transition: 0.5s;
    padding: 40px 0;
}
main .mainTable #tbody_master .monitor button:hover {
    transform: translateY(-2px);
}
main .monitorTable {
    width: 100%;
}
main .monitorTable #tbody_list {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}
main .monitorTable #tbody_list .monitor {
    width: calc(100% / 10 - 9px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
    border-radius: 0.5rem;
    overflow: hidden;
}
main .monitorTable #tbody_list .monitor button {
    width: 100%;
    height: 100%;
    transition: 0.5s;
    padding: 40px 0;
}
main .monitorTable #tbody_list .monitor button:hover {
    transform: translateY(-2px);
}

/* Master 프로그램 관리 */
main .fixedHeader #addModalShow {
    transition: 0.5s;
    width: max-content;
    font-size: 20px;
    font-weight: 600;
    background: #ed7b1b;
    color: #fff;
    border-radius: 0.5rem;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
}
main .fixedHeader #addModalShow:hover {
    filter: brightness(110%);
}
main .masterTable {
    margin-top: 20px;
    width: 100%;
    border: 1px solid #fdc57c;
    border-radius: 1rem;
    border-collapse: separate;
    overflow: hidden;
    border-spacing: 0;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
}
main .masterTable thead {
    background: #fdc57c;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
}
main .masterTable thead tr {}
main .masterTable thead tr th {
    padding: 20px 10px;
    font-weight: 600;
}
main .masterTable tbody {}
main .masterTable tbody tr {
    border-bottom: 1px solid #fdc57c;
}
main .masterTable tbody tr td {
    padding: 20px 10px;
    border-right: 1px solid #fdc57c;
}
main .masterTable tbody tr td:last-child {
    border-right: none;
    padding: 20px 10px;
}
main .masterTable tbody tr td:last-child button {
    transition: 0.5s;
    width: max-content;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ed7b1b;
    color: #ed7b1b;
    border-radius: 0.5rem;
    padding: 10px 15px;
}
main .masterTable tbody tr td:last-child button:hover {
    background: #ed7b1b;
    color: #fff;
}

/* 프로그램 관리 */
main .programTable {
    margin-top: 20px;
    width: 100%;
    border: 1px solid #fdc57c;
    border-radius: 1rem;
    border-collapse: separate;
    overflow: hidden;
    border-spacing: 0;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
}
main .programTable thead {
    background: #fdc57c;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
main .programTable thead tr {}
main .programTable thead tr th {
    padding: 20px 0;
    font-weight: 600;
}
main .programTable tbody {}
main .programTable tbody tr {}
main .programTable tbody tr td {
    padding: 20px 10px;
    border-right: 1px solid #fdc57c;
    border-bottom: 1px solid #fdc57c;
}
main .programTable tbody tr td:nth-of-type(10) {

}
main .programTable tbody tr td button {
    transition: 0.5s;
    width: max-content;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ed7b1b;
    color: #ed7b1b;
    border-radius: 0.5rem;
    padding: 10px 15px;
}
main .programTable tbody tr td button:hover {
    background: #ed7b1b;
    color: #fff;
}

/* 프로그램 그룹 관리 */
main .groupTable {
    margin-top: 20px;
    width: 100%;
    border: 1px solid #fdc57c;
    border-radius: 1rem;
    border-collapse: separate;
    overflow: hidden;
    border-spacing: 0;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
}
main .groupTable thead {
    background: #fdc57c;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
main .groupTable thead tr {}
main .groupTable thead tr th {
    padding: 20px 0;
    font-weight: 600;
}
main .groupTable tbody {}
main .groupTable tbody tr {}
main .groupTable tbody tr td {
    padding: 20px 10px;
    border-right: 1px solid #fdc57c;
    border-bottom: 1px solid #fdc57c;
}
main .groupTable tbody tr td:nth-of-type(5) {
    padding: 20px 10px;
}
main .groupTable tbody tr td button {
    transition: 0.5s;
    width: max-content;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #ed7b1b;
    color: #ed7b1b;
    border-radius: 0.5rem;
    padding: 10px 15px;
}
main .groupTable tbody tr td button:hover {
    background: #ed7b1b;
    color: #fff;
}

/* 프로그램 로그 */
main .tableWrap {
    width: 100%;
    overflow: auto;
}
main .logTable {
    margin-top: 20px;
    width: 100%;
    border: 1px solid #fdc57c;
    border-radius: 1rem;
    border-collapse: separate;
    overflow: hidden;
    border-spacing: 0;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
}
main .logTable thead {
    background: #fdc57c;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
main .logTable thead tr {}
main .logTable thead tr th {
    padding: 20px 0;
    font-weight: 600;
}
main .logTable tbody {}
main .logTable tbody tr {}
main .logTable tbody tr td {
    padding: 20px 10px;
    border-right: 1px solid #fdc57c;
    border-bottom: 1px solid #fdc57c;
}
thead {
    background: #fdc57c;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
thead tr {}
thead tr th {
    padding: 20px 0;
    font-weight: 600;
}
tbody {}
tbody tr {}
tbody tr td {
    padding: 20px 10px;
    border-right: 1px solid #fdc57c;
    border-bottom: 1px solid #fdc57c;
}
main .filterWrap {
    display: flex;
    gap: 20px;
}
main .filterWrap input:nth-of-type(1) {
    width: 200px;
    padding: 14px 20px;
    font-size: 18px;
    background: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
    height: unset;
}
main .filterWrap select {
    border: 1px solid #d4dbe0;
    border-radius: 10px;
    font-size: 18px;
    width: 200px;
    padding: 14px 20px;
    background-image: url(../img/arrow.png);
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 15px;
}
main .filterWrap input:nth-of-type(2) {
    width: 400px;
    padding: 14px 20px;
    font-size: 18px;
    background: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
    height: unset;
}
main .filterWrap input:nth-of-type(2)::placeholder {
    color: #aaa;
}
main .filterWrap input:nth-of-type(3) {
    width: 100px;
    border-radius: 10px;
    background: #ed7b1b;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

/* 햄버거 */
.buttonWrap {
    z-index: 7777;
    position: fixed;
    width: 60px;
    height: 60px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    background: #fff;
    bottom: 2rem;
    right: 2rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 5px 12px 0px;
}
#navBtn {
    width: 30px;
    height: 25px;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}
#navBtn,
#navBtn span {
display: inline-block;
transition: all .4s;
box-sizing: border-box;
}
#navBtn span {
    display: block;
    position: absolute;
    height: 6px;
    width: 100%;
    background: #ed7b1b;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }
  #navBtn span:nth-child(1) {
    top: 0px;
  }
  
  #navBtn span:nth-child(2),#navBtn span:nth-child(3) {
    top: 10px;
  }
  
  #navBtn span:nth-child(4) {
    top: 20px;
  }
  
  #navBtn.open span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
  }
  
  #navBtn.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  
  #navBtn.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  
  #navBtn.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
  }

/* SweetAlert */
.modalTable td {
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}
.modalTable td:first-child {
    font-weight: 800;
}
.modalTable td:last-child {
    border-right: none;
}
.modalTable tr:last-child td {
    border-bottom: none;
}
.swal2-popup {
    text-align: center;
}
.swal2-icon {
    position: relative;
    box-sizing: content-box;
    justify-content: center;
    width: 5em;
    height: 5em;
    margin: 0 auto .6em;
    border: .25em solid rgba(0, 0, 0, 0);
    border-radius: 50%;
    border-color: #000;
    font-family: inherit;
    line-height: 5em;
    cursor: default;
    user-select: none;
}
div:where(.swal2-container) {
    z-index: 9999 !important;
}
div:where(.swal2-container) div:where(.swal2-popup) {
    padding: 2rem 0 !important;
}
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background-color: #ed7b1b !important;
}
.modal-body tr {
    padding-bottom: 1rem;
}
.modal-body td {
    padding: 0.5rem 0;
}
.modal-body td:nth-of-type(1) {
    width: 30%;
}
.modal-body td:nth-of-type(2) {
    width: 70%;
    margin-bottom: 1rem;
}
.modal-body td input {
    width: 100%;
    margin: 0;
    padding: 14px 20px;
    font-size: 18px;
    background: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
    height: unset;
}
.modal-body td input[type="radio"] {
    appearance: auto;
    width: max-content;
    margin: 0 10px 0 20px;
}
.modal-body .radioWrap {
    display: flex;
    margin: 0 !important;
}
.modal-body td select {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    background-color: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
    height: unset;
    background-image: url(../img/arrow.png);
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 15px;
}
.form-group2 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.form-group2 label {
    width: 30%;
}
.form-group2 input {
    width: 70%;
    margin: 0;
    background-color: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
}
.form-group2 input[type="radio"] {
    appearance: auto;
    width: max-content;
    margin: 0 10px 0 20px;
}
.form-group2 select {
    width: 70%;
    background-image: url(../img/arrow.png);
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 15px;
    background-color: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
}
.useRadio input {
    appearance: auto;
    width: max-content;
    margin: 20px 10px 0 20px;
}

/* 반응형 */
@media screen and (max-width: 1800px) {
    header {
        padding: 0 2rem;
    }
    main {
        padding: 0 2rem 2rem;
    }
}
@media screen and (max-width: 1200px) {
    header .header {
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    header .header h1 {
        width: 100px;
    }
    header .header nav a {
        font-size: 16px;
    }
    main .fixedHeader h1 {
        font-size: 20px;
    }
    main .fixedHeader p {
        font-size: 18px;
        line-height: 1.4;
    }
    main .fixedHeader #addModalShow {
        font-size: 16px;
        right: 20px;
    }
    main .mainTable #tbody_master .monitor {
        width: calc(100% / 3 - 9px);
    }
    main .monitorTable #tbody_list .monitor {
        width: calc(100% / 6 - 9px);
    }
    main .filterWrap {
        flex-flow: row wrap;
    }
    main .filterWrap input:nth-of-type(1) {
        width: calc(20% - 15px);
    }
    main .filterWrap select {
        width: calc(20% - 15px);
    }
    main .filterWrap input:nth-of-type(2) {
        width: calc(60% - 10px);
    }
    main .filterWrap input:nth-of-type(3) {
        width: 100%;
        padding: 20px 0;
    }
    main .programTable,
    main .masterTable,
    main .logTable,
    main .groupTable {
        width: 1200px;
    }
}

@media screen and (max-width: 800px){
    .container {
        width: 450px;
    }
    header {
        height: 5rem;
    }
    main .fixedHeader #addModalShow {
        right: 0;
    }
    header .header nav {
        display: none;
    }
    .buttonWrap {
        display: flex;
    }
    main .filterWrap input:nth-of-type(1) {
        width: calc(50% - 10px);
    }
    main .filterWrap select {
        width: calc(50% - 10px);
    }
    main .filterWrap input:nth-of-type(2) {
        width: 100%;
    }
    main .mainTable #tbody_master .monitor {
        width: 100%;
    }
    main .monitorTable #tbody_list .monitor {
        width: calc(100% / 2 - 5px);
    }
    main .programTable,
    main .masterTable,
    main .logTable,
    main .groupTable {
        width: 800px;
    }
}

@media screen and (max-width: 550px){
    .container {
        width: 350px;
        padding: 40px 30px 40px 30px;
    }
    div:where(.swal2-container) div:where(.swal2-popup) {
        width: 350px;
    }
    div:where(.swal2-container) div:where(.swal2-html-container) {
        padding: 1rem;
    }
    .modalTable {

    }
    .modalTable td {
        padding: 1rem;
        word-break: break-all;
    }
    #indexWrap h1 {
        margin-bottom: 10px;
    }
    #indexWrap h1 b {
        font-size: 18px;
    }
    #indexWrap h2 {
        font-size: 30px;
    }
}