/* 實現 SweetAlert2 的響應式設計 自定義樣式 */
@media (max-width: 600px) {
    .swal2-popup {
        width: 90% !important;
    }
}

@media (min-width: 601px) {
    .swal2-popup {
        width: 50% !important;
    }
}


@media (max-width: 736px) {
    .table-rwd {
        min-width: 100%;
    }

        .table-rwd thead {
            border: none;
            clip: rect(0 0 0 0);
            height: 1px;
            margin: -1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            width: 1px;
        }
    /*針對tr去做隱藏*/
    tr.tr-only-hide {
        display: none !important;
    }
    /*讓tr變成區塊主要讓他有個區塊*/
    .table-rwd tr {
        display: block;
        border: 1px solid #ddd;
        margin-top: 5px;
    }

    .table-rwd th {
        white-space: nowrap !important; /*不折行*/
    }
    /*.table-rwd tbody tr:nth-child(odd){
    background: rgba(0, 0, 0, 0.075);
    }*/
    .table-rwd td {
        text-align: left;
        /*font-size: 15px;*/
        overflow: hidden;
        width: 100%;
        display: block;
        border: 0;
    }

        .table-rwd td:before {
            /*最重要的就是這串*/
            content: attr(data-th) " ";
            /*最重要的就是這串*/
            display: inline-block;
            text-transform: uppercase;
            float: left;
            font-weight: bold;
            margin-right: 10px;
            color: #000;
        }
    /*當RWD縮小的時候.table-bordered 會有兩條線，所以針對.table-bordered去做修正*/
    .table-rwd.table-bordered td, .table-rwd.table-bordered th, .table-rwd.table-bordered {
        border: 0;
    }
}

/*dataTable 標題列不折行*/
.dataTable th {
    white-space: nowrap !important;
}

/*不折行*/
.no-wrap {
    white-space: nowrap !important;
}

.buttonbar-right {
    display: flex;
    flex-direction: row-reverse;
}

.loading {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
    outline: 0;
}

.loading .mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #444;
    opacity: 0.5;
}

.loading .animation {
    margin: auto;
    padding-top: 20%;
    padding-left: 50%;
}

@keyframes floatup {
    0% {
        transform: translateY(100vh);
    }
    100% {
        transform: translateY(0);
    }
}

input[type=checkbox]
{
	width : 16px;
    height : 16px;
}

