@import url(https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css);
@import url(https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css);
@import url(https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css);
@import url(https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css);
@import url(https://cdn.jsdelivr.net/npm/@mdi/font/css/materialdesignicons.min.css);

@font-face {
    font-family: 'CSChatThaiUI';
    src: url(../fonts/CSChatThaiUI.e546794a.ttf) format('truetype');
    font-style: normal;
}
* {
    -webkit-font-feature-settings: "liga" on, "calt" on;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: 'CSChatThaiUI', Roboto, sans-serif !important;
    font-weight: 500;
}


.logout-btn[data-v-bd34ea88] {
  background-color: transparent;
  border: none;
  border-radius: 50%;
  padding: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.logout-btn[data-v-bd34ea88]:hover {
  background-color: #f8d7da;
}
.bg-secondary[data-v-bd34ea88] {
  background-color: transparent !important;
  background-image: url('/assets/Topbar.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(1.1) contrast(1.05); /* ทำให้ภาพดูคมและสว่างขึ้น */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* เส้นขอบล่างบางๆ */
  background-size: 100% auto; /* ให้ภาพกว้างเต็มและสูงอัตโนมัติ */
}
.logo-circle[data-v-bd34ea88] {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-circle img[data-v-bd34ea88] {
  width: 24px;
  height: 24px;
  -o-object-fit: contain;
     object-fit: contain;
}
.navbar-brand[data-v-bd34ea88] {
  gap: 8px;
}
.home-btn[data-v-bd34ea88] {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  padding: 8px;
  width: 44px;
  height: 44px;
  transition: background-color 0.3s ease;
}
.home-btn[data-v-bd34ea88]:hover {
  background-color: #d0e7ff;
}
.signout-toast[data-v-bd34ea88] {
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding-left: 20px;
}


.photo-overlay[data-v-ea03ade2] {
  position: relative;
  min-height: 92vh;
  background-image: url("/assets/BG0202.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.user-card[data-v-ea03ade2] {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
}

/* ---------------- การ์ดหลัก ---------------- */
.fuel-card[data-v-ea03ade2] {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 200px;
}
.fuel-card[data-v-ea03ade2]:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.fuel-card[data-v-ea03ade2]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}
.fuel-card .card-header[data-v-ea03ade2] {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 15px 15px 0 0;
  padding: 15px;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.fuel-card .card-body[data-v-ea03ade2] {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

/* ---------------- รูปภาพในการ์ด ---------------- */
.fuel-image[data-v-ea03ade2] {
  width: 65px;
  height: 65px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}
.fuel-image img[data-v-ea03ade2] {
  width: 50px;
  height: 50px;
  -o-object-fit: contain;
     object-fit: contain;
}

/* ---------------- ข้อความ ---------------- */
.fuel-text[data-v-ea03ade2] {
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.fuel-subtext[data-v-ea03ade2] {
  text-align: center;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

/* ---------------- ป้ายแจ้งเตือน ---------------- */
.alert-badge[data-v-ea03ade2] {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6b6b;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

/* ---------------- สีการ์ด ---------------- */
.buy-card[data-v-ea03ade2],
.sell-card[data-v-ea03ade2] {
  background: linear-gradient(135deg, #c9f8d8 0%, #82f8a3 100%);
}

/* ---------------- Ripple effect ---------------- */
.ripple-effect[data-v-ea03ade2] {
  position: relative;
  overflow: hidden;
}
.ripple-effect[data-v-ea03ade2]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.ripple-effect[data-v-ea03ade2]:active::after {
  width: 400px;
  height: 400px;
  opacity: 0.5;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

/* ---------------- การ์ดย่อย ---------------- */
.sub-card-wrapper[data-v-ea03ade2] {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  animation: popFade-data-v-ea03ade2 0.4s ease forwards;
}
.sub-card[data-v-ea03ade2] {
  background: linear-gradient(135deg, #f0fff4 0%, #b2f5ca 100%);
  border: none;
  border-radius: 20px;
  width: 85%;
  max-width: 400px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}
.sub-card[data-v-ea03ade2]:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.sub-card .card-body[data-v-ea03ade2] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

/* ---------------- ลูกศร ---------------- */
.arrow[data-v-ea03ade2] {
  margin-left: 6px;
  font-size: 0.9rem;
  color: #2c3e50;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.arrow.open[data-v-ea03ade2] {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* ---------------- Animation ---------------- */
@keyframes popFade-data-v-ea03ade2 {
0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.9);
}
60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
}
100% {
    opacity: 1;
    transform: translateY(0) scale(1);
}
}

/* เปิด-ปิดเมนูย่อยนุ่มนวล */
.slide-fade-enter-active[data-v-ea03ade2],
.slide-fade-leave-active[data-v-ea03ade2] {
  transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.slide-fade-enter-from[data-v-ea03ade2] {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}
.slide-fade-leave-to[data-v-ea03ade2] {
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  filter: blur(2px);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
.fuel-card[data-v-ea03ade2] {
    height: 180px;
    margin-bottom: 20px;
}
.fuel-image[data-v-ea03ade2] {
    width: 60px;
    height: 60px;
}
.fuel-image img[data-v-ea03ade2] {
    width: 45px;
    height: 45px;
}
.col-12.col-sm-8.col-md-6.col-lg-5[data-v-ea03ade2] {
    padding: 0 20px;
}
}
@media (max-width: 576px) {
.fuel-card[data-v-ea03ade2] {
    height: 170px;
    margin-bottom: 10px;
}
.col-12.col-sm-8.col-md-6.col-lg-5[data-v-ea03ade2] {
    padding: 0 15px;
}
}















































































































































































































/* ===== LOGIN BACKGROUND ===== */
.photo-overlay[data-v-16bc39e0] {
  position: relative;
  background: linear-gradient(135deg, #d9f7ef, #b3e5dc);
  background-image: url('/assets/WMS_login.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.photo-overlay[data-v-16bc39e0]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===== NUMBER INPUT FIX ===== */
input[type=number][data-v-16bc39e0]::-webkit-outer-spin-button,
input[type=number][data-v-16bc39e0]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number][data-v-16bc39e0] {
  -moz-appearance: textfield;
}

/* ===== SECTION ALIGNMENT ===== */
.section-parallax[data-v-16bc39e0] {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== LOGIN CARD ===== */
.rcorners1[data-v-16bc39e0] {
  border-radius: 25px;
  background-image: url(/assets/fade-back-green.png);
  background-position: top left;
  background-repeat: repeat;
}

/* ===== IMAGE GALLERY EFFECT ===== */
.fadein img[data-v-16bc39e0] {
  opacity: 0.85;
  transition: all 0.8s ease;
  filter: brightness(0.9) hue-rotate(70deg) saturate(1.2);
}

/* เมื่อเอาเมาส์ไปโดน: กลับเป็นสีจริง */
.fadein img[data-v-16bc39e0]:hover {
  opacity: 1;
  filter: none;
  transition: all 0.8s ease;
}

/* ===== BODY ===== */
body[data-v-16bc39e0] {
  margin: 0;
  font-family: Roboto;
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.5;
  color: #333;
  text-align: left;
  background-color: white;
}

/* ===== PASSWORD TOGGLE ===== */
.password-input[data-v-16bc39e0] {
  padding-right: 2.5rem;
}
.password-toggle[data-v-16bc39e0] {
  position: absolute;
  top: 72%;
  right: 1rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
  font-size: 1.2rem;
  z-index: 2;
}

/* ===== LOGIN CARD ALIGN ===== */
.login-card[data-v-16bc39e0] {
  margin-left: auto;
  margin-right: 50px;
  max-width: 480px;
}

/* ===== FOOTER THEME ===== */
footer[data-v-16bc39e0] {
  background-color: #2e7d32; /* เขียวเข้มธรรมชาติ */
  color: #e8f5e9;
  padding-top: 1rem;
}
footer h2[data-v-16bc39e0] {
  color: #b2fab4;
}
footer p[data-v-16bc39e0] {
  color: #dcf8e3;
}
footer .text-primary[data-v-16bc39e0] {
  color: #b9f6ca !important;
}
footer a[data-v-16bc39e0] {
  color: #a5d6a7;
}
@media (max-width: 576px) {
.login-card[data-v-16bc39e0] {
    margin-right: auto !important;
    margin-left: auto !important;
}
}


.photo-overlay {
    position: relative;
    min-height: 92vh;
    background-image: url("/assets/BG0202.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
}
.table-container {
    max-width: 2000px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    overflow-x: auto;
}
.table th,
.table td {
    white-space: nowrap;
    font-size: 14px;
}
.flatpickr-input {
    background-color: #fff;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 0.25rem !important;
    font-size: 0.9rem !important;
    height: 38px !important;
    padding-left: 2.2rem !important;
    padding-right: 0.75rem !important;
    box-shadow: none !important;
}
.flatpickr-input[readonly] {
    background-color: #fff !important;
    opacity: 1 !important;
    cursor: pointer;
}
@media (max-width: 768px) {
.table-container {
        padding: 0.5rem;
}
.table th,
    .table td {
        font-size: 12px;
        padding: 4px;
}
.card-body {
        font-size: 18px;
}
}
.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper .form-control {
    padding-right: 2.5rem;
    background-color: #fff;
}
.input-icon {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #181818;
    pointer-events: none;
}
.img-dialog {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.dialog-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.dialog-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}
.dialog-content img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 8px;
}
.modal-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 95% !important;
}
.modal-fullscreen .modal-content {
    height: 90% !important;
    border-radius: 0 !important;
}
.modal-fullscreen .modal-body {
    height: 100%;
    overflow: hidden !important;
}
.pdf-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
@media (max-width: 768px) {
.input-icon-wrapper {
        margin-bottom: 0.75rem;
}
.btn-primary {
        margin-bottom: 0.75rem;
}
input[type="text"] {
        margin-bottom: 0.75rem;
}
}
.btn-pdf {
    min-width: 120px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.d-flex.gap-2>* {
    margin-bottom: 4px;
}


.photo-overlay {
  position: relative;
  min-height: 92vh;
  background-image: url("/assets/BG0202.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}
.table-container {
  max-width: 2000px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  overflow-x: auto;
}
.table th,
.table td {
  white-space: nowrap;
  font-size: 14px;
}
.flatpickr-input {
  background-color: #fff;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0.25rem !important;
  font-size: 0.9rem !important;
  height: 38px !important;
  padding-left: 2.2rem !important;
  padding-right: 0.75rem !important;
  box-shadow: none !important;
}
.flatpickr-input[readonly] {
  background-color: #fff !important;
  opacity: 1 !important;
  cursor: pointer;
}
@media (max-width: 768px) {
.table-container {
    padding: 0.5rem;
}
.table th,
  .table td {
    font-size: 12px;
    padding: 4px;
}
.card-body {
    font-size: 18px;
}
}
.input-icon-wrapper {
  position: relative;
}
.input-icon-wrapper .form-control {
  padding-right: 2.5rem;
  background-color: #fff;
}
.input-icon {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #181818;
  pointer-events: none;
}
.img-dialog {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.dialog-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}
.dialog-content img {
  max-width: 100%;
  max-height: 80vh;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
}
.modal-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 95% !important;
}
.modal-fullscreen .modal-content {
  height: 90% !important;
  border-radius: 0 !important;
}
.modal-fullscreen .modal-body {
  height: 100%;
  overflow: hidden !important;
}
.pdf-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
@media (max-width: 768px) {
.input-icon-wrapper {
    margin-bottom: 0.75rem;
}
.btn-primary {
    margin-bottom: 0.75rem;
}
input[type="text"] {
    margin-bottom: 0.75rem;
}
}


[data-v-e625b072]:root {
  --row1-h: 420px;
}
.shell[data-v-e625b072] {
  min-height: 92vh;
  background: #eef2f7 url('/assets/BG0202.png') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}
.card[data-v-e625b072] {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  padding: 18px;
}
.title-row[data-v-e625b072] {
  padding-right: clamp(280px, 38vw, 520px);
  min-height: 56px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.title[data-v-e625b072] {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.filters-bar[data-v-e625b072] {
  position: absolute;
  top: 12px;
  right: 12px;
}
.filters-card[data-v-e625b072] {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.date-group[data-v-e625b072] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.date-wrap[data-v-e625b072] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-e625b072]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 38px;
}
.date-wrap .date-icon[data-v-e625b072] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #000;
  pointer-events: none;
}
.btn[data-v-e625b072] {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  height: 40px;
  cursor: pointer;
  font-weight: 600;
}
.btn[data-v-e625b072]:hover {
  filter: brightness(1.05);
}
.kpi-grid[data-v-e625b072] {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.kpi[data-v-e625b072] {
  background: #f0f6ff;
  border: 1px solid #e3eefc;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.kpi-top[data-v-e625b072] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-value[data-v-e625b072] {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.kpi-sub[data-v-e625b072] {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}
.kpi-icon[data-v-e625b072] {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #dbeafe;
}
.kpi-icon svg[data-v-e625b072] {
  width: 20px;
  height: 20px;
  fill: #1e40af;
}
.grid-2[data-v-e625b072] {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}
.grid-2.same-h[data-v-e625b072] {
  align-items: stretch;
}
.grid-2.same-h>.panel[data-v-e625b072] {
  min-height: var(--row1-h);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.grid-2.same-h>.panel .panel-c[data-v-e625b072] {
  flex: 1 1 auto;
  min-height: 0;
}
.panel[data-v-e625b072],
.panel-c[data-v-e625b072] {
  overflow: hidden;
  max-width: 100%;
}
.panel[data-v-e625b072] {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  padding: 12px 14px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.panel.tall[data-v-e625b072] {
  min-height: 340px;
}
.panel-h[data-v-e625b072] {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 2px 0 8px;
}
.panel-c[data-v-e625b072] {
  flex: 1;
  min-height: 0;
}
.muted[data-v-e625b072] {
  color: #64748b;
  font-weight: 400;
}
[data-v-e625b072](.apexcharts-xaxis text) {
  white-space: nowrap;
}
[data-v-e625b072](.apexcharts-canvas),[data-v-e625b072](.apexcharts-svg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
[data-v-e625b072](.apexcharts-tooltip) {
  z-index: 9999 !important;
}
.table-wrap[data-v-e625b072] {
  overflow: auto;
  border-radius: 10px;
}
table[data-v-e625b072] {
  width: 100%;
  border-collapse: collapse;
}
thead th[data-v-e625b072] {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
tbody td[data-v-e625b072] {
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-bottom: 1px solid #f7fafc;
}
.right[data-v-e625b072] {
  text-align: right;
}
.table-footer[data-v-e625b072] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid #eef2f7;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}
.rows-info select[data-v-e625b072] {
  margin: 0 6px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.rows-info .muted[data-v-e625b072] {
  color: #64748b;
  margin-left: 8px;
  font-size: 12px;
}
.pager[data-v-e625b072] {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-btn[data-v-e625b072] {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.pg-btn[data-v-e625b072]:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.page-indicator[data-v-e625b072] {
  font-weight: 600;
  color: #334155;
}
@media (max-width:1024px) {
.kpi-grid[data-v-e625b072] {
    grid-template-columns: repeat(2, 1fr);
}
.grid-2[data-v-e625b072] {
    grid-template-columns: 1fr;
}
.grid-2>.panel[data-v-e625b072] {
    width: 100%;
}
}
@media (max-width:720px) {
.filters-bar[data-v-e625b072] {
    position: static;
    margin-bottom: 12px;
}
.title-row[data-v-e625b072] {
    padding-right: 0;
    min-height: auto;
}
}
@media (max-width:520px) {
.shell[data-v-e625b072] {
    padding: 8px;
}
.card[data-v-e625b072] {
    padding: 12px;
}
.filters-card[data-v-e625b072] {
    flex-wrap: wrap;
    justify-content: stretch;
}
.date-wrap .flatpickr-input[data-v-e625b072]:not([type="hidden"]) {
    width: 100%;
}
.kpi-grid[data-v-e625b072] {
    grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
[data-v-e625b072](.apexcharts-xaxis text) {
    font-size: 11px !important;
}
.title-row[data-v-e625b072] {
    padding-right: 0;
    justify-content: center;
}
.title[data-v-e625b072] {
    width: 100%;
    text-align: center;
}
.filters-bar[data-v-e625b072] {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
}
.filters-card[data-v-e625b072] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.date-wrap .flatpickr-input[data-v-e625b072]:not([type="hidden"]) {
    width: 140px;
    height: 40px;
}
.btn[data-v-e625b072] {
    height: 40px;
    padding: 0 12px;
}
}
@media (max-width: 360px) {
.filters-card[data-v-e625b072] {
    flex-wrap: wrap;
    row-gap: 8px;
}
.date-wrap .flatpickr-input[data-v-e625b072]:not([type="hidden"]) {
    width: 100%;
    max-width: 280px;
}
.btn[data-v-e625b072] {
    width: 100%;
    max-width: 140px;
}
}
.date-wrap[data-v-e625b072] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-e625b072]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
}
.date-icon-btn[data-v-e625b072] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  padding: 0;
  color: #64748b;
  cursor: pointer;
}
.date-icon-btn[data-v-e625b072]:hover {
  color: #000000;
}
.date-icon-btn[data-v-e625b072]:focus {
  outline: none;
}
.date-icon-btn[data-v-e625b072]:focus-visible {
  outline: 2px solid rgba(30, 64, 175, .35);
  border-radius: 6px;
}


[data-v-052a4fcf]:root {
  --row1-h: 420px;
}
.shell[data-v-052a4fcf] {
  min-height: 92vh;
  background: #eef2f7 url('/assets/BG0202.png') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}
.card[data-v-052a4fcf] {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  padding: 18px;
}
.title-row[data-v-052a4fcf] {
  padding-right: clamp(280px, 38vw, 520px);
  min-height: 56px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.title[data-v-052a4fcf] {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.filters-bar[data-v-052a4fcf] {
  position: absolute;
  top: 12px;
  right: 12px;
}
.filters-card[data-v-052a4fcf] {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.date-group[data-v-052a4fcf] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.date-wrap[data-v-052a4fcf] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-052a4fcf]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 38px;
}
.date-wrap .date-icon[data-v-052a4fcf] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #000;
  pointer-events: none;
}
.btn[data-v-052a4fcf] {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  height: 40px;
  cursor: pointer;
  font-weight: 600;
}
.btn[data-v-052a4fcf]:hover {
  filter: brightness(1.05);
}
.kpi-grid[data-v-052a4fcf] {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.kpi[data-v-052a4fcf] {
  background: #f0f6ff;
  border: 1px solid #e3eefc;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.kpi-top[data-v-052a4fcf] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-value[data-v-052a4fcf] {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.kpi-sub[data-v-052a4fcf] {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}
.kpi-icon[data-v-052a4fcf] {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #dbeafe;
}
.kpi-icon svg[data-v-052a4fcf] {
  width: 20px;
  height: 20px;
  fill: #1e40af;
}
.grid-2[data-v-052a4fcf] {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}
.grid-2.same-h[data-v-052a4fcf] {
  align-items: stretch;
}
.grid-2.same-h>.panel[data-v-052a4fcf] {
  min-height: var(--row1-h);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.grid-2.same-h>.panel .panel-c[data-v-052a4fcf] {
  flex: 1 1 auto;
  min-height: 0;
}
.panel[data-v-052a4fcf],
.panel-c[data-v-052a4fcf] {
  overflow: hidden;
  max-width: 100%;
}
.panel[data-v-052a4fcf] {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  padding: 12px 14px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.panel.tall[data-v-052a4fcf] {
  min-height: 340px;
}
.panel-h[data-v-052a4fcf] {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 2px 0 8px;
}
.panel-c[data-v-052a4fcf] {
  flex: 1;
  min-height: 0;
}
.muted[data-v-052a4fcf] {
  color: #64748b;
  font-weight: 400;
}
[data-v-052a4fcf](.apexcharts-xaxis text) {
  white-space: nowrap;
}
[data-v-052a4fcf](.apexcharts-canvas),[data-v-052a4fcf](.apexcharts-svg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
[data-v-052a4fcf](.apexcharts-tooltip) {
  z-index: 9999 !important;
}
.table-wrap[data-v-052a4fcf] {
  overflow: auto;
  border-radius: 10px;
}
table[data-v-052a4fcf] {
  width: 100%;
  border-collapse: collapse;
}
thead th[data-v-052a4fcf] {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
tbody td[data-v-052a4fcf] {
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-bottom: 1px solid #f7fafc;
}
.right[data-v-052a4fcf] {
  text-align: right;
}
.table-footer[data-v-052a4fcf] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid #eef2f7;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}
.rows-info select[data-v-052a4fcf] {
  margin: 0 6px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.rows-info .muted[data-v-052a4fcf] {
  color: #64748b;
  margin-left: 8px;
  font-size: 12px;
}
.pager[data-v-052a4fcf] {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-btn[data-v-052a4fcf] {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.pg-btn[data-v-052a4fcf]:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.page-indicator[data-v-052a4fcf] {
  font-weight: 600;
  color: #334155;
}
@media (max-width:1024px) {
.kpi-grid[data-v-052a4fcf] {
    grid-template-columns: repeat(2, 1fr);
}
.grid-2[data-v-052a4fcf] {
    grid-template-columns: 1fr;
}
.grid-2>.panel[data-v-052a4fcf] {
    width: 100%;
}
}
@media (max-width:720px) {
.filters-bar[data-v-052a4fcf] {
    position: static;
    margin-bottom: 12px;
}
.title-row[data-v-052a4fcf] {
    padding-right: 0;
    min-height: auto;
}
}
@media (max-width:520px) {
.shell[data-v-052a4fcf] {
    padding: 8px;
}
.card[data-v-052a4fcf] {
    padding: 12px;
}
.filters-card[data-v-052a4fcf] {
    flex-wrap: wrap;
    justify-content: stretch;
}
.date-wrap .flatpickr-input[data-v-052a4fcf]:not([type="hidden"]) {
    width: 100%;
}
.kpi-grid[data-v-052a4fcf] {
    grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
[data-v-052a4fcf](.apexcharts-xaxis text) {
    font-size: 11px !important;
}
.title-row[data-v-052a4fcf] {
    padding-right: 0;
    justify-content: center;
}
.title[data-v-052a4fcf] {
    width: 100%;
    text-align: center;
}
.filters-bar[data-v-052a4fcf] {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
}
.filters-card[data-v-052a4fcf] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.date-wrap .flatpickr-input[data-v-052a4fcf]:not([type="hidden"]) {
    width: 140px;
    height: 40px;
}
.btn[data-v-052a4fcf] {
    height: 40px;
    padding: 0 12px;
}
}
@media (max-width: 360px) {
.filters-card[data-v-052a4fcf] {
    flex-wrap: wrap;
    row-gap: 8px;
}
.date-wrap .flatpickr-input[data-v-052a4fcf]:not([type="hidden"]) {
    width: 100%;
    max-width: 280px;
}
.btn[data-v-052a4fcf] {
    width: 100%;
    max-width: 140px;
}
}
.date-wrap[data-v-052a4fcf] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-052a4fcf]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
}
.date-icon-btn[data-v-052a4fcf] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  padding: 0;
  color: #64748b;
  cursor: pointer;
}
.date-icon-btn[data-v-052a4fcf]:hover {
  color: #000000;
}
.date-icon-btn[data-v-052a4fcf]:focus {
  outline: none;
}
.date-icon-btn[data-v-052a4fcf]:focus-visible {
  outline: 2px solid rgba(30, 64, 175, .35);
  border-radius: 6px;
}




.photo-overlay {
  position: relative;
  min-height: 92vh;
  background-image: url("/assets/BG0202.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}
.table-container {
  max-width: 2000px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  overflow-x: auto;
}
.table th,
.table td {
  white-space: nowrap;
  font-size: 14px;
}
.input-icon-wrapper {
  position: relative;
}
.input-icon-wrapper .form-control {
  padding-right: 2.5rem;
  background-color: #fff;
}
.input-icon {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #181818;
  pointer-events: none;
}
.modal-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 95% !important;
}
.modal-fullscreen .modal-content {
  height: 90% !important;
  border-radius: 0 !important;
}
.modal-fullscreen .modal-body {
  height: 100%;
  overflow: hidden !important;
}
.pdf-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}



.mh-left[data-v-2375a2ba] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mh-bar[data-v-2375a2ba] {
  width: 6px;
  height: 18px;
  border-radius: 6px;
  background: #6366f1;
}
.mh-blue[data-v-2375a2ba] {
  background: #3b82f6;
}
.mh-red[data-v-2375a2ba] {
  background: #f65c5c;
}
.input[data-v-2375a2ba] {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
  color: #111827;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.input[data-v-2375a2ba]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.input[readonly][data-v-2375a2ba] {
  background: #f9fafb;
  color: #6b7280;
}
.input[type="time"][data-v-2375a2ba] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
.input[type="time"][data-v-2375a2ba]::-webkit-calendar-picker-indicator {
  opacity: .9;
  cursor: pointer;
  filter: grayscale(.1);
}
.time-modal .form-grid.two-cols[data-v-2375a2ba] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}
.time-modal .fg .lbl[data-v-2375a2ba] {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}
.time-modal .input[data-v-2375a2ba] {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 15px;
}
.time-modal .input[data-v-2375a2ba]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.time-modal .input[readonly][data-v-2375a2ba] {
  background: #f9fafb;
  color: #6b7280;
}
.time-modal .input[type="time"][data-v-2375a2ba] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
.time-modal .input[type="time"][data-v-2375a2ba]::-webkit-calendar-picker-indicator {
  opacity: .9;
  cursor: pointer;
}
.summary-btn.small[data-v-2375a2ba] {
  min-width: 100px;
  height: 60px;
  padding: 4px 8px;
}
.summary-btn.small .sb-title[data-v-2375a2ba] {
  font-size: 14px;
}
.summary-btn.small .sb-sub[data-v-2375a2ba] {
  font-size: 12px;
}
.simple-card[data-v-2375a2ba] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
  cursor: pointer;
  margin-bottom: 6px;
}
.simple-card[data-v-2375a2ba]:hover {
  background: #f9fafb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.simple-card .plate[data-v-2375a2ba] {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
  margin-bottom: 2px;
}
.simple-card .driver-chip[data-v-2375a2ba] {
  display: inline-block;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #374151;
  margin-bottom: 3px;
}
.simple-card .status-row[data-v-2375a2ba] {
  font-size: 13px;
  color: #6b7280;
}
.simple-card .sep[data-v-2375a2ba] {
  margin: 0 3px;
}
.simple-card .badge[data-v-2375a2ba] {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.driver-chip[data-v-2375a2ba] {
  display: inline-block;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: #374151;
  margin-top: 2px;
}



.mh-left[data-v-1258a17a] {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mh-bar[data-v-1258a17a] {
  width: 6px;
  height: 18px;
  border-radius: 6px;
  background: #6366f1;
}
.mh-blue[data-v-1258a17a] {
  background: #3b82f6;
}
.mh-red[data-v-1258a17a] {
  background: #f65c5c;
}
.input[data-v-1258a17a] {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
  color: #111827;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.input[data-v-1258a17a]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.input[readonly][data-v-1258a17a] {
  background: #f9fafb;
  color: #6b7280;
}
.input[type="time"][data-v-1258a17a] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
.input[type="time"][data-v-1258a17a]::-webkit-calendar-picker-indicator {
  opacity: .9;
  cursor: pointer;
  filter: grayscale(.1);
}
.time-modal .form-grid.two-cols[data-v-1258a17a] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}
.time-modal .fg .lbl[data-v-1258a17a] {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}
.time-modal .input[data-v-1258a17a] {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 15px;
}
.time-modal .input[data-v-1258a17a]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.time-modal .input[readonly][data-v-1258a17a] {
  background: #f9fafb;
  color: #6b7280;
}
.time-modal .input[type="time"][data-v-1258a17a] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
.time-modal .input[type="time"][data-v-1258a17a]::-webkit-calendar-picker-indicator {
  opacity: .9;
  cursor: pointer;
}
.summary-btn.small[data-v-1258a17a] {
  min-width: 100px;
  height: 60px;
  padding: 4px 8px;
}
.summary-btn.small .sb-title[data-v-1258a17a] {
  font-size: 14px;
}
.summary-btn.small .sb-sub[data-v-1258a17a] {
  font-size: 12px;
}


/* ============ Layout ============ */
.fleet-shell {
  min-height: 92vh;
  background: #eef2f7 url('/assets/BG0202.png') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}

.fleet-card {
  width: 100%;
  max-width: 1320px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  padding: 14px;
}

.fleet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fleet-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fleet-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

/* ✅ ป้ายเวลาวันนี้ */
.today-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 18px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  position: relative;
}

.today-pill::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 6px;
  border-radius: 6px;
  background: #60a5fa;
}

.today-pill .mdi {
  font-size: 16px;
  color: #2563eb;
}

.title-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.title-right .pill {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

/* ============ Summary Buttons (top) ============ */
.summary-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-width: 230px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
  transition: transform .12s ease, box-shadow .12s ease;
}

.summary-btn::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 6px;
  border-radius: 6px;
  background: #b7eba0;
}

.summary-btn.sb-jo::before {
  background: #34d399;
}

.summary-btn.sb-driver::before {
  background: #60a5fa;
}

.summary-btn.sb-truck::before {
  background: #c084fc;
}

.summary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.sb-left {
  padding-left: 14px;
}

.sb-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
  letter-spacing: .2px;
}

.sb-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.sb-number {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  min-width: 36px;
  text-align: right;
}

/* ============ Grid ============ */
.fleet-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 12px;
  min-height: calc(86vh - 60px);
}

/* ============ Sidebar ============ */
.fleet-sidebar {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.sb-tools {
  padding: 10px;
  border-bottom: 1px solid #eef2f7;
  display: grid;
  gap: 8px;
}

.search-wrap {
  position: relative;
}

.search {
  width: 100%;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 36px 0 12px;
}

.search-wrap .mdi {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.sb-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sb-list {
  overflow: auto;
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
}

/* ===== รายการรถ ===== */
.v-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  padding-right: 120px;
  cursor: pointer;
  align-items: start;
}

.v-item:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.v-item.active {
  outline: 2px solid #2563eb33;
}

.v-left .badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
}

.v-mid {
  min-width: 0;
}

.v-mid .line1 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plate {
  color: #111827;
  font-weight: 800;
}

.type-pill {
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  white-space: nowrap;
}

.line2 {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  /* ให้ทั้งก้อนย้ายบรรทัดได้ */
}

.metrics {
  display: inline-flex;
  /* รวมเป็นก้อนเดียว */
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  /* แต่ไม่ตัดบรรทัดภายในก้อน */
}

.speed,
.distance-time {
  white-space: nowrap;
  /* กันแตกบรรทัดตรง "กม./ชม." ฯลฯ */
}

.sep {
  color: #cbd5e1;
}

.status {
  font-weight: 700;
}

.speed {
  font-size: 12px;
  color: #334155;
}

/* ===== Job card ===== */
.job-card {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .06);
  width: calc(100% + 100px);
  max-width: none;
}

.job-grid {
  display: grid;
  gap: 6px;
}

.job-iconline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #0f172a;
}

.job-key {
  font-weight: 200;
  color: #111827;
}

.job-val {
  color: #111827;
}

.route {
  color: #0f172a;
}

/* ===== Transition (collapse) ===== */
.collapse-enter-active,
.collapse-leave-active {
  transition: max-height .22s ease, opacity .18s ease, margin .18s ease, padding .18s ease;
}

.collapse-enter,
.collapse-leave-to {
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.collapse-enter-to,
.collapse-leave {
  max-height: 420px;
  opacity: 1;
}

/* ===== ปุ่มฝั่งขวา ===== */
.v-right {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  place-self: start end;
}

.icon-btn {
  width: 34px !important; 
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb!important;
  background: #fff !important;
  color: #1f2937 !important;
}

.icon-btn:hover {
  background: #f1f5f9 !important;
}

.empty {
  text-align: center;
  color: #64748b;
  padding: 16px 0;
}

/* Pager & footer */
.sb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed #e5e7eb;
  background: #fff;
}

.pg {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.pg:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pg-info {
  font-size: 12px;
  color: #334155;
  min-width: 120px;
  text-align: center;
}

.sb-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}

.update-in {
  font-size: 12px;
  color: #334155;
}

.legend-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #334155;
}

.legend-mini .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn.mini {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  background: #2563eb;
  color: #fff;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  cursor: pointer;
}

.btn.mini i {
  margin-right: 4px;
}

/* ============ Map ============ */
.fleet-mapwrap {
  border: 1px solid #e8eef6;
  border-radius: 12px;
  overflow: hidden;
  min-height: 520px;
  scroll-margin-top: 80px;
}

.map-legend {
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  padding: 8px 10px;
  min-width: 180px;
}

.map-legend .legend-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin: 4px 0;
}

.legend-icon {
  width: 14px;
  height: 14px;
  -o-object-fit: contain;
     object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  image-rendering: -webkit-optimize-contrast;
}

.map-legend .lbl {
  color: #334155;
  font-weight: 600;
}

.map-legend .count {
  color: #0f172a;
  font-weight: 700;
}

.leaflet-marker-icon.truck-icon {
  image-rendering: -webkit-optimize-contrast;
}

/* ============ Popup (shared) ============ */
.fade-enter-active,
.fade-leave-active {
  transition: opacity .16s ease;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, .45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-panel {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .25);
  padding: 12px;
  outline: none;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  border-bottom: 1px dashed #e5e7eb;
}

.mh-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mh-left h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.mh-bar {
  width: 6px;
  height: 20px;
  border-radius: 6px;
  background: #c084fc;
}

.mh-bar.mh-blue {
  background: #60a5fa;
}

/* ===== Truck power list ===== */
.tp-total {
  padding: 10px 6px;
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

.tp-total .use {
  color: #dc2626;
}

.tp-total .total {
  color: #00ff80;
}

.tp-total .avail {
  color: #16a34a;
}

.tp-total .dot {
  color: #94a3b8;
  margin: 0 8px;
}

.tp-list {
  display: grid;
  gap: 8px;
  padding: 6px;
}

.tp-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
}

.tp-icon {
  width: 44px;
  height: 44px;
  -o-object-fit: contain;
     object-fit: contain;
}

.tp-type {
  font-weight: 800;
  color: #0f172a;
}

.tp-sub {
  font-size: 12px;
  color: #475569;
}

.tp-sub .use {
  color: #dc2626;
  font-weight: 700;
}

.tp-sub .avail {
  color: #16a34a;
  font-weight: 700;
}

.tp-right {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tp-chip {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.tp-chip.avail {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.tp-chip.use {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.tp-empty {
  text-align: center;
  color: #64748b;
  padding: 16px;
}

/* ===== Driver available list ===== */
.dv-total {
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.dv-total .dot {
  color: #94a3b8;
  margin: 0 8px;
}

.dv-list {
  display: grid;
  gap: 8px;
  padding: 6px;
}

.dv-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
}

.dv-left .avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: #2563eb;
}

.dv-name {
  font-weight: 800;
  color: #0f172a;
}

.dv-sub {
  font-size: 12px;
  color: #475569;
}

.dv-right .dv-chip {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 700;
}

/* ===== ลบโฟกัสขอบดำ (focus ring) ===== */
.summary-btn,
.icon-btn,
.btn.mini,
.pg,
.search,
.v-item,
.modal-panel {
  outline: none;
}

.summary-btn:focus,
.summary-btn:focus-visible,
.icon-btn:focus,
.icon-btn:focus-visible,
.btn.mini:focus,
.pg:focus,
.search:focus,
.search:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
}

.search {
  border-color: #e5e7eb;
}

.search:focus {
  border-color: #93c5fd;
}

.summary-btn:focus:not(:focus-visible),
.icon-btn:focus:not(:focus-visible),
.btn.mini:focus:not(:focus-visible),
.pg:focus:not(:focus-visible),
.search:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.select {
  display: block;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.select:focus,
.select:focus-visible {
  border-color: #93c5fd;
  outline: none !important;
  box-shadow: none !important;
}

/* Driver chip under plate */
.driver-row {
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-abbv {
  margin-right: 6px;
  font-weight: 700;
  opacity: .85;
}

.driver-name {
  font-weight: 500;
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .fleet-grid {
    grid-template-columns: 1fr;
  }

  .fleet-mapwrap {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .fleet-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .title-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .summary-btn {
    width: 100%;
    min-width: 0;
  }

  .title-right .pill {
    justify-self: start;
  }

  .sb-footer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn.mini {
    width: 100%;
    justify-self: stretch;
  }

  .fleet-title-left {
    width: 100%;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }

  .fleet-title {
    text-align: center;
  }

  .today-pill {
    justify-content: center;
  }
  
}

@media (max-width: 520px) {
  .driver-row {
    display: block;
    padding: 4px 10px;
    line-height: 1.25;
  }

  .driver-abbv {
    display: inline;
  }

  .driver-name {
    display: inline;
    font-weight: 700;
  }

  .v-item {
    grid-template-columns: 34px 1fr;
    padding-right: 106px;
    align-items: start;
  }

  .v-right {
    position: absolute;
    top: 6px;
    right: 6px;
    gap: 4px;
    flex-wrap: nowrap;
    z-index: 2;
  }

  .v-mid {
    min-width: 0;
  }

  .job-card {
    width: calc(100% + 90px);
    margin-right: -90px;
    max-width: none;
  }

  .v-mid .line1 {
    align-items: flex-start;
  }

  .plate {
    font-size: 18px;
    line-height: 1.15;
  }

  .type-pill {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .speed {
    white-space: nowrap;
  }
    .line2 {
    align-items: flex-start;
  }
  /* ให้กลุ่มตัวเลขระยะทาง/เวลา ตัดบรรทัดได้ */
  .metrics {
    display: block;           /* จาก inline-flex -> block */
    white-space: normal;      /* ยอมตัดบรรทัด */
    overflow-wrap: anywhere;  /* บังคับตัดเมื่อยาวมาก */
  }
  .distance-time {
    display: block;
    white-space: normal;
  }
  .sep { display: none; }
}

@media (max-width: 420px) {
  .v-right {
    flex-wrap: wrap;
    gap: 4px;
  }

  .v-item {
    padding-right: 136px;
  }
}

@media (max-width: 380px) {
  .v-item {
    padding-right: 84px;
  }

  .job-card {
    width: calc(100% + 68px);
    margin-right: -68px;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
  }

.mh-left{ display:flex; align-items:center; gap:10px;}
.mh-bar{ width:6px; height:18px; border-radius:6px; background:#6366f1;}
.mh-blue{ background:#3b82f6;}
.mh-red{ background:#f65c5c; } 
}

[data-v-53263e81]:root {
    --teal: #008c95;
}

/* ====== พื้นหลัง & Container ====== */
.photo-overlay[data-v-53263e81] {
    min-height: 92vh;
    background-image: url("/assets/BG0202.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
}
.table-container[data-v-53263e81] {
    max-width: 2000px;
    width: 100%;
    background-color: rgba(255, 255, 255, .95);
}
.table-responsive[data-v-53263e81] {
    overflow-x: auto;
}
.table th[data-v-53263e81],
.table td[data-v-53263e81] {
    font-size: 14px;
    vertical-align: middle;
}
.wrap[data-v-53263e81] {
    white-space: normal !important;
    word-break: break-word;
    max-width: 210px;
}

/* ====== Flatpickr readonly ====== */
[data-v-53263e81](.flatpickr-input[readonly]),[data-v-53263e81](.form-control[readonly].flatpickr-input),[data-v-53263e81](.form-control[readonly].flatpickr-alt-input) {
    background: #fff !important;
    color: #212529 !important;
    opacity: 1 !important;
    cursor: pointer;
}

/* ====== Utils ====== */
.input-icon-wrapper[data-v-53263e81] {
    position: relative;
}
.input-icon[data-v-53263e81] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

/* ====== Responsive switch ====== */
@media (max-width: 991.98px) {
.desktop-table[data-v-53263e81] {
        display: none !important;
}
}

/* ====== Eye button ====== */
.btn-eye[data-v-53263e81] {
    --theme: #2a3191;
    --theme-600: #2a3191;
    --theme-100: #8689ac;
    border: 2px solid var(--theme);
    color: var(--theme);
    background: #fff;
    border-radius: 12px;
    padding: .42rem .56rem;
    line-height: 1;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .16s ease, box-shadow .18s ease;
}
.btn-eye .mdi[data-v-53263e81] {
    font-size: 18px;
}
.btn-eye[data-v-53263e81]:hover,
.btn-eye[data-v-53263e81]:focus {
    background: var(--theme);
    border-color: var(--theme);
    color: #fff;
    box-shadow: 0 6px 14px rgba(47, 125, 50, .18);
}
.btn-eye[data-v-53263e81]:active {
    background: var(--theme-600);
    border-color: var(--theme-600);
    color: #fff;
    transform: translateY(1px) scale(.98);
    box-shadow: 0 3px 8px rgba(47, 125, 50, .22);
}
.btn-eye[data-v-53263e81]:disabled {
    opacity: .55;
    border-color: var(--theme-100);
    color: #ffffff;
    background: #fff;
    box-shadow: none;
    cursor: not-allowed;
}
.eye-btn[data-v-53263e81] {
    position: relative;
    overflow: hidden;
}
.eye-btn.pressed[data-v-53263e81] {
    transform: scale(.95);
}
.ripple-effect[data-v-53263e81] {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: color-mix(in srgb, var(--theme) 30%, transparent);
    animation: ripple-data-v-53263e81 .45s linear;
    pointer-events: none;
}
@keyframes ripple-data-v-53263e81 {
to {
        transform: scale(3.2);
        opacity: 0;
}
}

/* ====== Card text ====== */
.job-card .label[data-v-53263e81] {
    font-size: .75rem;
    color: #6c757d;
}
.job-card .value[data-v-53263e81] {
    font-size: .95rem;
}

/* ====== Clamp ====== */
.line-clamp-2[data-v-53263e81],
.line-clamp-3[data-v-53263e81] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2[data-v-53263e81] {
    -webkit-line-clamp: 1;
}
.line-clamp-3[data-v-53263e81] {
    -webkit-line-clamp: 3;
}

/* ====== Small table font for md ====== */
@media (max-width: 992px) {
.table th[data-v-53263e81],
    .table td[data-v-53263e81] {
        font-size: 12px;
}
}

/* ====== Fade ====== */
.fade-enter-active[data-v-53263e81],
.fade-leave-active[data-v-53263e81] {
    transition: opacity .18s ease;
}
.fade-enter[data-v-53263e81],
.fade-leave-to[data-v-53263e81] {
    opacity: 0;
}

/* ====== Modal ====== */
.modal-overlay[data-v-53263e81] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 12px;
}
.modal-panel[data-v-53263e81] {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .25);
    padding: 12px;
    outline: none;
}
.modal-head[data-v-53263e81] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.mh-left[data-v-53263e81] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mh-bar[data-v-53263e81] {
    width: 6px;
    height: 28px;
    border-radius: 8px;
    display: inline-block;
}
.mh-red[data-v-53263e81] {
    background: #e74c3c;
}
.icon-btn[data-v-53263e81] {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}
.icon-btn[data-v-53263e81]:hover {
    color: #000;
}
.form-grid[data-v-53263e81] {
    display: grid;
    gap: 12px;
}
.form-grid.two-cols[data-v-53263e81] {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
.form-grid.two-cols[data-v-53263e81] {
        grid-template-columns: 1fr;
}
}
.fg .lbl[data-v-53263e81] {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: 6px;
    display: block;
}
.fg .input[data-v-53263e81] {
    width: 100%;
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    padding: 6px 10px;
}

/* ====== Buttons ====== */
.modal-actions .btn[data-v-53263e81] {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
}
.btn.mini[data-v-53263e81] {
    padding: 6px 10px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    cursor: pointer;
}

/* ====== Inputs ====== */
.mh-blue[data-v-53263e81] {
    background: #3b82f6;
}
.input[data-v-53263e81] {
    width: 100%;
    height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.input[data-v-53263e81]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.input[readonly][data-v-53263e81] {
    background: #f9fafb;
    color: #6b7280;
}
.input[type="time"][data-v-53263e81] {
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}
.input[type="time"][data-v-53263e81]::-webkit-calendar-picker-indicator {
    opacity: .9;
    cursor: pointer;
    filter: grayscale(.1);
}

/* ====== Time modal tweaks ====== */
.time-modal .form-grid.two-cols[data-v-53263e81] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}
.time-modal .fg .lbl[data-v-53263e81] {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}
.time-modal .input[data-v-53263e81] {
    height: 40px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 0 12px;
    font-size: 15px;
}
.time-modal .input[data-v-53263e81]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.time-modal .input[readonly][data-v-53263e81] {
    background: #f9fafb;
    color: #6b7280;
}
.time-modal .input[type="time"][data-v-53263e81] {
    font-variant-numeric: tabular-nums;
    letter-spacing: .2px;
}
.time-modal .input[type="time"][data-v-53263e81]::-webkit-calendar-picker-indicator {
    opacity: .9;
    cursor: pointer;
}

/* ====== Small buttons ====== */
.summary-btn.small[data-v-53263e81] {
    min-width: 100px;
    height: 60px;
    padding: 4px 8px;
}
.summary-btn.small .sb-title[data-v-53263e81] {
    font-size: 14px;
}
.summary-btn.small .sb-sub[data-v-53263e81] {
    font-size: 12px;
}

/* ====== Primary back button ====== */
.toolbar-right[data-v-53263e81] {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.btn-back-primary[data-v-53263e81] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .38rem .8rem;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    background: #1f3e6e;
    border: 1px solid #17345e;
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(16, 24, 40, .08);
    cursor: pointer;
    transition: filter .12s ease, transform .08s ease;
}
.btn-back-primary[data-v-53263e81]:hover {
    filter: brightness(.97);
}
.btn-back-primary[data-v-53263e81]:active {
    transform: translateY(1px);
}
@media (max-width:576px) {
.btn-back-primary[data-v-53263e81] {
        padding: .34rem .7rem;
        font-size: .95rem;
}
}

/* ====== Mobile adjustments ====== */
@media (max-width: 576px) {
html[data-v-53263e81],
    body[data-v-53263e81] {
        max-width: 100%;
        overflow-x: hidden;
}
.photo-overlay[data-v-53263e81] {
        padding: .75rem .5rem;
        overflow-x: hidden;
}
.table-container[data-v-53263e81] {
        padding: 12px !important;
        box-sizing: border-box;
}
.job-card[data-v-53263e81] {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        border-radius: 12px;
}
.job-card .card-body[data-v-53263e81] {
        padding: 12px;
}
.job-card .card-body .d-flex.justify-content-between[data-v-53263e81] {
        flex-wrap: wrap;
        gap: 6px;
        align-items: flex-start;
}
.job-card .card-body .eye-btn[data-v-53263e81] {
        margin-left: auto;
        padding: .32rem .56rem;
        border-width: 1.5px;
        font-size: 13px;
        line-height: 1.1;
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-shrink: 0;
}
.btn-eye .mdi[data-v-53263e81] {
        font-size: 16px;
}
.job-card .value[data-v-53263e81] {
        overflow-wrap: anywhere;
        word-break: break-word;
}
.form-control[data-v-53263e81] {
        max-width: 100%;
}
}

/* ====== ไฮไลท์แถวเมื่อ "เวลาถึง" ว่าง ====== */
.missing-row td[data-v-53263e81] {
    background: #fff7cc !important;
    /* เหลืองอ่อนทั้งแถว */
}
.table-hover tbody tr.missing-row:hover td[data-v-53263e81] {
    background: #ffeea3 !important;
    /* hover เหลืองเข้มขึ้นเล็กน้อย */
    transition: background .15s ease;
}

/* Mobile card ไฮไลท์ */
.missing-card[data-v-53263e81] {
    background: #fff7cc;
    border: 1px solid #ffe38a;
}

/* เน้นข้อความเวลาถึงที่ขาด */
.table tbody tr.missing-row[data-v-53263e81] {
    background-color: #fff7cc !important;
    /* เหลืองอ่อนเท่ากันทั้งแถว */
}

/* Hover ของแถวที่ขาด */
.table-hover tbody tr.missing-row[data-v-53263e81]:hover {
    background-color: #ffeea3 !important;
}

/* ให้ช่องต่างๆ โปร่งใส เพื่อไม่ทับสีเหลืองของแถว */
.table tbody tr.missing-row>td[data-v-53263e81] {
    background-color: transparent !important;
}
.missing-row td[data-v-53263e81] {
    background: #fff7cc !important;
}
.table-hover tbody tr.missing-row:hover td[data-v-53263e81] {
    background: #ffeea3 !important;
}
.poscell-2[data-v-53263e81] {
    --lh: 1.35rem;
    /* ปรับได้ */
    line-height: var(--lh);
    max-height: calc(var(--lh) * 2);
    min-height: calc(var(--lh) * 2);
    /* ให้ดูไม่จม */
    overflow: hidden;

    display: -webkit-box;
    /* multi-line clamp (Chromium/WebKit) */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    word-break: break-word;
    /* กันคำยาว */
    overflow-wrap: anywhere;
}

/* จัดกึ่งกลางแนวตั้งของ cell */
td.align-middle[data-v-53263e81] {
    vertical-align: middle;
}

/* base pill (ของเดิม) */
.type-pill[data-v-53263e81] {
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
}
.type-pill.pill-vacuum[data-v-53263e81] {
    background: #e6f4ff;
    color: #0b5394;
    border-color: #99c9ff;
}
.type-pill.pill-vacuum-7[data-v-53263e81] {
    background: #e9fbf5;
    color: #0b6b57;
    border-color: #9ee5cf;
}
.type-pill.pill-vacuum-15[data-v-53263e81] {
    background: #e6f4ff;
    color: #0b5394;
    border-color: #99c9ff;
}
.type-pill.pill-vacuum-30[data-v-53263e81] {
    background: #eef2ff;
    color: #3730a3;
    border-color: #c7d2fe;
}
.type-pill.pill-rolloff[data-v-53263e81] {
    background: #fff4e5;
    color: #9a3412;
    border-color: #ffcf99;
}
.type-pill.pill-crane[data-v-53263e81] {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #d8b4fe;
}
.type-pill.pill-tanker[data-v-53263e81] {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.type-pill.pill-flatbed[data-v-53263e81] {
    background: #eef2f7;
    color: #334155;
    border-color: #cbd5e1;
}
.type-pill.pill-other[data-v-53263e81] {
    background: #f5f7fb;
    color: #3f3f46;
    border-color: #e4e4e7;
}
@media (hover:hover) {
.type-pill[data-v-53263e81]:hover {
        filter: brightness(.97);
}
}
.page-header[data-v-53263e81] {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* ซ้ายว่าง-กลางหัวข้อ-ขวาปุ่ม */
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    /* แทน mb-4 เดิมได้ */
}
.page-title[data-v-53263e81] {
    margin: 0;
    justify-self: center;
    /* ให้อยู่กึ่งกลางจริงของหน้ากว้าง */
}
.toolbar-right[data-v-53263e81] {
    justify-self: end;
    /* ดันไปขวา */
}
.header-select[data-v-53263e81] {
    max-width: 360px;
    width: 100%;
    height: 36px;
    padding: 0 10px;
}
@media (max-width: 576px) {
.page-header[data-v-53263e81] {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title  title"
            "left   right";
        row-gap: 8px;
}
.page-title[data-v-53263e81] {
        grid-area: title;
        justify-self: center;
}
.header-left[data-v-53263e81] {
        grid-area: left;
}
.toolbar-right[data-v-53263e81] {
        grid-area: right;
        justify-self: end;
}
.header-select[data-v-53263e81] {
        max-width: 100%;
}
}
.photo-overlay[data-v-53263e81]::before,
.photo-overlay[data-v-53263e81]::after {
  pointer-events: none !important;
}


.image-upload-box[data-v-566618c9] {
  display: inline-block;
  position: relative;
}
.image-wrapper[data-v-566618c9] {
  background: #f8f8f8 url('/assets/no-image.png') center center no-repeat;
  background-size: 60px 60px;
  width: 150px;
  height: 150px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  margin: auto;
}
.preview-img[data-v-566618c9] {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.overlay[data-v-566618c9] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}
.image-wrapper:hover .overlay[data-v-566618c9] {
  opacity: 1;
}
.camera-icon[data-v-566618c9] {
  font-size: 28px;
  color: #007bff;
}
.no-image-placeholder[data-v-566618c9] {
  width: 100%;
  height: 100%;
  background: url('/assets/no-image.png') center center no-repeat;
  background-size: cover;
}


.form-grid[data-v-c13898dc] {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.scale-img-under[data-v-c13898dc] {
  width: 60px;
  height: auto;
  margin-bottom: 5px;
}
.net-weight-box[data-v-c13898dc] {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  background: #f9f9f9;
}
.btn+.btn[data-v-c13898dc] {
  margin-left: 10px !important;
}
.is-invalid[data-v-c13898dc] {
  border: 2px solid #dc3545 !important;
  background-color: #ffecec !important;
}


.form-grid[data-v-b2c9adb6] {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.scale-img-under[data-v-b2c9adb6] {
  width: 60px;
  height: auto;
  margin-bottom: 5px;
}
.net-weight-box[data-v-b2c9adb6] {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background: #f9f9f9;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.btn+.btn[data-v-b2c9adb6] {
  margin-left: 10px !important;
}
.is-invalid[data-v-b2c9adb6] {
  border: 2px solid #dc3545 !important;
  background-color: #ffecec !important;
}
.flatpickr-input[readonly][data-v-b2c9adb6],
input.flatpickr-input[readonly][data-v-b2c9adb6] {
  background-color: #fff !important;
  color: #000 !important;
  cursor: text !important;
}
.waste-table th[data-v-b2c9adb6] {
  background-color: #1e8837 !important;
  color: white;
  vertical-align: middle;
  text-align: center;
}
.waste-table td[data-v-b2c9adb6] {
  text-align: center;
  vertical-align: middle;
}
.editing-row[data-v-b2c9adb6] {
  background-color: #fff8e1 !important;
  /* แถวที่กำลังแก้ไข */
}
.table-bordered> :not(caption)>*>*[data-v-b2c9adb6] {
  border-color: #ddd !important;
}
.drift-chip[data-v-b2c9adb6] {
  display: inline-block;
  padding: 2px 10px;
  min-width: auto;
  width: auto;
  border-radius: 999px;
  /* เม็ดยา */
  border: 1px dashed #dc3545;
  /* เส้นประ */
  background: #ffe5e5;
  /* พื้นชมพูอ่อน */
  color: #dc3545;
  /* ตัวหนังสือแดง */
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.drift-chip.is-pos[data-v-b2c9adb6] {
  border-color: #198754;
  background: #e6f6ee;
  color: #198754;
}
.drift-chip.is-zero[data-v-b2c9adb6] {
  border-color: #6c757d;
  background: #f1f3f5;
  color: #6c757d;
}

