.guest-layout {
  font-family: "Noto Sans Thai", sans-serif;
  background-image: url("../images/background/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.guest-layout__container {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  background: rgba(0, 0, 0, 0.3);
}
.guest-layout__content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 3rem 0;
}
.guest-layout__logo {
  margin-bottom: 2rem;
}
.guest-layout__logo a {
  text-decoration: none;
}
.guest-layout__logo i {
  font-size: 4rem;
  color: #3B3CCE;
}
.guest-layout__card {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
          box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  border-radius: 20px;
}
.guest-layout__card.card .card-body {
  padding: 2rem;
}
.guest-layout__card.card .card-body .logo-container {
  text-align: center;
  margin-bottom: 2rem;
}
.guest-layout__card.card .card-body .logo-container img {
  max-height: 60px;
  width: auto;
  -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
          filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.guest-layout__card.card .card-body .footer-container {
  margin-top: 2rem;
}
.guest-layout__footer {
  text-align: right;
  padding: 1rem 0;
  background-color: #3B3CCE;
}
.guest-layout__footer-text {
  font-size: 0.875rem;
  color: white;
  margin-right: 1rem;
}
.guest-layout__footer-text i {
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .guest-layout__content {
    padding: 2rem 1rem;
  }
  .guest-layout__card {
    margin: 0 1rem;
  }
  .guest-layout__footer {
    text-align: center;
  }
  .guest-layout__footer-text {
    margin-right: 0;
  }
}
.table-responsive {
  border-radius: 20px;
  overflow: auto;
}

#ticketsTable {
  border-radius: 20px;
  width: 100% !important;
}
#ticketsTable tbody tr {
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
#ticketsTable tbody tr:hover {
  background-color: rgba(59, 60, 206, 0.05);
}
#ticketsTable tbody tr td {
  vertical-align: middle;
  padding: 0.75rem 1rem;
}

.dataTables_scrollHead table thead tr th {
  background-color: #3B3CCE !important;
  color: #ffffff !important;
  border: none !important;
  padding: 1rem !important;
  font-weight: 600;
}
.dataTables_scrollHead table thead tr th:first-child {
  border-radius: 20px 0 0 0;
}
.dataTables_scrollHead table thead tr th:last-child {
  border-radius: 0 20px 0 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}
.dataTables_wrapper .dataTables_length select {
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}
.dataTables_wrapper .dataTables_filter input {
  padding: 0.375rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin-left: 0.5rem;
}
.dataTables_wrapper .dataTables_info {
  padding-top: 1rem;
}
.dataTables_wrapper .dataTables_paginate {
  padding-top: 1rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.375rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: 0.375rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #3B3CCE !important;
  border-color: #3B3CCE !important;
  color: white !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
  background-color: rgb(78.6, 79.5, 210.9) !important;
  border-color: rgb(78.6, 79.5, 210.9) !important;
  color: white !important;
}

.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  font-weight: 500;
}
.badge.badge-sm {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
}
.badge i {
  font-size: 0.85em;
}

.serial-number {
  font-weight: 500;
  color: #1f2937;
  font-family: "Courier New", monospace;
}

.equipment-info .equipment-name {
  font-weight: 500;
  color: #1f2937;
  display: block;
  margin-bottom: 0.25rem;
}
.equipment-info .equipment-status-badge {
  display: inline-block;
  margin-top: 0.25rem;
}

.btn-group-sm .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.btn-group-sm .btn i {
  font-size: 0.9rem;
}

.dataTables_processing {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 1rem 2rem;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dtfc-fixed-end {
  background-color: white !important;
  border-left: 2px solid #dee2e6 !important;
}
.dtfc-fixed-end.dtfc-fixed-end {
  background-color: #3B3CCE !important;
  color: #ffffff !important;
}

table.dataTable thead th.dtfc-fixed-end,
table.dataTable thead td.dtfc-fixed-end {
  background-color: #3B3CCE !important;
  color: #ffffff !important;
}

table.dataTable tbody th.dtfc-fixed-end,
table.dataTable tbody td.dtfc-fixed-end {
  background-color: white !important;
}

.dataTables_wrapper .dataTables_scroll {
  overflow-x: auto;
}
.dataTables_wrapper .dataTables_scrollBody {
  overflow-x: auto !important;
}

#ticketsTable {
  min-width: 1400px;
}

