html, body{
	font-family: 'Barlow Semi Condensed', 'Sarabun' !important;
}
.cke_notifications_area { display: none !important; }
.sidebar-link{
	font-size: 15px !important;
}

.boxright{
	width: 400px;
}

.boxleft{
	width: 100%;
}

.fsprint{
    font-size: 10px;
}


.fs10{
    font-size: 10px;
}

.fs12{
	font-size: 12px;
}

.fs14{
	font-size: 14px;
}

.fs16{
    font-size: 16px;
}

.fs18{
    font-size: 18px;
}

.form-label{
    font-weight: 500 !important;
}

.customtb .table tbody, .table td, .table tfoot, .table th, .table thead, .table tr, .table > :not(:last-child) > :last-child > * {
    border-color: #000000 !important;
    color: #000;
}


.form-switch.form-switch-md {
  margin-bottom: 1rem; /* JUST FOR STYLING PURPOSE */

}

.form-switch.form-switch-md .form-check-input {
  height: 1.5rem;
  width: calc(2rem + 0.75rem);
  border-radius: 3rem;
    margin-right: 0.5rem;
}

.form-switch.form-switch-md .form-check-input:checked {
    background-color: #FF5722;
    border-color: #FF5722;
}

.boxabpatt{
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5px 4px;
}

.boxabcastingdone{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.5px 4px;
}

.txtorange{
    color: #FF5722;
}

.boxabmin{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5px 4px;
}

.box-bottom-right{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5px 4px;
}

.box-left{
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5px 4px;
}


