body{
    font-family: "Khmer OS Battambang", "Noto Sans Khmer", "Segoe UI", sans-serif;
    background-color: #f8f9fa;
}
.moul-regular {
    font-family: "Moul", serif;
    font-weight: 400;
    font-style: normal;
}

.battambang-thin {
    font-family: "Battambang", system-ui;
    font-weight: 100;
    font-style: normal;
}

.battambang-light {
    font-family: "Battambang", system-ui;
    font-weight: 300;
    font-style: normal;
}

.battambang-regular {
    font-family: "Battambang", system-ui;
    font-size: 14px;
    font-style: normal;
}

.battambang-bold {
    font-family: "Battambang", system-ui;
    font-weight: 700;
    font-style: normal;
}

.battambang-black {
    font-family: "Battambang", system-ui;
    font-weight: 900;
    font-style: normal;
}

.kh-font,
.kh-font .navbar,
.kh-font .modal,
.kh-font .table,
.kh-font .form-control,
.kh-font .form-select,
.kh-font .btn,
.kh-font .dropdown-menu,
.kh-font input,
.kh-font button,
.kh-font select,
.kh-font textarea {
    font-family: var(--kh-font);
}

/* DataTable Adjustments for Mobile Scannability */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.2rem 0.5rem;
}

.schedule-table-scroll {
  overflow-x: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.schedule-table-scroll.is-dragging {
  cursor: grabbing;
}

.schedule-table-scroll #tblUsers {
  min-width: 1050px;
  table-layout: fixed;
  width: 100%;
}

.schedule-table-scroll #tblUsers th,
.schedule-table-scroll #tblUsers td {
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: middle;
}

.schedule-table-scroll #tblUsers th:nth-child(1),
.schedule-table-scroll #tblUsers td:nth-child(1) {
  width: 4%;
}

.schedule-table-scroll #tblUsers th:nth-child(2),
.schedule-table-scroll #tblUsers td:nth-child(2) {
  width: 5%;
}

.schedule-table-scroll #tblUsers th:nth-child(3),
.schedule-table-scroll #tblUsers td:nth-child(3) {
  width: 16%;
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: #ffffff;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.12);
}

.schedule-table-scroll #tblUsers thead th:nth-child(3) {
  z-index: 3;
}

.schedule-table-scroll #tblUsers th:nth-child(4),
.schedule-table-scroll #tblUsers td:nth-child(4),
.schedule-table-scroll #tblUsers th:nth-child(5),
.schedule-table-scroll #tblUsers td:nth-child(5),
.schedule-table-scroll #tblUsers th:nth-child(6),
.schedule-table-scroll #tblUsers td:nth-child(6) {
  width: 10%;
}

.schedule-table-scroll #tblUsers th:nth-child(7),
.schedule-table-scroll #tblUsers td:nth-child(7) {
  width: 11%;
}

.schedule-table-scroll #tblUsers th:nth-child(8),
.schedule-table-scroll #tblUsers td:nth-child(8) {
  width: 16%;
}

.schedule-table-scroll #tblUsers th:nth-child(9),
.schedule-table-scroll #tblUsers td:nth-child(9) {
  width: 9%;
}

.schedule-table-scroll #tblUsers th:nth-child(10),
.schedule-table-scroll #tblUsers td:nth-child(10) {
  width: 9%;
  white-space: nowrap;
}

.table-responsive {
  overflow-x: auto;
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .top-toolbar,
  .toolbar-actions,
  .toolbar-filter {
    width: 100%;
  }

  .toolbar-actions .btn,
  .toolbar-filter .form-select {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: left;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: calc(100% - 4.5rem);
  }
}
.loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.loading-spinner.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.spinner-content {
  position: relative;
  z-index: 10000;
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #0d6efd;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-text {
  margin: 0;
  color: #495057;
  font-family: 'Khmer OS Battambang', 'Arial', sans-serif;
  font-size: 14px;
}
@media print {
  body { 
    color: #000; 
    background: #ff8383; 
  }
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th, td {
    background-color: #f59d9d !important;
    -webkit-print-color-adjust: exact; /* Chrome, Safari, Edge */
    print-color-adjust: exact;         /* Standard firefox syntax */
  }
  th, td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
  }
  .header {
    font-weight: bold;
    color: #ed0000;
  }
}
@media print {
  table th {
    /* Set text color and background color */
    color: #ffffff !important;
    background-color: #1a73e8 !important;

    /* Force the browser to print the background graphics */
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important; /* For Chrome, Safari, Edge */
  }
}
  /* Invoice Container Styles */
  .invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, 'Battambang', sans-serif;
    font-size: 13px;
    color: #333;
  }
  
  /* Styled Header Row */
  .invoice-table thead th {
    background-color: #1a365d !important; /* Dark Blue Header */
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border: 1px solid #1a365d;
    text-align: left;
  }

  /* Table Body Cells */
  .invoice-table tbody td {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
  }

  /* Zebra Striping for clean reading */
  .invoice-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
  }

  .invoice-table tbody tr:hover {
    background-color: #f1f5f9;
  }
 .table-id{
  width: 3%;
 }
  .table-name{
  width: 15%;
 }
  .table-start{
  width: 15%;
 }
  .table-class{
  width: 10%;
 }
  .table-date{
  width: 15%;
 }
  .table-action{
  width: 100%;
 }