.card {
  border-radius: 10px;
}
.card.border-0 {
  border: none;
}
.card.shadow-sm {
  -webkit-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
          box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.card .card-header {
  border-radius: 10px 10px 0 0;
}
.card .card-header.bg-primary {
  background-color: #3B3CCE !important;
}
.card .card-header.bg-white {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.card .card-body {
  padding: 1.5rem;
}

.filter-card .form-label {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.filter-card .form-control,
.filter-card .form-select {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.filter-card .form-control:focus,
.filter-card .form-select:focus {
  border-color: #3B3CCE;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(59, 60, 206, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(59, 60, 206, 0.25);
}

.dashboard-card {
  height: 100%;
}
.dashboard-card .card-header {
  padding: 0.75rem 1rem;
}
.dashboard-card .card-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.kpi-card .kpi-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.btn.btn-primary {
  background-color: #3B3CCE;
  border-color: #3B3CCE;
}
.btn.btn-primary:hover {
  background-color: rgb(47.7, 48.6734693878, 190.8);
  border-color: rgb(47.7, 48.6734693878, 190.8);
}
.btn.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.btn i {
  font-size: 1em;
}

.btn-group .btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-action {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
.btn-action i {
  font-size: 0.9rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  font-weight: 500;
  border-radius: 0.25rem;
}
.badge.badge-sm {
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
}
.badge i {
  font-size: 0.85em;
  margin-right: 0.25rem;
}

.badge-ticket-status.status-pending {
  background-color: #ffc107;
  color: #000;
}
.badge-ticket-status.status-in-progress {
  background-color: #0dcaf0;
  color: #000;
}
.badge-ticket-status.status-waiting-parts {
  background-color: #6c757d;
  color: #fff;
}
.badge-ticket-status.status-repair {
  background-color: #0d6efd;
  color: #fff;
}
.badge-ticket-status.status-completed {
  background-color: #198754;
  color: #fff;
}
.badge-ticket-status.status-closed {
  background-color: #212529;
  color: #fff;
}
.badge-ticket-status.status-cancelled {
  background-color: #dc3545;
  color: #fff;
}

.badge-equipment-status.status-alive {
  background-color: #198754;
  color: #fff;
}
.badge-equipment-status.status-under-repair {
  background-color: #ffc107;
  color: #000;
}
.badge-equipment-status.status-broken {
  background-color: #dc3545;
  color: #fff;
}
.badge-equipment-status.status-maintenance {
  background-color: #0dcaf0;
  color: #000;
}
.badge-equipment-status.status-retired {
  background-color: #6c757d;
  color: #fff;
}

.form-label {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-control,
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.form-control:focus,
.form-select:focus {
  border-color: #3B3CCE;
  -webkit-box-shadow: 0 0 0 0.2rem rgba(59, 60, 206, 0.25);
          box-shadow: 0 0 0 0.2rem rgba(59, 60, 206, 0.25);
  outline: none;
}
.form-control::-webkit-input-placeholder, .form-select::-webkit-input-placeholder {
  color: #6b7280;
  opacity: 0.7;
}
.form-control::-moz-placeholder, .form-select::-moz-placeholder {
  color: #6b7280;
  opacity: 0.7;
}
.form-control:-ms-input-placeholder, .form-select:-ms-input-placeholder {
  color: #6b7280;
  opacity: 0.7;
}
.form-control::-ms-input-placeholder, .form-select::-ms-input-placeholder {
  color: #6b7280;
  opacity: 0.7;
}
.form-control::placeholder,
.form-select::placeholder {
  color: #6b7280;
  opacity: 0.7;
}

.filter-form .row {
  margin-bottom: 0;
}
.filter-form .col-md-2,
.filter-form .col-md-3 {
  margin-bottom: 1rem;
}

body {
  font-family: "Noto Sans Thai", sans-serif;
  background-color: #FCFBFE;
}

.text-muted {
  color: #6b7280 !important;
}

.text-dark {
  color: #1f2937 !important;
}

* {
  -webkit-transition: background-color 0.2s ease, color 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}