/* ng-animate fade */
.nga-fade.ng-enter {
    transition: 0.5s linear all;
    opacity: 0;
}
.nga-fade.ng-enter.ng-enter-active {
    opacity: 1;
}
.nga-fade.ng-hide {
    opacity: 0;
}
.nga-fade.ng-hide-add,
.nga-fade.ng-hide-remove {
    transition: 0.3s linear all;
}

/* ng-animate height */
.nga-height.ng-hide {
    max-height: 0;
    transition: max-height 0.5s ease-out;
    overflow: hidden;
}
.nga-height {
    max-height: 400px;
    transition: max-height 0.5s ease-in;
    overflow: hidden;
}

md-list-item {
    border-top: 1px solid #ddd;
}
.custom-list-item {
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    margin: 12px 0;
}
.custom-list-item md-icon {
    color: #bbb;
}
.sequence {
    display: inline-block;
    color: #6712d5;
    font-weight: 600;
    margin-right: 8px;
}
.star {
    display: inline-block;
    background-color: #ffbc00;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 9px;
    font-size: 12px;
}

.txt-green {
    color: #1ca70c!important;
}

.txt-nowrap {
    white-space: nowrap!important;
}
.txt-center {
    text-align: center!important;
}
.txt-left {
    text-align: left!important;
}

.table-responsive {
    overflow-x: scroll;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table tr th:first-child {
    padding-left: 16px;
}
.table th {
    text-align: left;
    padding: 16px 16px 16px 0;
    white-space: nowrap;
    border-bottom: 1px solid #d8d8d8;
}
.table tr td:first-child {
    text-align: center;
    padding-left: 16px;
}
.table td {
    text-align: left;
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid #dedede;
    color: #000;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#qr-reader {
    border: 0!important;
}
#qr-reader__dashboard_section_swaplink {
    display: none!important;
}
#qr-reader img[alt='Info icon'] {
    display: none;
}
#qr-reader button {
    background-color: #693cb8;
    border-radius: 20px;
    color: #fff;
    border: 0;
    padding: 12px 16px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 26%);
}
#qr-reader__scan_region {
    min-height: 180px!important;
    display: flex;
    justify-content: center;
    align-items: center;
}
#qr-reader__camera_selection {
    display: block;
    margin: 4px auto 24px;
}

.login-bg {
    /* background: url(../img/bg.jpg) no-repeat bottom center fixed; */
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

md-list-item.active {
    background-color: rgba(0, 0, 0, .2);
}

.md-toggle-icon {
    display: block;
    margin-left: auto;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.md-toggle-icon.toggled {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
}

.md-accordian-button {
    outline: none;
    position: relative;
    padding: 0 16px;
    min-height: 48px;
    cursor: pointer;
}

.md-sub-list {
    transition: max-height 0.3s ease-in;
    overflow: hidden;
    padding: 0;
}

.md-sub-list.toggled {
    max-height: 0 !important;
    transition: max-height 0.3s ease-out;
}

.md-sub-list .md-button {
    padding-left: 32px !important;
}

.md-input-container-no-error {
    margin: 0;
}

.md-input-container-no-error .md-errors-spacer {
    display: none;
}

.alert {
    background: rgb(255, 119, 109) !important;
    color: rgb(255, 255, 255) !important;
}

.link-disabled, .link-disabled a {
    color: #777;
}

md-list-item.link-disabled {
    background-color: #eee;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.icon-inline {
    vertical-align: top;
}

* {
    font-family: 'Sarabun', sans-serif;
}

h1, h2, h3, h4, h5, .md-headline {
    font-family: 'Prompt', sans-serif;
}

.md-raised:not(.md-fab) {
    border-radius: 20px;
    padding: 2px 16px;
}
.md-button {
    font-size: 16px;
    padding: 2px 14px;
    border-radius: 20px;
    font-family: 'Prompt', sans-serif;
}
.md-button.md-fab.md-mini {
    padding: 0;
}

md-dialog md-dialog-actions {
    padding: 10px!important;
    align-items: normal;
    min-height: auto;
    overflow: initial;
    border-top: 1px solid #e4e2e2;
}
md-dialog md-dialog-actions .md-button {
    margin: 0 6px;
}

.mb-40 {
    margin-bottom: 40px;
}
.mt-60 {
    margin-top: 60px;
}

.scan-index {
    font-size: 26px;
    line-height: 26px;
    color: #7d7d7d;
    font-family: 'Prompt', sans-serif;
}

@media (max-width: 575.98px) {

    .inline-radio md-radio-button {
        flex-basis: 20%;
        margin: 0!important;
        text-align: center;
    }
    .inline-radio md-radio-button .md-container {
        top: 0;
        left: 50%;
        margin-left: -10px;
    }
    .inline-radio md-radio-button .md-label {
        margin-left: 0;
        margin-top: 16px;
    }

}


@media print {
    .print-none {
        display: none;
    }
}
