[x-cloak] { display: none !important; }
:root { color-scheme: light; }
html.dark { color-scheme: dark; }
html, body { max-width: 100%; overflow-x: hidden; }
body { font-feature-settings: "ss01" on, "cv11" on; }
img, svg, video, canvas { max-width: 100%; }
.admin-chart { width: 100%; min-width: 0; overflow: hidden; }
.admin-chart .apexcharts-canvas { max-width: 100% !important; }
.note-toolbar { flex-wrap: wrap !important; }
.admin-filter-bar,
.admin-filter-bar * { box-sizing: border-box; }
.admin-filter-bar input,
.admin-filter-bar select {
  min-width: 0 !important;
  max-width: 100%;
  width: 100%;
}
input[type="date"],
input[type="datetime-local"] {
  min-width: 0;
  max-width: 100%;
}
.admin-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.admin-scroll::-webkit-scrollbar-thumb { background: rgb(26 166 74 / 0.35); border-radius: 999px; }
.apexcharts-canvas { margin: 0 auto; }
table thead { background-color: #E7F8ED; }
html.dark table thead { background-color: rgb(20 133 59 / 0.18); }

.note-editor,
.note-editor.note-frame,
.note-editor.note-frame.fullscreen {
  width: 100% !important;
  border: 1px solid #D3E6D9 !important;
  border-radius: 0.75rem;
  box-shadow: none;
  overflow: hidden;
}
.note-dropdown-menu { z-index: 80 !important; }
.note-toolbar {
  background: #E7F8ED !important;
  border-bottom: 1px solid #D3E6D9 !important;
  padding: 8px 10px !important;
}
.note-btn {
  border-radius: 8px !important;
  border-color: #D3E6D9 !important;
  background: #fff !important;
}
.note-btn:hover,
.note-btn.active {
  background: #1AA64A !important;
  color: #fff !important;
  border-color: #1AA64A !important;
}
.note-editable {
  min-height: 160px;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color: #111111;
}
.note-statusbar { display: none; }
html.dark .note-editor.note-frame { border-color: #1e293b !important; }
html.dark .note-toolbar { background: #0f172a !important; border-color: #1e293b !important; }
html.dark .note-editable { background: #020617; color: #e2e8f0; }
html.dark .note-btn { background: #0f172a !important; color: #e2e8f0 !important; }

.hk-swal {
  border-radius: 1.25rem !important;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif !important;
  padding: 1.75rem !important;
}
.hk-swal-title { font-size: 1.25rem !important; color: #111111 !important; }
.hk-swal-text { color: #5C6560 !important; font-size: 0.95rem !important; }
.hk-swal-actions { gap: 0.6rem !important; }
.hk-swal-confirm,
.hk-swal-danger,
.hk-swal-cancel {
  border: 0 !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.65rem 1.15rem !important;
}
.hk-swal-confirm { background: #1AA64A !important; color: #fff !important; }
.hk-swal-danger { background: #D64545 !important; color: #fff !important; }
.hk-swal-cancel { background: #E7F8ED !important; color: #14853B !important; }
.swal2-textarea {
  border: 1px solid #D3E6D9 !important;
  border-radius: 0.75rem !important;
  font-family: inherit !important;
}

@media (max-width: 640px) {
  .hk-swal { width: calc(100vw - 1.5rem) !important; padding: 1.15rem !important; }
  .hk-swal-actions { width: 100% !important; flex-direction: column-reverse !important; }
  .hk-swal-confirm,
  .hk-swal-danger,
  .hk-swal-cancel { width: 100% !important; }
  .swal2-textarea { width: 100% !important; }
}

@media print {
  .no-print { display: none !important; }
  .print-shadow-none, .print-shadow-none * { box-shadow: none !important; }
  body { background: #fff !important; color: #111 !important; }
}

.seat-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1AA64A;
  box-shadow: 0 0 0 0 rgba(26, 166, 74, 0.6);
  animation: seat-pulse 1.8s infinite;
}
@keyframes seat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 166, 74, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(26, 166, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 166, 74, 0); }
}

.seat-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.seat-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #111111;
}
.seat-swatch {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  display: inline-block;
}
.seat-swatch-available {
  background: #fff;
  border-color: #1AA64A;
  color: #1AA64A;
}
.seat-rule {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #D64545;
}
.seat-live {
  margin: 4px 0 12px;
  text-align: center;
  font-size: 12px;
  color: #5C6560;
}
.seat-bus {
  background: #EEF6F1;
  border-radius: 24px;
  padding: 16px 16px 24px;
}
.seat-front {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 0 8px;
}
.seat-front-slot { min-width: 48px; }
.seat-driver { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seat-wheel-badge {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #D3E6D9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seat-wheel {
  width: 36px;
  height: 36px;
  border: 3.5px solid #4A5550;
  border-radius: 50%;
  position: relative;
  display: block;
}
.seat-wheel::before {
  content: "";
  position: absolute;
  left: 11%;
  top: 50%;
  width: 78%;
  height: 3.5px;
  margin-top: -1.75px;
  background: #4A5550;
  border-radius: 2px;
}
.seat-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 3.5px;
  height: 34%;
  margin-left: -1.75px;
  background: #4A5550;
  border-radius: 2px;
  box-shadow: 0 -9px 0 3.5px #4A5550;
}
.seat-driver-label {
  font-size: 10px;
  font-weight: 700;
  color: #8A928C;
  letter-spacing: 0.4px;
}
.seat-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.seat-side {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.seat-aisle { width: 22px; flex-shrink: 0; }
.seat-last-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.seat-wrap {
  width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.seat-wrap:disabled { cursor: default; }
.seat-shell { display: flex; flex-direction: column; align-items: center; }
.seat-headrest {
  width: 22px;
  height: 8px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border: 2px solid;
  border-bottom-width: 0;
  margin-bottom: -1px;
  box-sizing: border-box;
}
.seat-cushion {
  width: 38px;
  height: 26px;
  border-radius: 10px;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-sizing: border-box;
}
.seat-icon { width: 14px; height: 14px; }
.seat-num {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #5C6560;
}
.seat-num.is-muted { color: #8A928C; }
.seat-gender-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.seat-gender-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 36, 28, 0.45);
  border: 0;
}
.seat-gender-card {
  position: relative;
  z-index: 81;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(16, 40, 28, 0.18);
  text-align: center;
}
.seat-gender-card h3 { font-size: 1.15rem; font-weight: 700; }
.seat-gender-card p { margin-top: 4px; font-size: 12px; color: #5C6560; }
.seat-gender-row {
  margin-top: 16px;
  display: flex;
  justify-content: space-around;
  gap: 8px;
}
.seat-gender-row button {
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.seat-gender-icon {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seat-gender-icon svg { width: 36px; height: 36px; }
html.dark .seat-legend-item,
html.dark .seat-num { color: #d4f3de; }
html.dark .seat-bus { background: #10241a; }
html.dark .seat-wheel-badge { background: #0f172a; border-color: #1e293b; }
html.dark .seat-gender-card { background: #0f172a; color: #e2e8f0; }

.field-error-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B42318;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.field-error-label::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5'/%3E%3Ccircle cx='12' cy='16.2' r='.9' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5'/%3E%3Ccircle cx='12' cy='16.2' r='.9' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field-error-label[hidden] { display: none !important; }
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.note-editor.is-invalid {
  border-color: #E11D48 !important;
  background-color: #FFF7F7;
  box-shadow: 0 0 0 4px rgb(225 29 72 / 0.12);
}
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgb(225 29 72 / 0.16);
}
html.dark .field-error-label {
  background: rgb(127 29 29 / 0.35);
  border-color: rgb(251 113 133 / 0.45);
  color: #fecaca;
}
html.dark input.is-invalid,
html.dark select.is-invalid,
html.dark textarea.is-invalid,
html.dark .note-editor.is-invalid {
  background-color: rgb(127 29 29 / 0.2);
  border-color: #fb7185 !important;
}

@media (min-width: 768px) {
  .seat-aisle { width: 36px; }
  .seat-wrap { width: 52px; }
  .seat-headrest { width: 24px; height: 9px; }
  .seat-cushion { width: 42px; height: 28px; }
}



