/* Global font: Google Sans (latin) with Kanit as Thai fallback */
input,
select,
textarea,
button,
optgroup,
option,
th,
td,
legend,
.dataTables_wrapper,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dropdown-menu,
.modal,
.tooltip,
.popover,
.datepicker,
.bootstrap-datetimepicker-widget,
#toast-container > div,
.toast-title,
.toast-message {
    font-family: 'Google Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Google Sans', sans-serif;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 28px;
}

label {
    font-family: 'Google Sans', sans-serif;
}

p {
    font-family: 'Google Sans', sans-serif;
}

body {
    color: #73879C;
    background: #2e3440;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.471;
}

footer {
    background: #FFFFFF;
    padding: 20px 20px;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    display: block;
}

body .container.body .right_col {
    background: #F3F3F3;
}

body .left_col {
    background: #2e3440;
}

.nav_title {
    width: 230px;
    float: left;
    background: #2e3440;
    border-radius: 0;
    height: 57px;
    padding: 0px;
}
.nav_menu {
    float: left;
    background: #FFFFFF;
    border-bottom: 1px solid #EDEDED;
    margin-bottom: 10px;
    width: 100%;
    position: relative;
}

.nav_menu {
    position: static;
    height: 70px;
}

.nav-sm ul.nav.child_menu {
    left: 100%;
    position: absolute;
    top: 0;
    width: 210px;
    z-index: 4000;
    background: #2e3440;
    display: none;
}

.toggle {
    float: left;
    margin: 7px 0px 0px 0px;
    width: 70px;
}

.nav_title {
    font-family: 'Google Sans', sans-serif;
}

.top_nav .navbar-right {
    margin: 21px 15px 0px 0px;
    width: auto;
    float: right;
}

.navbar-brand, .navbar-nav > li > a {
    font-weight: 500;
    color: #ECF0F1 !important;
    margin-left: 0 !important;
    line-height: 60px;
}

.main_menu_side {
    font-size: 16px;
    font-family: 'Google Sans', sans-serif;
}