.radio-card {
    display: inline-block;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

/* เมื่อ hover */
.radio-card:hover {
    background: #e9ecef;
}

/* เมื่อถูกเลือก */
.btn-check:checked + .radio-card {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.customtb td {
    padding: 10px 5px;
}

.bg0 {
    background-color: #f8f9f9 !important;
}
.bg1 {
    background-color: #fdebd0 !important;
}
.bg2 {
    background-color: #f5cba7 !important;
}
.bg3 {
    background-color: #f7dc6f !important;
}
.bg4 {
    background-color: #a2d9ce !important;
}
.bg5 {
    background-color: #aed6f1 !important;
}
.bg6 {
    background-color: #f5b7b1 !important;
}
.bg7 {
    background-color: #d2b4de !important;
}
.bg8 {
    background-color: #d2b4de !important;
}
.bg9 {
    background-color: #fad7a0 !important;
}


.bg00 {
    background-color: #FFA2A2 !important;
}

                                
.bg01 {
    background-color: #FFF3E6 !important;
}

                                
.bg02 {
    background-color: #FFFAE6 !important;
}

                                
.bg03 {
    background-color: #F6FEE7 !important;
}

                                
.bg04 {
    background-color: #E7FDF9 !important;
}

                                
.bg05 {
    background-color: #E6FCFE !important;
}

                                
.bg06 {
    background-color: #E6F2FF !important;
}

                                
.bg07 {
    background-color: #E6EAFF !important;
}

                                
.bg08 {
    background-color: #F3E6FF !important;
}

                                
.bg09 {
    background-color: #FAFAFA !important;
}

                                
.bg10 {
    background-color: #FFE6E6 !important;
}

                                
.bg11 {
    background-color: #FFDCB8 !important;
}

                                
.bg12 {
    background-color: #FEF0B8 !important;
}

                                
.bg13 {
    background-color: #E5FBBC !important;
}

                                
.bg14 {
    background-color: #BDFAEE !important;
}

                                
.bg15 {
    background-color: #B9F7FE !important;
}

                                
.bg16 {
    background-color: #B8DAFF !important;
}

                                
.bg17 {
    background-color: #A3B3FF !important;
}

                                
.bg18 {
    background-color: #DAB2FF !important;
}

                                
.bg19 {
    background-color: #E2E2E2 !important;
}

                                
.bg20 {
    background-color: #FF5C5C !important;
}

                                
.bg21 {
    background-color: #FF9A2E !important;
}

                                
.bg22 {
    background-color: #FEE685 !important;
}

                                
.bg23 {
    background-color: #C3F665 !important;
}

                                
.bg24 {
    background-color: #67F4D8 !important;
}

                                
.bg25 {
    background-color: #5FECFC !important;
}

                                
.bg26 {
    background-color: #8EC5FF !important;
}

                                
.bg27 {
    background-color: #8A9DFF !important;
}

                                
.bg28 {
    background-color: #C68AFF !important;
}

                                
.bg29 {
    background-color: #CACACA !important;
}

                                
.bg30 {
    background-color: #FF2E2E !important;
}

                                
.bg31 {
    background-color: #FF8400 !important;
}

                                
.bg32 {
    background-color: #FDDD5D !important;
}

                                
.bg33 {
    background-color: #B2F339 !important;
}

                                
.bg34 {
    background-color: #3DF0CC !important;
}

                                
.bg35 {
    background-color: #05E1FA !important;
}

                                
.bg36 {
    background-color: #5CABFF !important;
}

                                
.bg37 {
    background-color: #5C77FF !important;
}

                                
.bg38 {
    background-color: #B05CFF !important;
}

                                
.bg39 {
    background-color: #B3B3B3 !important;
}

                                
.bg40 {
    background-color: #FF8A8A !important;
}

                                
.bg41 {
    background-color: #FFC68A !important;
}

                                
.bg42 {
    background-color: #FDD430 !important;
}

                                
.bg43 {
    background-color: #A2F10E !important;
}

                                
.bg44 {
    background-color: #12EDC1 !important;
}

                                
.bg45 {
    background-color: #32E7FB !important;
}

                                
.bg46 {
    background-color: #2E93FF !important;
}

                                
.bg47 {
    background-color: #2E51FF !important;
}

                                
.bg48 {
    background-color: #9A2EFF !important;
}

                                
.bg49 {
    background-color: #9B9B9B !important;
}

                                
.bg50 {
    background-color: #FFA2A2 !important;
}

                                
.bg51 {
    background-color: #FFF3E6 !important;
}

                                
.bg52 {
    background-color: #FFFAE6 !important;
}

                                
.bg53 {
    background-color: #F6FEE7 !important;
}

                                
.bg54 {
    background-color: #E7FDF9 !important;
}

                                
.bg55 {
    background-color: #E6FCFE !important;
}

                                
.bg56 {
    background-color: #E6F2FF !important;
}

                                
.bg57 {
    background-color: #E6EAFF !important;
}

                                
.bg58 {
    background-color: #F3E6FF !important;
}

                                
.bg59 {
    background-color: #FAFAFA !important;
}

                                
.bg60 {
    background-color: #FFE6E6 !important;
}

                                
.bg61 {
    background-color: #FFDCB8 !important;
}

                                
.bg62 {
    background-color: #FEF0B8 !important;
}

                                
.bg63 {
    background-color: #E5FBBC !important;
}

                                
.bg64 {
    background-color: #BDFAEE !important;
}

                                
.bg65 {
    background-color: #B9F7FE !important;
}

                                
.bg66 {
    background-color: #B8DAFF !important;
}

                                
.bg67 {
    background-color: #A3B3FF !important;
}

                                
.bg68 {
    background-color: #DAB2FF !important;
}

                                
.bg69 {
    background-color: #E2E2E2 !important;
}

                                
.bg70 {
    background-color: #FF5C5C !important;
}

                                
.bg71 {
    background-color: #FF9A2E !important;
}

                                
.bg72 {
    background-color: #FEE685 !important;
}

                                
.bg73 {
    background-color: #C3F665 !important;
}

                                
.bg74 {
    background-color: #67F4D8 !important;
}

                                
.bg75 {
    background-color: #5FECFC !important;
}

                                
.bg76 {
    background-color: #8EC5FF !important;
}

                                
.bg77 {
    background-color: #8A9DFF !important;
}

                                
.bg78 {
    background-color: #C68AFF !important;
}

                                
.bg79 {
    background-color: #CACACA !important;
}

                                
.bg80 {
    background-color: #FF2E2E !important;
}

                                
.bg81 {
    background-color: #FF8400 !important;
}

                                
.bg82 {
    background-color: #FDDD5D !important;
}

                                
.bg83 {
    background-color: #B2F339 !important;
}

                                
.bg84 {
    background-color: #3DF0CC !important;
}

                                
.bg85 {
    background-color: #05E1FA !important;
}

                                
.bg86 {
    background-color: #5CABFF !important;
}

                                
.bg87 {
    background-color: #5C77FF !important;
}

                                
.bg88 {
    background-color: #B05CFF !important;
}

                                
.bg89 {
    background-color: #B3B3B3 !important;
}

                                
.bg90 {
    background-color: #FF8A8A !important;
}

                                
.bg91 {
    background-color: #FFC68A !important;
}

                                
.bg92 {
    background-color: #FDD430 !important;
}

                                
.bg93 {
    background-color: #A2F10E !important;
}

                                
.bg94 {
    background-color: #12EDC1 !important;
}

                                
.bg95 {
    background-color: #32E7FB !important;
}

                                
.bg96 {
    background-color: #2E93FF !important;
}

                                
.bg97 {
    background-color: #2E51FF !important;
}

                                
.bg98 {
    background-color: #9A2EFF !important;
}

                                
.bg99 {
    background-color: #9B9B9B !important;
}


.customselect .select2-container {
    width: 100% !important;
}

.customselect .select2-container .select2-selection--single {
    width: 100% !important;
}
.merged-cell {
    border: none !important;
  }

   #loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        z-index: 1050;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .loading-spinner {
        text-align: center;
    }

.editable {
    position: relative;
}
    
.editable:hover{
    cursor: pointer;
   background: #c8deef;
}

.editRemark:hover{
    cursor: pointer;
   background: #c8deef;
}

.editOrder:hover{
    cursor: pointer;
   background: #c8deef;
}

.calendar-dates span{
    cursor: pointer;
}

.icc{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background: #ccc;
    border-radius: 50px;
    padding: 12px;
    font-size: 12px;
}

.chpt {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: rgb(0 0 0 / 25%);
    color: #fff;
}

.sidebar-content, body[data-theme=dark] .sidebar-content {
    background: #2a2a2a;
/*    background: url(../img/bgb.jpg);
    background-position: center;
    background-size: cover;*/
}

.sidebar-link, a.sidebar-link {
	  background: #202020;
}

.sidebar-link:hover {
    background: #181818;
    border-left-color: transparent;
}

.sidebar-link i, .sidebar-link svg, a.sidebar-link i, a.sidebar-link svg {
    color: rgb(255 255 255 / 100%);
}

.sidebar-link:hover i,.sidebar-link:hover svg,body[data-theme=dark] .sidebar-link:hover i,body[data-theme=dark] .sidebar-link:hover svg {
    color: rgba(233,236,239,1)
}

.sidebar-dropdown .sidebar-item .sidebar-link:hover {
    background: #181818;
}

.select2-container .select2-selection--single {
height: calc(2.2rem) !important;
    padding: .1rem 2.55rem .3rem .85rem;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: calc(1.95rem + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
      color: #495057 !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #d1d3e2 !important;
}

.select2-results__option[aria-selected] {
    font-weight: 400 !important;
}

.thumbnailxl{
  width: 100%;
  height: 100%;
  max-height: 250px;
  max-width: 250px;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
}

.thumbnaillg{
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
}

.thumbnail{
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
}

.thumbnail-sm{
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
}

.delimage{
      position: absolute;
    top: -10px;
    right: -2px;
    color: #ff0303;
    background: #ffffff;
    border-radius: 50px;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.content {
    padding: 1rem 1rem 1.5rem;
}

div.table-responsive > div.dataTables_wrapper > div.row {
    row-gap: 0.5rem;
}    

table.dataTable > tbody > tr.child ul.dtr-details > li {
    flex-direction: column;
    display: flex;
}

table.dataTable > tbody > tr.child ul.dtr-details {
    display: block !important;
}

@media screen and (max-width: 768px) {
.boxright{
	width: 100%;
}

}

/*.boxshelfnum{
    width: 140px;
    text-align: center;
}

.shelfnum{
    width: 100px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
*/

.print-header {
        font-size: 18px;
        font-weight: 500;
        color: #000;
        padding: 5px;
    }

@media (forced-colors: active) {
  body {
    background: Canvas;
    color: CanvasText;
  }
  button {
    background: ButtonFace;
    color: ButtonText;
  }
}


.customprint{
    padding: 20px;
    width:100%; 
}



@media print {
    /* General print settings */
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    .fsprint{
    font-size: 5px;
}

    .printhide {
        display: none !important;
    }

    .footer {
        display: none !important;
    }

    .fs10{
        font-size: 6px;
    }

    .box-left{
    position: absolute;
    top: 1px;
    left: 1px;
    padding: 0.5px 1px;
}


.boxabpatt{
    position: absolute;
    top: 1px;
    right: 0;
    padding: 0.5px 1px;
}

.boxabmin{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5px 1px;
}

.box-bottom-right{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5px 1px;
}


    .customprint{
    padding: 0px;
    width:1480px; 
    
}

    /* Fixed header for all pages */
    .print-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: #000;
        padding: 5px;
        z-index: 1000;
        font-family: 'Barlow Semi Condensed', 'Sarabun' !important;
    }

    /* Ensure content doesn't overlap the header */
    body {
        margin-top: 20px; /* Adjust margin for header height */
        font-family: 'Barlow Semi Condensed', 'Sarabun' !important;
    }

    body.bytbgrid{
        height:100%; 
    margin: 0 !important; 
    padding: 0 !important;
    overflow: hidden;
    }

    /* Container for tables */
    #table-container {
        display: flex;
        flex-wrap: wrap; /* Allow wrapping of tables */
        justify-content: space-between;
    }

    /* Style individual tables */
    #table-container table {
        width: 49%; /* Two tables per row */
        margin-bottom: 10px;
        page-break-inside: avoid;
    }

    /* Table cells styling */
    #table-container th,
    #table-container td {
        font-size: 9px;
        padding: 4px;
        text-align: center;
    }

    #table-container.customprint {
        max-height: 100%;
    overflow: hidden;
    page-break-after: always;
    }

    #table-container table.tbgird {
        width: 100%; /* Two tables per row */
        margin-bottom: 0;
        page-break-inside: avoid;
    }

    /* Table cells styling */
    #table-container .tbgird th,
    #table-container .tbgird td {
        font-size: 9px;
        padding: 3.5px;
        text-align: center;
    }

    

    /* Page breaks for every nth table */
    .page-break {
        flex-basis: 100%; /* Ensure content wraps to next line */
        page-break-before: always;
        margin-top: 20px; /* Standard margin for subsequent pages */
    }

    /* First page behavior */
    .page-break:first-child {
        margin-top: 80px; /* Larger spacing for the first page after header */
    }
}


/*@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait),
       only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    body:not([data-sidebar-position="right"]) .sidebar {
        margin-left: -264px;
    }
}
*/