.nav.side-menu > li.active > a {
    text-shadow: rgba(0, 0, 0, 0.25) 0 -1px 0;
    background: -webkit-gradient(linear, left top, left bottom, from(#2e3440), to(#2e3440)), #2e3440;
    background: linear-gradient(#2e3440, #2e3440), #2e3440;
    -webkit-box-shadow: rgba(0, 0, 0, 0.25) 0 1px 0, inset rgba(255, 255, 255, 0.16) 0 1px 0;
    box-shadow: rgba(0, 0, 0, 0.25) 0 1px 0, inset rgba(255, 255, 255, 0.16) 0 1px 0; }

.swal2-content {
    font-family: 'Google Sans', sans-serif;
}

.swal2-confirm {
    font-family: 'Google Sans', sans-serif;
}

.swal2-deny {
    font-family: 'Google Sans', sans-serif;
}

.swal2-cancel {
    font-family: 'Google Sans', sans-serif;
}

.label-success {
    padding: 0px 16px 0px 16px;
    border-radius: 14px;
    font-size: 15px;
    color: #26b99a;
    border: 1px solid;
    background-color: #fff;
}

.label-link-info {
    padding: 0px 8px 0px 8px;
    border-radius: 14px;
    font-size: 15px;
    color: #1e88e5;
    border: 1px solid;
    background-color: #fff;
}

.label-default {
    padding: 0px 10px 0px 10px;
    border-radius: 14px;
    font-size: 15px;
    color: #777777;
    border: 1px solid;
    background-color: #fff;
}

.label-warning {
    padding: 0px 10px 0px 10px;
    border-radius: 14px;
    font-size: 11px;
    color: #ff655d;
    border: 1px solid;
    background-color: #fff;
}

.alert-warning {
    color: #67757c;
    background-color: #ffe0b4;
    border-color: #ffe0b4;
}

.alert-info {
    color: #67757c;
    background-color: #edf6ff;
    border-color: #edf6ff;
}

.user-profile {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
}

.profile_info {
    font-family: 'Google Sans', sans-serif;
}

.lot-list-no {
    vertical-align: middle !important;
    text-align: center;
    font-family: 'Google Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.lot-panel-60 {
    width: 60px;
    margin: 3px 0px -16px 3px;
}

.lot-panel-75 {
    width: 75px;
    margin: 3px 0px -16px 3px;
}

.lot-amount {
    font-size: 16px;
    text-align: center;
    border: 0px solid;
    background-color: #eaeaea;
}

.lot-type-green {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    text-align: center;
    border: 0px solid;
    background-color: #b5f8eb;
    margin-bottom: 0px;
}

.lot-type-blue {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    text-align: center;
    border: 0px solid;
    background-color: #2ec8ff;
    margin-bottom: 0px;
}

.lot-type-yellow {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    text-align: center;
    border: 0px solid;
    background-color: #ffee9a;
    margin-bottom: 0px;
}

.lot-type-red {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    text-align: center;
    border: 0px solid;
    background-color: #ffb2b2;
    margin-bottom: 0px;
}

.lot-type-purple {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    text-align: center;
    border: 0px solid;
    background-color: #ddb8ff;
    margin-bottom: 0px;
}

.input-group-text {
    border-radius: 0rem !important;
}

.form-control {
    border-radius: 0rem !important;
    font-family: 'Google Sans', sans-serif;
}

.input-group-green {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px !important;
    padding: 0px 0px 0px 0px !important;
    color: #000000;
    min-width: 60px;
    background-color: #b5f8eb;
}

.input-group-blue {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px !important;
    padding: 0px 0px 0px 0px !important;
    color: #000000;
    min-width: 60px;
    background-color: #2ec8ff;
}

.input-group-yello {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px !important;
    padding: 0px 0px 0px 0px !important;
    color: #000000;
    min-width: 60px;
    background-color: #ffee9a;
}

.input-group-red {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px !important;
    padding: 0px 0px 0px 0px !important;
    color: #000000;
    min-width: 60px;
    background-color: #ffb2b2;
}

.input-group-purple {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px !important;
    padding: 0px 0px 0px 0px !important;
    color: #000000;
    min-width: 60px;
    background-color: #ddb8ff;
}

ul.bar_tabs {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    overflow: visible;
    background: #E3E3E3;
    height: 32px;
    margin: 20px 0 20px;
    padding-left: 0px;
    position: relative;
    z-index: 1;
    width: 100%;
    border-bottom: 0px solid #E3E3E3;
}

ul.bar_tabs>li {
    border: 1px solid #E6E9ED;
    color: #333 !important;
    margin-top: -17px;
    margin-left: 4px;
    background: #fff;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

ul.bar_tabs>li.active {
    border-right: 6px solid #1ABB9C;
    border-top: 0;
    margin-top: -15px;
}

ul.bar_tabs>li a {
    padding: 10px 17px;
    background: #F5F7FA;
    color: #0f0f0f;
    margin: 0;
    border-top-right-radius: 0;
}

ul.bar_tabs>li a:hover {
    border: 1px solid transparent;
}

ul.bar_tabs>li.active a {
    border-bottom: none;
    background: #e8fff9;
}

ul.bar_tabs.right {
    padding-right: 14px;
}

ul.bar_tabs.right li {
    float: right;
}

a:focus {
    outline: none;
}

.btn {
    font-family: 'Google Sans', sans-serif;
}

.tr-lot-bar {
    background-color: #E3E3E3;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
}

.tr-lot-list-num {
    background-color: #FFFFFF;
}

.jumbotron {
    padding: 10px;
    min-height: 150px;
}

.copy-no {
    font-size: 18px;
}

.input-lot-no {
    height: 80px;
    background-color: #646464;
    color: #39ff89;
    font-size: 50px;
    text-align: center;
}

.input-lot-no:focus {
    height: 80px;
    background-color: #646464;
    color: #39ff89;
    font-size: 50px;
    text-align: center;
}

.input-lot-title {
    color: #1ABB9C;
    font-weight: 700;
}

.lot-list-edit {
    vertical-align: middle !important;
    text-align: center;
}

.col-form-label {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    color: #4B5F71;
}

.form-label-prize {
    font-family: 'Google Sans', sans-serif;
    font-size: 26px;
    color: #4B5F71;
    font-weight: 700;
}

.label-title-result {
    font-family: 'Google Sans', sans-serif;
    font-size: 32px;
    color: #1ABB9C;
    font-weight: 700;
}

.label-number-result {
    font-family: 'Google Sans', sans-serif;
    font-size: 32px;
    color: #000000;
    font-weight: 700;
}

.lot-date-value {
    font-family: 'Google Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #4B5F71;
}

.card {
    color: #FFFFFF;
    border-radius: 0;
    border: 0;
    margin-top: 20px;
}

.icon-card {
    font-size: 60px;
}

.table {
    font-family: 'Google Sans', sans-serif;
    font-size: 16px
}

.btn.btn-app {
    position: relative;
    padding: 22px 5px;
    margin: 0 0 10px 10px;
    min-width: 110px;
    height: 90px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    text-align: center;
    color: #666;
    border: 1px solid #ddd;
    background-color: #fafafa;
    font-size: 18px;
}

.btn.btn-app>.fa,
.btn.btn-app>.glyphicon,
.btn.btn-app>.ion {
    font-size: 24px;
    display: block;
}

.btn.btn-app:hover {
    background: #f4f4f4;
    color: #444;
    border-color: #aaa;
}

.btn.btn-app:active,
.btn.btn-app:focus {
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn.btn-app>.badge {
    position: absolute;
    top: -3px;
    right: -10px;
    font-size: 10px;
    font-weight: 400;
}

.btn.btn-app-primary {
    position: relative;
    padding: 0px;
    margin: 0 0 10px 10px;
    min-width: 160px;
    height: 120px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    text-align: center;
    color: #17aaa3;
    border: 0px;
    background-color: #dbf9f8;
    font-size: 18px;
}

.btn.btn-app-primary>.fa,
.btn.btn-app-primary>.glyphicon,
.btn.btn-app-primary>.ion {
    font-size: 28px;
    display: block;
}

.btn.btn-app-primary:hover {
    background: #C9F7F5;
    color: #17aaa3;
}

.btn.btn-app-primary:active,
.btn.btn-app-primary:focus {
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn.btn-app-primary>.badge {
    position: absolute;
    top: -3px;
    right: -10px;
    font-size: 10px;
    font-weight: 400;
}

.breadcrumb {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #FFFFFF;
    border-radius: 0rem;
    border: 1px solid #E6E9ED;
    font-family: 'Google Sans', sans-serif;
    font-size: 20px;
}

.breadcrumb-item.active {
    color: #2d7df5 !important;
}

.breadcrumb-item.active a {
    color: #2d7df5 !important;
    font-weight: 700;
}

.text-success {
    color: #1ABB9C!important;
}

.alert {
    position: relative;
    padding: .25rem 1.25rem;
    margin-bottom: 1rem;
    border: 0px solid transparent;
    border-radius: 0rem;
}

.alert-dark {
    color: #1b1e21;
    background-color: #ededed;
}

.bg-login {
    background: linear-gradient(
            rgba(46, 52, 64, 0.65),
            rgba(46, 52, 64, 0.65)
    ), url("../../images/bg2.jpeg") no-repeat fixed center;
    background-size: cover;
}

.bg-error {
    background: url("../../images/bg-3.jpg") no-repeat fixed center;
    background-size: cover;
}

/*.bg-login {*/
/*    background: url("../../images/bg-1.jpg") no-repeat fixed center;*/
/*    background-size: cover;*/
/*}*/

.text-white {
    color: #ffffff !important;
}

.opacity-70 {
    opacity: 0.9 !important;
}

.bg-dark-o-70 {
    background-color: rgba(24, 28, 50, 0.38) !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}
.border-0 {
    border: 0 !important;
}

.btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active, .show>.btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-white {
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.btn.btn-outline-white:hover:not(.btn-text):not(:disabled):not(.disabled), .btn.btn-outline-white:focus:not(.btn-text), .btn.btn-outline-white.focus:not(.btn-text) {
    color: #3F4254;
    background-color: #FFFFFF;
    border-color: #FFFFFF;
}

.site_title2 {
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 700;
    font-size: 24px;
    width: 100%;
    color: #2e3440 !important;
    margin-left: 0 !important;
    line-height: 59px;
    display: block;
    height: 55px;
    margin: 0;
    padding-left: 10px;
}
.site_title2 i {
    border: 1px solid #2e3440;
    padding: 5px 6px;
    border-radius: 50%;
}

.badge-sun {
    color: #fff;
    background-color: #ff6f6f;
    width: 40px;
}
.badge-mon {
    color: #fff;
    background-color: #ffc904;
    width: 40px;
}
.badge-tue {
    color: #fff;
    background-color: #ff90e2;
    width: 40px;
}
.badge-wed {
    color: #fff;
    background-color: #61ce82;
    width: 40px;
}
.badge-thu {
    color: #fff;
    background-color: #ff974d;
    width: 40px;
}
.badge-fri {
    color: #fff;
    background-color: #56c1ff;
    width: 40px;
}
.badge-sat {
    color: #fff;
    background-color: #986dff;
    width: 40px;
}
.datepicker table {
    margin: 0;
    font-size: 16px;
    width: 250px;
    height: 250px;
}
.check-send-head {
    font-size: 20px;
    background-color: #f1f1f1;
}
.check-send-am {
    font-size: 20px;
}

/* ####################################
   ตารางยอดสรุปแยกตามแผ่น ( หัก % )
   #################################### */
.tbl-sum {
    font-family: 'Google Sans', sans-serif;
}
.tbl-sum thead th {
    background-color: #E3E3E3;
    vertical-align: middle !important;
    text-align: center;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 10px;
    border-bottom: 2px solid #C8C8C8;
}
.tbl-sum thead th.th-sub {
    background-color: #EDEDED;
    color: #6C757D;
    font-size: 13px;
    font-weight: 400;
    padding: 4px 10px;
}
.tbl-sum tbody th,
.tbl-sum tbody td {
    vertical-align: middle !important;
    white-space: nowrap;
    font-size: 16px;
    padding: 7px 10px;
}
.tbl-sum tbody tr td,
.tbl-sum tbody tr th {
    background-color: #FFFFFF;
}
.tbl-sum tbody tr:nth-child(even) td,
.tbl-sum tbody tr:nth-child(even) th {
    background-color: #FAFAFA;
}
.tbl-sum tbody tr:hover td,
.tbl-sum tbody tr:hover th {
    background-color: #F0F7FF;
}
.tbl-sum .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
/* เส้นคั่นระหว่างกลุ่ม ตรง / โต๊ด / ลอย */
.tbl-sum .grp {
    border-left: 2px solid #D5D5D5 !important;
}
.tbl-sum .cut {
    color: #C0392B;
    font-size: 15px;
}
.tbl-sum .zero {
    color: #C9C9C9;
    font-weight: 400 !important;
}
.tbl-sum .col-send {
    background-color: #F2F9F3 !important;
    color: #1E7E34;
    font-weight: 600;
}
.tbl-sum .copy-link {
    display: inline-block;
    min-width: 28px;
    font-weight: 600;
}
.tbl-sum .row-total th,
.tbl-sum .row-total td {
    background-color: #E8E8E8 !important;
    border-top: 2px solid #C8C8C8;
    font-size: 17px;
    font-weight: 700;
}
.tbl-sum .row-total .cut {
    color: #A93226;
    font-size: 16px;
}
.tbl-sum .row-total .zero {
    color: #B0B0B0;
}
.tbl-sum .row-total .col-send {
    background-color: #D8EDDB !important;
    color: #14682B;
}
div.dataTables_wrapper div.dataTables_paginate ul.pagination {
    margin: 10px -16px;
    white-space: nowrap;
}

table.dataTable {
    clear: both;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    max-width: none !important;
    border-collapse: collapse !important;
}

.text-result {
    font-size: 30px;
    color: #0f0f0f;
    font-weight: bold;
}
.profile_info {
    padding: 20px 5px 10px;
    width: 65%;
    float: left;
}

.required {
    color: #c82333;
    font-weight: 700;
}

#toast-container > .toast {
    background-image: none !important;
}

#toast-container > .toast:before {
    position: fixed;
    font-family: FontAwesome;
    font-size: 24px;
    line-height: 18px;
    float: left;
    color: #FFF;
    padding-right: 0.5em;
    margin: auto 0.5em auto -1.5em;
}
#toast-container > .toast-warning:before {
    content: "\f06a";
}
#toast-container > .toast-error:before {
    content: "\f72e";
}
#toast-container > .toast-info:before {
    content: "\f129";
}
#toast-container > .toast-success:before {
    content: "\f00c";
}
/*--------------------------------------------------------------------*/
/* # LAYOUT / FOOTER                                                   */
/* .right_col is sized by a one-shot JS measurement in custom.js       */
/* (setContentHeight). When the sidebar menu ends up taller than that  */
/* measurement, the footer is left floating in the middle of the page  */
/* with blank space under it. Size the page with flexbox instead and   */
/* let the sidebar scroll on its own.                                  */
/*--------------------------------------------------------------------*/
.container.body .main_container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container.body .right_col {
    /* overrides the inline min-height written by custom.js */
    min-height: 0 !important;
    flex: 1 0 auto;
}

.container.body .main_container .nav_menu {
    /* margins no longer collapse inside the flex column, and this one would
       show up as a dark strip under the top bar */
    margin-bottom: 0;
}

.container.body footer {
    flex: 0 0 auto;
    margin-top: auto;
}

@media (min-width: 992px) {
    /* keep the menu inside the viewport and scroll it on its own, so a long
       menu can no longer stretch the page down past the footer */
    .nav-md .container.body .col-md-3.left_col,
    .nav-sm .container.body .col-md-3.left_col {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .nav-md .container.body .col-md-3.left_col .left_col.scroll-view,
    .nav-sm .container.body .col-md-3.left_col .left_col.scroll-view {
        width: 100%;
    }
}

/* ####################################
   หน้าส่งออกตัวเกิน (SendOut)
   #################################### */
.tbl-send-out td,
.tbl-send-out th {
    vertical-align: middle;
}

.tbl-send-out .lot-list-no {
    font-size: 28px;
}

.tbl-send-out .col-total,
.tbl-send-out .col-remain {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.tbl-send-out .col-sent {
    font-family: 'Google Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1E7E34;
}

.tbl-send-out .col-sent.zero {
    color: #C9C9C9;
    font-weight: 400;
}

.tbl-send-out .col-over {
    font-family: 'Google Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #D9534F;
}

.tbl-send-out .input-send {
    background-color: #F2F9F3;
    font-weight: 600;
}

.send-out-total {
    font-family: 'Google Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.send-out-summary {
    border: 1px solid #E3E3E3;
    border-left: 4px solid #f0ad4e;
    padding: 8px 12px;
    background-color: #FCFCFC;
}

.send-out-summary-name {
    font-size: 14px;
    color: #6c757d;
}

.send-out-summary-amount {
    font-family: 'Google Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.send-out-summary-count {
    font-size: 13px;
    color: #6c757d;
}

/* กล่องพรีวิวรูปจากปุ่ม Capture */
.capture-preview {
    max-height: 85vh;
    overflow: auto;
    border: 1px solid #E3E3E3;
    background-color: #FFFFFF;
    padding: 6px;
}

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