@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;
}


:root {
  --wice-primary: #0B5AA9;
  --wice-primary-600: #0A4C90;
  --wice-accent: #E31E24;
  --wice-bg-soft: #EAF2FB;
}
.wice-navbar {
  background: linear-gradient(180deg, var(--wice-primary) 0%, var(--wice-primary-600) 100%);
  box-shadow: 0 4px 14px rgba(9, 61, 118, .28);
}
.logo-circle {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.logo-circle img {
  width: 24px;
  height: 24px;
  -o-object-fit: contain;
     object-fit: contain;
}
.home-btn {
  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 .25s ease, transform .12s ease;
}
.home-btn:hover {
  background-color: rgba(255, 255, 255, .18);
}
.home-btn:active {
  transform: scale(.95);
}
.logout-btn {
  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 .25s ease, transform .12s ease;
}
.logout-btn:hover {
  background-color: rgba(227, 30, 36, .16);
}
.logout-btn:active {
  transform: scale(.95);
}
.signout-toast {
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
  border-radius: 10px;
  padding-left: 20px;
}
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
}
.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
  text-decoration: none;
}


:root {
  --wice-primary: #0b5aa9;
  --wice-primary-600: #0a4c90;
  --wice-primary-700: #093d76;
  --wice-accent: #e31e24;
  --wice-bg-soft: #eaf2fb;
  --wice-text: #153e79;
}
.photo-overlay {
  position: relative;
  min-height: 92vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  background-color: var(--wice-bg-soft);
}
.user-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eef6;
}
.fuel-card {
  background: linear-gradient(
    135deg,
    var(--wice-primary) 0%,
    var(--wice-primary-700) 100%
  );
  border: none;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(11, 90, 169, 0.22);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 200px;
}
.fuel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(9, 61, 118, 0.3);
}
.fuel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 100%
  );
  pointer-events: none;
}
.fuel-card .card-header {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 15px 15px 0 0;
  padding: 15px;
  font-weight: bold;
  color: var(--wice-text);
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--wice-accent);
}
.fuel-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.fuel-image {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(11, 90, 169, 0.18);
}
.fuel-image img {
  width: 60px;
  height: 60px;
  -o-object-fit: contain;
     object-fit: contain;
}


.photo-overlay[data-v-1335ad22] {
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}
input[type=number][data-v-1335ad22]::-webkit-outer-spin-button,
input[type=number][data-v-1335ad22]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number][data-v-1335ad22] {
  -moz-appearance: textfield;
}
.photo-overlay[data-v-1335ad22] {
  position: relative;
  background-image: url('/assets/IF-BG1.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.photo-overlay[data-v-1335ad22]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.section-parallax[data-v-1335ad22] {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* กล่องฟอร์ม */
.btn[data-v-1335ad22] {
  border-radius: 25px;
  background-position: top left;
  background-repeat: repeat;
}
.rcorners1[data-v-1335ad22] {
  border-radius: 25px;
  background-image: url(/assets/fade-world.png);
  background-position: top left;
  background-repeat: repeat;
}

/* บังคับให้ฟอร์มชิดขวาสุดจริง ๆ */
.login-card[data-v-1335ad22] {
  margin-left: auto;
  margin-right: 50px;
  /* เพิ่มระยะจากขอบขวา 40px */
  max-width: 520px;
}

/* ลดความทึบรูป gallery */
.fadein img[data-v-1335ad22] {
  opacity: 0.5;
  transition: 1s ease;
  background-color: #ff0000;
}
.fadein img[data-v-1335ad22]:hover {
  opacity: 1;
  transition: 1s ease;
}
body[data-v-1335ad22] {
  margin: 0;
  font-family: Roboto;
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.5;
  color: #333;
  text-align: left;
  background-color: white;
}
.password-wrapper[data-v-1335ad22] {
  position: relative;
}
input.form-control.pr-5[data-v-1335ad22] {
  padding-right: 1.4rem;
}
.password-toggle-inside[data-v-1335ad22] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: #666;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.password-toggle-inside[data-v-1335ad22]:hover {
  color: #333;
}
.bg-green[data-v-1335ad22] {
  background-color: #e2ffe4;
}
@media (max-width: 576px) {
.login-card[data-v-1335ad22] {
    margin-right: auto !important;
    margin-left: auto !important;
}
}

/* ลดความทึบรูป gallery */
.fadein img[data-v-1335ad22] {
  opacity: 0.5;
  transition: 1s ease;
}
.fadein img[data-v-1335ad22]:hover {
  opacity: 1;
  transition: 1s ease;
}
body[data-v-1335ad22] {
  margin: 0;
  font-family: Roboto;
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.5;
  color: #333;
  text-align: left;
  background-color: white;
}
.password-wrapper[data-v-1335ad22] {
  position: relative;
}
input.form-control.pr-5[data-v-1335ad22] {
  padding-right: 1.4rem;
}
.password-toggle-inside[data-v-1335ad22] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: #666;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.password-toggle-inside[data-v-1335ad22]:hover {
  color: #333;
}
.bg-green[data-v-1335ad22] {
  background-color: #ffffff;
}
.text-wice[data-v-1335ad22] {
  color: #2b388f;
}
@media (max-width: 576px) {
.container-fluid.px-0[data-v-1335ad22] {
    padding-right: 12px !important;
    padding-left: 12px !important;
}
}
.btn-light[data-v-1335ad22] {
  background-color: #ffffff !important;
  border-color: #dddddd !important;
  color: #333333 !important;
}
.btn-light[data-v-1335ad22]:hover {
  background-color: #b3b3b3 !important;
  border-color: #b3b3b3 !important;
  color: #333333 !important;
}


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


[data-v-07001f6c]:root {
  --row1-h: 500px; /* ✅ เพิ่มจาก 420px เป็น 500px */
}
.shell[data-v-07001f6c] {
  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-07001f6c] {
  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-07001f6c] {
  padding-right: clamp(280px, 38vw, 520px);
  min-height: 56px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.title[data-v-07001f6c] {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.filters-bar[data-v-07001f6c] {
  position: absolute;
  top: 12px;
  right: 12px;
}
.filters-card[data-v-07001f6c] {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.date-group[data-v-07001f6c] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.date-wrap[data-v-07001f6c] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-07001f6c]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 38px;
}
.date-wrap .date-icon[data-v-07001f6c] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #000;
  pointer-events: none;
}
.btn[data-v-07001f6c] {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  height: 40px;
  cursor: pointer;
  font-weight: 600;
}
.btn[data-v-07001f6c]:hover {
  filter: brightness(1.05);
}
.kpi-grid[data-v-07001f6c] {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.kpi[data-v-07001f6c] {
  background: #f0f6ff;
  border: 1px solid #e3eefc;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.kpi-top[data-v-07001f6c] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-value[data-v-07001f6c] {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.kpi-sub[data-v-07001f6c] {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}
.kpi-icon[data-v-07001f6c] {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #dbeafe;
}
.kpi-icon svg[data-v-07001f6c] {
  width: 20px;
  height: 20px;
  fill: #1e40af;
}
.grid-2[data-v-07001f6c] {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}
.grid-2.same-h[data-v-07001f6c] {
  align-items: stretch;
}
.grid-2.same-h>.panel[data-v-07001f6c] {
  min-height: var(--row1-h);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.grid-2.same-h>.panel .panel-c[data-v-07001f6c] {
  flex: 1 1 auto;
  min-height: 0;
}
.panel[data-v-07001f6c],
.panel-c[data-v-07001f6c] {
  overflow: hidden;
  max-width: 100%;
}
.panel[data-v-07001f6c] {
  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-07001f6c] {
  min-height: 340px;
}
.panel-h[data-v-07001f6c] {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 2px 0 8px;
}
.panel-c[data-v-07001f6c] {
  flex: 1;
  min-height: 0;
}
.muted[data-v-07001f6c] {
  color: #64748b;
  font-weight: 400;
}
[data-v-07001f6c](.apexcharts-xaxis text) {
  white-space: nowrap;
}
[data-v-07001f6c](.apexcharts-canvas),[data-v-07001f6c](.apexcharts-svg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
[data-v-07001f6c](.apexcharts-tooltip) {
  z-index: 9999 !important;
}
.table-wrap[data-v-07001f6c] {
  overflow: auto;
  border-radius: 10px;
}
table[data-v-07001f6c] {
  width: 100%;
  border-collapse: collapse;
}
thead th[data-v-07001f6c] {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
tbody td[data-v-07001f6c] {
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-bottom: 1px solid #f7fafc;
}
.right[data-v-07001f6c] {
  text-align: right;
}
.table-footer[data-v-07001f6c] {
  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-07001f6c] {
  margin: 0 6px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.rows-info .muted[data-v-07001f6c] {
  color: #64748b;
  margin-left: 8px;
  font-size: 12px;
}
.pager[data-v-07001f6c] {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-btn[data-v-07001f6c] {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.pg-btn[data-v-07001f6c]:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.page-indicator[data-v-07001f6c] {
  font-weight: 600;
  color: #334155;
}
@media (max-width:1024px) {
.kpi-grid[data-v-07001f6c] {
    grid-template-columns: repeat(2, 1fr);
}
.grid-2[data-v-07001f6c] {
    grid-template-columns: 1fr;
}
.grid-2>.panel[data-v-07001f6c] {
    width: 100%;
}
}
@media (max-width:720px) {
.filters-bar[data-v-07001f6c] {
    position: static;
    margin-bottom: 12px;
}
.title-row[data-v-07001f6c] {
    padding-right: 0;
    min-height: auto;
}
}
@media (max-width:520px) {
.shell[data-v-07001f6c] {
    padding: 8px;
}
.card[data-v-07001f6c] {
    padding: 12px;
}
.filters-card[data-v-07001f6c] {
    flex-wrap: wrap;
    justify-content: stretch;
}
.date-wrap .flatpickr-input[data-v-07001f6c]:not([type="hidden"]) {
    width: 100%;
}
.kpi-grid[data-v-07001f6c] {
    grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
[data-v-07001f6c](.apexcharts-xaxis text) {
    font-size: 11px !important;
}
.title-row[data-v-07001f6c] {
    padding-right: 0;
    justify-content: center;
}
.title[data-v-07001f6c] {
    width: 100%;
    text-align: center;
}
.filters-bar[data-v-07001f6c] {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
}
.filters-card[data-v-07001f6c] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.date-wrap .flatpickr-input[data-v-07001f6c]:not([type="hidden"]) {
    width: 140px;
    height: 40px;
}
.btn[data-v-07001f6c] {
    height: 40px;
    padding: 0 12px;
}
}
@media (max-width: 360px) {
.filters-card[data-v-07001f6c] {
    flex-wrap: wrap;
    row-gap: 8px;
}
.date-wrap .flatpickr-input[data-v-07001f6c]:not([type="hidden"]) {
    width: 100%;
    max-width: 280px;
}
.btn[data-v-07001f6c] {
    width: 100%;
    max-width: 140px;
}
}
.date-wrap[data-v-07001f6c] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-07001f6c]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
}
.date-icon-btn[data-v-07001f6c] {
  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-07001f6c]:hover {
  color: #000000;
}
.date-icon-btn[data-v-07001f6c]:focus {
  outline: none;
}
.date-icon-btn[data-v-07001f6c]:focus-visible {
  outline: 2px solid rgba(30, 64, 175, .35);
  border-radius: 6px;
}
.scroll-panel[data-v-07001f6c] {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}
.scroll-panel[data-v-07001f6c]::-webkit-scrollbar {
  width: 10px;
}
.scroll-panel[data-v-07001f6c]::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}
.scroll-panel[data-v-07001f6c]::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 5px;
}
.scroll-panel[data-v-07001f6c]::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}


[data-v-02ade028]:root {
    --row1-h: 420px;
}
.shell[data-v-02ade028] {
    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-02ade028] {
    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-02ade028] {
    padding-right: clamp(280px, 38vw, 520px);
    min-height: 56px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.title[data-v-02ade028] {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.filters-bar[data-v-02ade028] {
    position: absolute;
    top: 12px;
    right: 12px;
}
.filters-card[data-v-02ade028] {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 12px;
    box-shadow: inset 0 1px 0 #fff;
}
.date-group[data-v-02ade028] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.date-wrap[data-v-02ade028] {
    position: relative;
    display: inline-block;
}
.date-wrap .flatpickr-input[data-v-02ade028]:not([type="hidden"]) {
    width: 220px;
    height: 40px;
    padding-right: 38px;
}
.date-wrap .date-icon[data-v-02ade028] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #000;
    pointer-events: none;
}
.btn[data-v-02ade028] {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    height: 40px;
    cursor: pointer;
    font-weight: 600;
}
.btn[data-v-02ade028]:hover {
    filter: brightness(1.05);
}

/* KPI */
.kpi-grid[data-v-02ade028] {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.kpi[data-v-02ade028] {
    background: #f0f6ff;
    border: 1px solid #e3eefc;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 #fff;
}
.kpi-top[data-v-02ade028] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.kpi-value[data-v-02ade028] {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}
.kpi-sub[data-v-02ade028] {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}
.kpi-icon[data-v-02ade028] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #dbeafe;
}
.kpi-icon svg[data-v-02ade028] {
    width: 20px;
    height: 20px;
    fill: #1e40af;
}

/* Panels */
.grid-2[data-v-02ade028] {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    margin-top: 14px;
}
.grid-2.same-h[data-v-02ade028] {
    align-items: stretch;
}
.grid-2.same-h>.panel[data-v-02ade028] {
    min-height: var(--row1-h);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.grid-2.same-h>.panel .panel-c[data-v-02ade028] {
    flex: 1 1 auto;
    min-height: 0;
}

/* ป้องกันล้น */
.panel[data-v-02ade028],
.panel-c[data-v-02ade028] {
    overflow: hidden;
    max-width: 100%;
}
.panel[data-v-02ade028] {
    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-02ade028] {
    min-height: 340px;
}
.panel-h[data-v-02ade028] {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 2px 0 8px;
}
.panel-c[data-v-02ade028] {
    flex: 1;
    min-height: 0;
}
.muted[data-v-02ade028] {
    color: #64748b;
    font-weight: 400;
}

/* Apex – ไม่ให้ label พับบรรทัด & ขยายเต็มกล่อง */
[data-v-02ade028](.apexcharts-xaxis text) {
    white-space: nowrap;
}
[data-v-02ade028](.apexcharts-canvas),[data-v-02ade028](.apexcharts-svg) {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
}
[data-v-02ade028](.apexcharts-tooltip) {
    z-index: 9999 !important;
}

/* Table */
.table-wrap[data-v-02ade028] {
    overflow: auto;
    border-radius: 10px;
}
table[data-v-02ade028] {
    width: 100%;
    border-collapse: collapse;
}
thead th[data-v-02ade028] {
    text-align: left;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
}
tbody td[data-v-02ade028] {
    font-size: 13px;
    color: #0f172a;
    padding: 8px 10px;
    border-bottom: 1px solid #f7fafc;
}
.right[data-v-02ade028] {
    text-align: right;
}

/* Pagination */
.table-footer[data-v-02ade028] {
    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-02ade028] {
    margin: 0 6px;
    padding: 4px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}
.rows-info .muted[data-v-02ade028] {
    color: #64748b;
    margin-left: 8px;
    font-size: 12px;
}
.pager[data-v-02ade028] {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pg-btn[data-v-02ade028] {
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}
.pg-btn[data-v-02ade028]:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.page-indicator[data-v-02ade028] {
    font-weight: 600;
    color: #334155;
}

/* Responsive */
@media (max-width:1024px) {
.kpi-grid[data-v-02ade028] {
        grid-template-columns: repeat(2, 1fr);
}
.grid-2[data-v-02ade028] {
        grid-template-columns: 1fr;
}
.grid-2>.panel[data-v-02ade028] {
        width: 100%;
}
}
@media (max-width:720px) {
.filters-bar[data-v-02ade028] {
        position: static;
        margin-bottom: 12px;
}
.title-row[data-v-02ade028] {
        padding-right: 0;
        min-height: auto;
}
}
@media (max-width:520px) {
.shell[data-v-02ade028] {
        padding: 8px;
}
.card[data-v-02ade028] {
        padding: 12px;
}
.filters-card[data-v-02ade028] {
        flex-wrap: wrap;
        justify-content: stretch;
}
.date-wrap .flatpickr-input[data-v-02ade028]:not([type="hidden"]) {
        width: 100%;
}
.kpi-grid[data-v-02ade028] {
        grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
[data-v-02ade028](.apexcharts-xaxis text) {
        font-size: 11px !important;
}
.title-row[data-v-02ade028] {
        padding-right: 0;
        justify-content: center;
}
.title[data-v-02ade028] {
        width: 100%;
        text-align: center;
}
.filters-bar[data-v-02ade028] {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 12px;
        width: 100%;
}
.filters-card[data-v-02ade028] {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: nowrap;
}
.date-wrap .flatpickr-input[data-v-02ade028]:not([type="hidden"]) {
        width: 140px;
        height: 40px;
}
.btn[data-v-02ade028] {
        height: 40px;
        padding: 0 12px;
}
}
@media (max-width: 360px) {
.filters-card[data-v-02ade028] {
        flex-wrap: wrap;
        row-gap: 8px;
}
.date-wrap .flatpickr-input[data-v-02ade028]:not([type="hidden"]) {
        width: 100%;
        max-width: 280px;
}
.btn[data-v-02ade028] {
        width: 100%;
        max-width: 140px;
}
}
.date-wrap[data-v-02ade028] {
    position: relative;
    display: inline-block;
}
.date-wrap .flatpickr-input[data-v-02ade028]:not([type="hidden"]) {
    width: 220px;
    height: 40px;
    padding-right: 40px;
}
.date-icon-btn[data-v-02ade028] {
    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-02ade028]:hover {
    color: #000000;
}
.date-icon-btn[data-v-02ade028]:focus {
    outline: none;
}
.date-icon-btn[data-v-02ade028]:focus-visible {
    outline: 2px solid rgba(30, 64, 175, .35);
    border-radius: 6px;
}


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


[data-v-4d0cdd56]:root {
  --row1-h: 420px;
}
.shell[data-v-4d0cdd56] {
  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-4d0cdd56] {
  position: relative;
  width: 100%;
  max-width: 1200px;
  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-4d0cdd56] {
  padding-right: clamp(280px, 38vw, 520px);
  min-height: 56px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.title[data-v-4d0cdd56] {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.filters-bar[data-v-4d0cdd56] {
  position: absolute;
  top: 12px;
  right: 12px;
}
.filters-card[data-v-4d0cdd56] {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.date-group[data-v-4d0cdd56] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.date-wrap[data-v-4d0cdd56] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-4d0cdd56]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
}
.date-icon-btn[data-v-4d0cdd56] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
}
.date-icon-btn[data-v-4d0cdd56]:hover {
  color: #000;
}
.kpi-grid[data-v-4d0cdd56] {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.kpi[data-v-4d0cdd56] {
  background: #f0f6ff;
  border: 1px solid #e3eefc;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.kpi-top[data-v-4d0cdd56] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-value[data-v-4d0cdd56] {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.kpi-sub[data-v-4d0cdd56] {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}
.kpi-icon[data-v-4d0cdd56] {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #dbeafe;
}
.kpi-icon svg[data-v-4d0cdd56] {
  width: 20px;
  height: 20px;
  fill: #1e40af;
}
.grid-2[data-v-4d0cdd56] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.grid-2.same-h[data-v-4d0cdd56] {
  align-items: stretch;
}
.grid-2.same-h>.panel[data-v-4d0cdd56] {
  min-height: var(--row1-h);
  display: flex;
  flex-direction: column;
}
.panel[data-v-4d0cdd56] {
  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-4d0cdd56] {
  min-height: 340px;
}
.panel-h[data-v-4d0cdd56] {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 2px 0 8px;
}
.panel-c[data-v-4d0cdd56] {
  flex: 1;
  min-height: 0;
}
.table-wrap[data-v-4d0cdd56] {
  overflow: auto;
  border-radius: 10px;
}
table[data-v-4d0cdd56] {
  width: 100%;
  border-collapse: collapse;
}
thead th[data-v-4d0cdd56] {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
tbody td[data-v-4d0cdd56] {
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-bottom: 1px solid #f7fafc;
}
.right[data-v-4d0cdd56] {
  text-align: right;
}
.table-footer[data-v-4d0cdd56] {
  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-4d0cdd56] {
  margin: 0 6px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.rows-info .muted[data-v-4d0cdd56] {
  color: #64748b;
  margin-left: 8px;
  font-size: 12px;
}
.pager[data-v-4d0cdd56] {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-btn[data-v-4d0cdd56] {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.pg-btn[data-v-4d0cdd56]:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.page-indicator[data-v-4d0cdd56] {
  font-weight: 600;
  color: #334155;
}
.chart-scroll[data-v-4d0cdd56] {
  max-height: 400px;
  overflow-y: auto;
}
@media (max-width:1024px) {
.kpi-grid[data-v-4d0cdd56] {
    grid-template-columns: repeat(2, 1fr);
}
.grid-2[data-v-4d0cdd56] {
    grid-template-columns: 1fr;
}
.grid-2>.panel[data-v-4d0cdd56] {
    width: 100%;
}
}
@media (max-width:720px) {
.filters-bar[data-v-4d0cdd56] {
    position: static;
    margin-bottom: 12px;
}
.title-row[data-v-4d0cdd56] {
    padding-right: 0;
    min-height: auto;
}
}
@media (max-width:520px) {
.shell[data-v-4d0cdd56] {
    padding: 8px;
}
.card[data-v-4d0cdd56] {
    padding: 12px;
}
.filters-card[data-v-4d0cdd56] {
    flex-wrap: wrap;
    justify-content: stretch;
}
.date-wrap .flatpickr-input[data-v-4d0cdd56]:not([type="hidden"]) {
    width: 100%;
}
.kpi-grid[data-v-4d0cdd56] {
    grid-template-columns: 1fr;
}
}
@media (max-width:768px) {
[data-v-4d0cdd56](.apexcharts-xaxis text) {
    font-size: 11px !important;
}
.title-row[data-v-4d0cdd56] {
    padding-right: 0;
    justify-content: center;
}
.title[data-v-4d0cdd56] {
    width: 100%;
    text-align: center;
}
.filters-bar[data-v-4d0cdd56] {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
}
.filters-card[data-v-4d0cdd56] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.date-wrap .flatpickr-input[data-v-4d0cdd56]:not([type="hidden"]) {
    width: 140px;
    height: 40px;
}
}
@media (max-width: 720px) {
.filters-bar[data-v-4d0cdd56] {
    position: static;
    margin-bottom: 12px;
}
.title-row[data-v-4d0cdd56] {
    padding-right: 0;
}
}
.date-wrap .flatpickr-input[data-v-4d0cdd56]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
}
.date-icon-btn[data-v-4d0cdd56] {
  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-4d0cdd56]:hover {
  color: #000000;
}
.date-icon-btn[data-v-4d0cdd56]:focus {
  outline: none;
}
.date-icon-btn[data-v-4d0cdd56]:focus-visible {
  outline: 2px solid rgba(30, 64, 175, .35);
  border-radius: 6px;
}
.grid-2[data-v-4d0cdd56] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 1024px) {
.grid-2[data-v-4d0cdd56] {
    grid-template-columns: 1fr;
}

  /* Tablet -> 1 คอลัมน์ */
}
@media (max-width: 720px) {
.kpi-grid[data-v-4d0cdd56] {
    grid-template-columns: 1fr;
}
.grid-2[data-v-4d0cdd56] {
    grid-template-columns: 1fr;
}
.panel[data-v-4d0cdd56] {
    padding: 10px;
}
.title[data-v-4d0cdd56] {
    font-size: 20px;
    text-align: center;
}
}
.reset-btn[data-v-4d0cdd56] {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #64748b;
  transition: color 0.2s;
  outline: none;
}
.reset-btn[data-v-4d0cdd56]:hover {
  color: #1d4ed8;
}
.reset-btn[data-v-4d0cdd56]:focus {
  outline: none;
  box-shadow: none;
}


[data-v-04db9ca6]:root {
  --row1-h: 420px;
}
.shell[data-v-04db9ca6] {
  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-04db9ca6] {
  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-04db9ca6] {
  padding-right: clamp(280px, 38vw, 520px);
  min-height: 56px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.title[data-v-04db9ca6] {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.filters-bar[data-v-04db9ca6] {
  position: absolute;
  top: 12px;
  right: 12px;
}
.filters-card[data-v-04db9ca6] {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.date-group[data-v-04db9ca6] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.date-wrap[data-v-04db9ca6] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-04db9ca6]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
}
.date-icon-btn[data-v-04db9ca6] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
}
.date-icon-btn[data-v-04db9ca6]:hover {
  color: #000;
}
.kpi-grid[data-v-04db9ca6] {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.kpi[data-v-04db9ca6] {
  background: #f0f6ff;
  border: 1px solid #e3eefc;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff;
}
.kpi-top[data-v-04db9ca6] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kpi-value[data-v-04db9ca6] {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.kpi-sub[data-v-04db9ca6] {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}
.kpi-icon[data-v-04db9ca6] {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #dbeafe;
}
.kpi-icon svg[data-v-04db9ca6] {
  width: 20px;
  height: 20px;
  fill: #1e40af;
}
.grid-2[data-v-04db9ca6] {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}
.grid-2.same-h[data-v-04db9ca6] {
  align-items: stretch;
}
.grid-2.same-h>.panel[data-v-04db9ca6] {
  min-height: var(--row1-h);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.grid-2.same-h>.panel .panel-c[data-v-04db9ca6] {
  flex: 1 1 auto;
  min-height: 0;
}
.panel[data-v-04db9ca6],
.panel-c[data-v-04db9ca6] {
  overflow: hidden;
  max-width: 100%;
}
.panel[data-v-04db9ca6] {
  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-04db9ca6] {
  min-height: 340px;
}
.panel-h[data-v-04db9ca6] {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 2px 0 8px;
}
.panel-c[data-v-04db9ca6] {
  flex: 1;
  min-height: 0;
}
.muted[data-v-04db9ca6] {
  color: #64748b;
  font-weight: 400;
}
[data-v-04db9ca6](.apexcharts-xaxis text) {
  white-space: nowrap;
}
[data-v-04db9ca6](.apexcharts-canvas),[data-v-04db9ca6](.apexcharts-svg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
[data-v-04db9ca6](.apexcharts-tooltip) {
  z-index: 9999 !important;
}
.table-wrap[data-v-04db9ca6] {
  overflow: auto;
  border-radius: 10px;
}
table[data-v-04db9ca6] {
  width: 100%;
  border-collapse: collapse;
}
thead th[data-v-04db9ca6] {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
tbody td[data-v-04db9ca6] {
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-bottom: 1px solid #f7fafc;
}
.right[data-v-04db9ca6] {
  text-align: right;
}
.table-footer[data-v-04db9ca6] {
  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-04db9ca6] {
  margin: 0 6px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.rows-info .muted[data-v-04db9ca6] {
  color: #64748b;
  margin-left: 8px;
  font-size: 12px;
}
.pager[data-v-04db9ca6] {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-btn[data-v-04db9ca6] {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.pg-btn[data-v-04db9ca6]:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.page-indicator[data-v-04db9ca6] {
  font-weight: 600;
  color: #334155;
}
@media (max-width:1024px) {
.kpi-grid[data-v-04db9ca6] {
    grid-template-columns: repeat(2, 1fr);
}
.grid-2[data-v-04db9ca6] {
    grid-template-columns: 1fr;
}
.grid-2>.panel[data-v-04db9ca6] {
    width: 100%;
}
}
@media (max-width:720px) {
.filters-bar[data-v-04db9ca6] {
    position: static;
    margin-bottom: 12px;
}
.title-row[data-v-04db9ca6] {
    padding-right: 0;
    min-height: auto;
}
}
@media (max-width:520px) {
.shell[data-v-04db9ca6] {
    padding: 8px;
}
.card[data-v-04db9ca6] {
    padding: 12px;
}
.filters-card[data-v-04db9ca6] {
    flex-wrap: wrap;
    justify-content: stretch;
}
.date-wrap .flatpickr-input[data-v-04db9ca6]:not([type="hidden"]) {
    width: 100%;
}
.kpi-grid[data-v-04db9ca6] {
    grid-template-columns: 1fr;
}
}
@media (max-width:768px) {
[data-v-04db9ca6](.apexcharts-xaxis text) {
    font-size: 11px !important;
}
.title-row[data-v-04db9ca6] {
    padding-right: 0;
    justify-content: center;
}
.title[data-v-04db9ca6] {
    width: 100%;
    text-align: center;
}
.filters-bar[data-v-04db9ca6] {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    width: 100%;
}
.filters-card[data-v-04db9ca6] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.date-wrap .flatpickr-input[data-v-04db9ca6]:not([type="hidden"]) {
    width: 140px;
    height: 40px;
}
}
.panel-c[data-v-04db9ca6] {
  overflow-x: auto;
  overflow-y: hidden;
}
[data-v-04db9ca6](.apexcharts-canvas),[data-v-04db9ca6](.apexcharts-svg) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
}
[data-v-04db9ca6](.apexcharts-canvas) {
  min-width: 1200px;
}
.chart-scroll[data-v-04db9ca6] {
  overflow-x: auto;
  overflow-y: hidden;
  height: 100%;
}

/* ทำให้ canvas ขยายตาม .chart-inner ได้ */
.chart-scroll[data-v-04db9ca6] (.apexcharts-canvas),
.chart-scroll[data-v-04db9ca6] (.apexcharts-svg) {
  width: auto !important;
  /* override ของเดิม */
  max-width: none !important;
}

/* optional: กันกรอบเลื่อนล้น */
.chart-inner[data-v-04db9ca6] {
  min-height: 280px;
}
.date-wrap .flatpickr-input[data-v-04db9ca6]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
}
.date-icon-btn[data-v-04db9ca6] {
  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-04db9ca6]:hover {
  color: #000000;
}
.date-icon-btn[data-v-04db9ca6]:focus {
  outline: none;
}
.date-icon-btn[data-v-04db9ca6]:focus-visible {
  outline: 2px solid rgba(30, 64, 175, .35);
  border-radius: 6px;
}


.photo-overlay[data-v-9d93dd0e] {
  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;
}
.flatpickr-input.form-control[data-v-9d93dd0e] {
  background-color: #fff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 14px;
  height: 38px;
  padding: 6px 12px;
  box-shadow: none;
}
.flatpickr-input.form-control[data-v-9d93dd0e]:focus {
  border-color: #1976d2 !important;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
  outline: none;
}
.table-container[data-v-9d93dd0e] {
  max-width: 2000px;
  width: 100%;
  background-color: rgba(255, 255, 255, .95);
}
.page-header[data-v-9d93dd0e] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.page-title[data-v-9d93dd0e] {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.toolbar-right[data-v-9d93dd0e] {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toolbar-right .btn[data-v-9d93dd0e] {
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 14px;
}
.btn-primary[data-v-9d93dd0e] {
  background: #1976d2;
  border: none;
  color: #fff;
}
.btn-primary[data-v-9d93dd0e]:hover {
  filter: brightness(1.1);
}
.btn-success[data-v-9d93dd0e] {
  background: #16a34a;
  border: none;
  color: #fff;
}
.btn-success[data-v-9d93dd0e]:hover {
  filter: brightness(1.1);
}
.table th[data-v-9d93dd0e],
.table td[data-v-9d93dd0e] {
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
  padding: 8px;
}
.date-wrap[data-v-9d93dd0e] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-9d93dd0e]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding-right: 40px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
}
.date-icon-btn[data-v-9d93dd0e] {
  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-9d93dd0e]:hover {
  color: #000000;
}
.date-icon-btn[data-v-9d93dd0e]:focus {
  outline: none;
}
.date-icon-btn[data-v-9d93dd0e]:focus-visible {
  outline: 2px solid rgba(30, 64, 175, .35);
  border-radius: 6px;
}
[data-v-9d93dd0e](.flatpickr-input[readonly]),[data-v-9d93dd0e](.form-control[readonly].flatpickr-input),[data-v-9d93dd0e](.form-control[readonly].flatpickr-alt-input) {
  background: #ffffff !important;
  color: #111827 !important;
  opacity: 1 !important;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #ffffff !important;
  border-radius: 6px;
  padding: 6px 10px;
  height: 40px;
  font-size: 14px;
}
.date-wrap .flatpickr-input[data-v-9d93dd0e]:not([type="hidden"]),[data-v-9d93dd0e](.flatpickr-input[readonly]) {
  background: #ffffff !important;
}
.table-wrap[data-v-9d93dd0e] {
  overflow: auto;
  border-radius: 10px;
}
table[data-v-9d93dd0e] {
  width: 100%;
  border-collapse: collapse;
}
thead th[data-v-9d93dd0e] {
  text-align: left;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
tbody td[data-v-9d93dd0e] {
  font-size: 13px;
  color: #0f172a;
  padding: 8px 10px;
  border-bottom: 1px solid #f7fafc;
}
.right[data-v-9d93dd0e] {
  text-align: right;
}
.table-footer[data-v-9d93dd0e] {
  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-9d93dd0e] {
  margin: 0 6px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.rows-info .muted[data-v-9d93dd0e] {
  color: #64748b;
  margin-left: 8px;
  font-size: 12px;
}
.pager[data-v-9d93dd0e] {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg-btn[data-v-9d93dd0e] {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.pg-btn[data-v-9d93dd0e]:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.page-indicator[data-v-9d93dd0e] {
  font-weight: 600;
  color: #334155;
}
.mobile-table .card[data-v-9d93dd0e] {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.mobile-table .card-body[data-v-9d93dd0e] {
  font-size: 14px;
  color: #374151;
}
.mobile-table .card-title[data-v-9d93dd0e] {
  font-weight: 700;
  color: #1e40af;
}
.toolbar-right[data-v-9d93dd0e] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
@media (max-width: 768px) {
.page-header[data-v-9d93dd0e] {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.page-title[data-v-9d93dd0e] {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}
.toolbar-right[data-v-9d93dd0e] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toolbar-right .date-wrap[data-v-9d93dd0e],
  .toolbar-right .btn[data-v-9d93dd0e] {
    width: 100%;
}
}
@media (max-width: 768px) {
.toolbar-right[data-v-9d93dd0e] {
    flex-direction: column;
    align-items: stretch;
}
.toolbar-right .btn[data-v-9d93dd0e],
  .toolbar-right .date-wrap[data-v-9d93dd0e] {
    width: 100%;
}
}


.shell[data-v-bcded2e8] {
  min-height: 92vh;
  background: #eef2f7 url('/assets/BG0202.png') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
}
.flatpickr-input.form-control[data-v-bcded2e8] {
  background-color: #fff !important;
  color: #111827 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  font-size: 14px;
  height: 38px;
  padding: 6px 12px;
  box-shadow: none;
}
.flatpickr-input.form-control[data-v-bcded2e8]:focus {
  border-color: #1976d2 !important;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
  outline: none;
}
.card[data-v-bcded2e8] {
  position: relative;
  width: 100%;
  max-width: 1400px;
  background: #fff;
  border: 1px solid #e8eef6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  padding: 20px;
}
.title-row[data-v-bcded2e8] {
  min-height: 56px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.title[data-v-bcded2e8] {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.nav-tabs[data-v-bcded2e8] {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}
.nav-tabs .nav-link[data-v-bcded2e8] {
  cursor: pointer;
  font-weight: 600;
  color: #64748b;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 8px 16px;
}
.nav-tabs .nav-link.active[data-v-bcded2e8] {
  color: #1e40af;
  border-color: #1e40af;
  background: none;
}
.form-label[data-v-bcded2e8] {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}
input.form-control[data-v-bcded2e8],
textarea.form-control[data-v-bcded2e8],
select.form-control[data-v-bcded2e8] {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}
.btn[data-v-bcded2e8] {
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-primary[data-v-bcded2e8] {
  background: #1976d2;
  border: none;
}
.btn-danger[data-v-bcded2e8] {
  background: #ef4444;
  border: none;
}
.btn[data-v-bcded2e8]:hover {
  filter: brightness(1.05);
}
select.form-control option[disabled][hidden][data-v-bcded2e8] {
  color: #4e84e2;
}
.preview-modal[data-v-bcded2e8] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  cursor: zoom-out;
}
.preview-img[data-v-bcded2e8] {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  display: block;
}
.file-input-group[data-v-bcded2e8] {
  display: flex;
  align-items: stretch;
}
.file-input-group input[type="file"][data-v-bcded2e8] {
  height: 38px;
}
.file-input-group .btn[data-v-bcded2e8] {
  height: 38px;
  display: flex;
  align-items: center;
}
select.form-control[data-v-bcded2e8] {
  height: 38px;
  line-height: 1.5;
  vertical-align: middle;
}
.image-upload-box[data-v-bcded2e8] {
  display: inline-block;
  position: relative;
}
.image-wrapper[data-v-bcded2e8] {
  background: #f8f8f8 url('/assets/no-image.png') center center no-repeat;
  background-size: 60px 60px;
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.preview-img[data-v-bcded2e8] {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.overlay[data-v-bcded2e8] {
  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-bcded2e8] {
  opacity: 1;
}
.camera-icon[data-v-bcded2e8] {
  font-size: 24px;
  color: #007bff;
}
.no-image-placeholder[data-v-bcded2e8] {
  width: 100%;
  height: 100%;
  background: url('/assets/no-image.png') center center no-repeat;
  background-size: cover;
}
.image-upload-box[data-v-bcded2e8] {
  display: inline-block;
  position: relative;
}
.image-wrapper[data-v-bcded2e8] {
  width: 120px;
  height: 120px;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f8f8 url('/assets/no-image.png') center center no-repeat;
  background-size: cover;
}
.preview-img[data-v-bcded2e8] {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.overlay[data-v-bcded2e8] {
  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-bcded2e8] {
  opacity: 1;
}
.camera-icon[data-v-bcded2e8] {
  font-size: 24px;
  color: #007bff;
}
.col-md-6 .form-control[data-v-bcded2e8] {
  margin-bottom: 10px;
}
.no-image-placeholder[data-v-bcded2e8] {
  width: 100%;
  height: 100%;
  background: url('/assets/no-image.png') center center no-repeat;
  background-size: cover;
}
@media (max-width: 768px) {
.form-control[data-v-bcded2e8] {
    margin-bottom: 10px;
}
.btn[data-v-bcded2e8] {
    margin-bottom: 10px;
}
.nav-tabs[data-v-bcded2e8] {
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.nav-tabs .nav-link[data-v-bcded2e8] {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
}
.nav-tabs .nav-link.active[data-v-bcded2e8] {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}
}


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


.photo-overlay[data-v-0c1bb683] {
  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-0c1bb683] {
  max-width: 2000px;
  width: 100%;
  background-color: rgba(255, 255, 255, .95);
}
.page-header[data-v-0c1bb683] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.page-title[data-v-0c1bb683] {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.toolbar-right[data-v-0c1bb683] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar-right .btn[data-v-0c1bb683] {
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 14px;
}
.btn-primary[data-v-0c1bb683] { background: #1976d2; border: none; color: #fff;
}
.btn-primary[data-v-0c1bb683]:hover { filter: brightness(1.1);
}

/* ── tool buttons group ── */
.tool-buttons[data-v-0c1bb683] {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

/* ── row highlight ── */
.row-approved td[data-v-0c1bb683] {
  background-color: #dcfce7 !important;
}
.card-approved[data-v-0c1bb683] {
  border-color: #86efac !important;
  background-color: #dcfce7 !important;
}

/* ── badge icon ── */
.badge-icon[data-v-0c1bb683] {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-import[data-v-0c1bb683]   { background: #dbeafe; color: #1d4ed8;
}
.badge-export[data-v-0c1bb683]   { background: #dcfce7; color: #15803d;
}
.badge-domestic[data-v-0c1bb683] { background: #fef9c3; color: #a16207;
}

/* ── status badge สำหรับ expand table ──
   Y = ติ๊กถูกสีเขียว
   M = ติ๊กถูกสีเหลือง
   N = − สีแดง
── */
.badge-status[data-v-0c1bb683] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid transparent;
}
.badge-status-y[data-v-0c1bb683] {
  background: #dcfce7;
  color: #15803d;
  border-color: #16a34a;
}
.badge-status-m[data-v-0c1bb683] {
  background: #fef9c3;
  color: #a16207;
  border-color: #ca8a04;
}
.badge-status-n[data-v-0c1bb683] {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #dc2626;
}

/* ── expand row ── */
.expand-row td[data-v-0c1bb683] { padding: 0 !important;
}
.expand-container[data-v-0c1bb683] {
  background: #f8fafc;
  border-top: 2px solid #1976d2;
  padding: 12px 16px;
}
.expand-title[data-v-0c1bb683] {
  font-size: 13px;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 8px;
}
.expand-loading[data-v-0c1bb683],
.expand-empty[data-v-0c1bb683],
.expand-error[data-v-0c1bb683] {
  font-size: 13px;
  color: #64748b;
  padding: 8px 0;
}
.expand-error[data-v-0c1bb683] { color: #ef4444;
}
.expand-table[data-v-0c1bb683] {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.expand-table thead tr[data-v-0c1bb683] {
  background: #1976d2;
  color: #fff;
}
.expand-table th[data-v-0c1bb683],
.expand-table td[data-v-0c1bb683] {
  padding: 6px 10px;
  text-align: center;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.expand-table tbody tr[data-v-0c1bb683]:hover { background: #eff6ff;
}

/* ── mobile plan card ── */
.plan-card[data-v-0c1bb683] {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
}

/* ── table ── */
.table th[data-v-0c1bb683], .table td[data-v-0c1bb683] {
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  padding: 7px 8px;
}

/* ── date wrap ── */
.date-wrap[data-v-0c1bb683] {
  position: relative;
  display: inline-block;
}
.date-wrap .flatpickr-input[data-v-0c1bb683]:not([type="hidden"]) {
  width: 220px;
  height: 40px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
}
.date-icon-btn[data-v-0c1bb683] {
  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-0c1bb683]:hover { color: #000;
}
.date-icon-btn[data-v-0c1bb683]:focus { outline: none;
}
[data-v-0c1bb683](.flatpickr-input[readonly]),[data-v-0c1bb683](.form-control[readonly].flatpickr-input),[data-v-0c1bb683](.form-control[readonly].flatpickr-alt-input) {
  background: #ffffff !important;
  color: #111827 !important;
  opacity: 1 !important;
  cursor: pointer;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  height: 40px;
  font-size: 14px;
}

/* ── footer ── */
.table-footer[data-v-0c1bb683] {
  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-0c1bb683] {
  margin: 0 6px;
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.rows-info .muted[data-v-0c1bb683] { color: #64748b; margin-left: 8px; font-size: 12px;
}
.pager[data-v-0c1bb683] { display: flex; align-items: center; gap: 6px;
}
.pg-btn[data-v-0c1bb683] {
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.pg-btn[data-v-0c1bb683]:disabled { opacity: .5; cursor: not-allowed;
}
.page-indicator[data-v-0c1bb683] { font-weight: 600; color: #334155;
}

/* ── search ── */
.search-wrap[data-v-0c1bb683] { position: relative; display: inline-block;
}
.search-input[data-v-0c1bb683] {
  width: 200px;
  height: 40px;
  padding: 6px 36px 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  outline: none;
}
.search-input[data-v-0c1bb683]:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.25);
}
.search-icon[data-v-0c1bb683] {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
}

/* ── mobile card ── */
.mobile-table .card[data-v-0c1bb683] { border-radius: 10px; border: 1px solid #e5e7eb;
}
.mobile-table .card-body[data-v-0c1bb683] { font-size: 14px; color: #374151;
}
.mobile-table .card-title[data-v-0c1bb683] { font-weight: 700; color: #1e40af;
}
@media (max-width: 768px) {
.page-header[data-v-0c1bb683] { flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.page-title[data-v-0c1bb683] { font-size: 18px; font-weight: 700; margin-bottom: 0.5rem; text-align: center; width: 100%;
}
.toolbar-right[data-v-0c1bb683] { width: 100%; flex-direction: column; gap: 8px;
}
.toolbar-right .date-wrap[data-v-0c1bb683], .toolbar-right .btn[data-v-0c1bb683] { width: 100%;
}
.search-input[data-v-0c1bb683] { width: 100%;
}
.search-wrap[data-v-0c1bb683] { width: 100%;
}
}


.shell[data-v-c826fe56] {
  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-c826fe56] {
  width: 100%;
  max-width: 1400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e8eef6;
  padding: 20px;
}
.title-row[data-v-c826fe56] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.title[data-v-c826fe56] { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0;
}
.form-label[data-v-c826fe56] { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 3px;
}
.form-label.required[data-v-c826fe56]::after { content: " *"; color: #ef4444;
}
.required-star[data-v-c826fe56] { color: #ef4444; font-size: 12px;
}
.form-control[data-v-c826fe56] {
  height: 36px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; padding: 0 10px; color: #0f172a;
  background: #fff; box-sizing: border-box; width: 100%;
}
.form-control[data-v-c826fe56]:focus { outline: none; border-color: #1976d2; box-shadow: 0 0 0 2px rgba(25,118,210,0.15);
}
.form-control[disabled][data-v-c826fe56], .form-control[readonly][data-v-c826fe56] { background: #f3f4f6; color: #6b7280; cursor: default;
}
select.form-control[data-v-c826fe56] { -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; padding-right: 28px;
}
.input-with-btn[data-v-c826fe56] { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
}
.input-with-btn .form-control[data-v-c826fe56] { flex: 1; min-width: 0;
}
.input-with-btn .btn[data-v-c826fe56] {
  flex-shrink: 0; height: 36px; min-width: 36px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.qty-badge[data-v-c826fe56] {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 50px; height: 36px; background: #e0f2fe; border: 1px solid #7dd3fc;
  border-radius: 6px; font-size: 13px; font-weight: 700; color: #0369a1; padding: 0 8px;
}
.qty-label[data-v-c826fe56] { flex-shrink: 0; font-size: 12px; font-weight: 600; color: #64748b;
}
.date-wrap[data-v-c826fe56] { position: relative;
}
.date-wrap .form-control[data-v-c826fe56] { padding-right: 34px;
}
.date-wrap .date-icon[data-v-c826fe56] { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; font-size: 15px;
}
[data-v-c826fe56] .flatpickr-input,[data-v-c826fe56] .flatpickr-input.form-control,[data-v-c826fe56] .flatpickr-input[readonly].form-control {
  background: #fff !important; color: #0f172a !important; border: 1px solid #d1d5db !important;
  border-radius: 6px !important; height: 36px !important; line-height: 36px !important;
  font-size: 13px !important; padding: 0 10px !important; cursor: pointer !important; box-sizing: border-box !important;
}
[data-v-c826fe56] .flatpickr-input:focus { outline: none !important; border-color: #1976d2 !important; box-shadow: 0 0 0 2px rgba(25,118,210,0.15) !important;
}
[data-v-c826fe56] .flatpickr-time { border-radius: 8px !important; box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important; border: 1px solid #e2e8f0 !important; padding: 8px 4px !important;
}
[data-v-c826fe56] .flatpickr-time input { font-size: 22px !important; font-weight: 700 !important; color: #0f172a !important; height: 44px !important; border-radius: 6px !important; border: 1px solid #e2e8f0 !important; background: #f8fafc !important;
}
[data-v-c826fe56] .flatpickr-time input:focus { border-color: #1976d2 !important; background: #fff !important;
}
[data-v-c826fe56] .flatpickr-time .flatpickr-time-separator { font-size: 22px !important; font-weight: 700 !important; color: #64748b !important;
}
[data-v-c826fe56] .flatpickr-time .arrowUp,[data-v-c826fe56] .flatpickr-time .arrowDown { border-radius: 4px !important;
}
[data-v-c826fe56] .flatpickr-time .arrowUp:hover,[data-v-c826fe56] .flatpickr-time .arrowDown:hover { background: #dbeafe !important;
}
.file-name-badge[data-v-c826fe56] {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
  padding: 3px 10px 3px 8px; background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 20px; font-size: 12px; font-weight: 600; color: #15803d;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-name-badge i[data-v-c826fe56] { font-size: 13px; flex-shrink: 0;
}
.file-clear-btn[data-v-c826fe56] {
  background: none; border: none; padding: 0; cursor: pointer; color: #16a34a;
  font-size: 14px; line-height: 1; display: inline-flex; align-items: center;
  flex-shrink: 0; margin-left: 2px;
}
.file-clear-btn[data-v-c826fe56]:hover { color: #dc2626;
}
.items-table[data-v-c826fe56] { margin-top: 4px;
}
.items-table table[data-v-c826fe56] { width: 100%; border-collapse: collapse; border-radius: 8px; overflow: hidden;
}
.items-table thead[data-v-c826fe56] { background: #1976d2; color: #fff;
}
.items-table thead th[data-v-c826fe56] { font-size: 13px; font-weight: 600; padding: 8px 10px; text-align: center; border: none;
}
.items-table tbody td[data-v-c826fe56] { padding: 6px 8px; border-bottom: 1px solid #e5e7eb; text-align: center; vertical-align: middle;
}
.items-table tbody td[data-v-c826fe56]:nth-child(2) { text-align: left;
}
.items-table .form-control-sm[data-v-c826fe56] { height: 30px; font-size: 13px; padding: 0 8px; border-radius: 4px;
}
.item-display[data-v-c826fe56] { display: inline-block; padding: 4px 8px; font-size: 13px; color: #374151;
}
.action-buttons[data-v-c826fe56] { display: flex; gap: 4px; justify-content: center; align-items: center;
}
.btn-success[data-v-c826fe56]  { background: #10b981; border: none; color: #fff;
}
.btn-success[data-v-c826fe56]:hover { background: #059669;
}
.btn-warning[data-v-c826fe56]  { background: #f59e0b; border: none; color: #fff;
}
.btn-warning[data-v-c826fe56]:hover { background: #d97706;
}
.btn-secondary[data-v-c826fe56] { background: #6b7280; border: none; color: #fff;
}
.btn-secondary[data-v-c826fe56]:hover { background: #4b5563;
}
.btn-primary[data-v-c826fe56]  { background: #1976d2; border: none; color: #fff; font-weight: 600; font-size: 14px; height: 40px;
}
.btn-primary[data-v-c826fe56]:hover { background: #1565c0;
}
.btn-danger[data-v-c826fe56]   { background: #ef4444; border: none; color: #fff; font-weight: 600; font-size: 14px; height: 40px;
}
.btn-danger[data-v-c826fe56]:hover { background: #dc2626;
}
.btn-info[data-v-c826fe56]     { background: #0891b2; border: none; color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px;
}
.btn-info[data-v-c826fe56]:hover { background: #0e7490;
}
.btn-info[data-v-c826fe56]:disabled { opacity: 0.45; cursor: not-allowed;
}
.btn-outline-secondary[data-v-c826fe56] { background: #fff; border: 1px solid #d1d5db; color: #374151;
}
.btn-outline-secondary[data-v-c826fe56]:hover { background: #f3f4f6;
}
.btn-outline-danger[data-v-c826fe56] { background: #fff; border: 1px solid #fca5a5; color: #ef4444;
}
.btn-outline-danger[data-v-c826fe56]:hover { background: #fef2f2;
}
.btn-outline-primary[data-v-c826fe56] { background: #fff; border: 1px solid #93c5fd; color: #1976d2; font-size: 13px;
}
.btn-outline-primary[data-v-c826fe56]:hover { background: #eff6ff;
}
.btn-outline-info[data-v-c826fe56] { background: #fff; border: 1px solid #67e8f9; color: #0891b2;
}
.btn-outline-info[data-v-c826fe56]:hover { background: #ecfeff;
}
.searchable-wrap[data-v-c826fe56] { position: relative; width: 100%;
}
.searchable-wrap .form-control[data-v-c826fe56] { width: 100%;
}
.drop-list[data-v-c826fe56] {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
  background: #fff; border: 1px solid #d1d5db; border-radius: 0 0 6px 6px;
  max-height: 220px; overflow-y: auto; margin: 0; padding: 0; list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.drop-list li[data-v-c826fe56] { padding: 6px 12px; font-size: 13px; color: #0f172a; cursor: pointer; border-bottom: 1px solid #f1f5f9;
}
.drop-list li[data-v-c826fe56]:last-child { border-bottom: none;
}
.drop-list li[data-v-c826fe56]:hover { background: #eff6ff; color: #1976d2;
}
@media (max-width: 768px) {
.row[data-v-c826fe56] { flex-direction: column;
}
.row > [class^="col-"][data-v-c826fe56] { width: 100%; margin-bottom: 10px;
}
.input-with-btn[data-v-c826fe56] { flex-wrap: wrap;
}
.action-buttons[data-v-c826fe56] { flex-direction: column;
}
}



















































































































































































































































































































































































































































































































































































































































































/* ============================
   ROOT & SHELL
   ============================ */
.epod-root[data-v-7cff19c5] {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
  background: #f0f4fa;
}
.dashboard-shell[data-v-7cff19c5] {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 10px 8px;
  gap: 8px;
}

/* ============================
   TOP HEADER
   ============================ */
.top-header[data-v-7cff19c5] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,.07);
  flex-shrink: 0;
}
.header-left[data-v-7cff19c5] {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.date-filter-group[data-v-7cff19c5] {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.filter-label[data-v-7cff19c5] {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.date-wrap[data-v-7cff19c5] {
  position: relative;
  display: inline-block;
}
.date-wrap[data-v-7cff19c5] :deep(.flatpickr-input:not([type="hidden"])) {
  width: 130px;
  height: 34px;
  padding: 0 32px 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 12px;
  background: #f8fafc;
}
.date-icon-btn[data-v-7cff19c5] {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  font-size: 15px;
}
.fleet-select[data-v-7cff19c5] {
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 12px;
  background: #f8fafc;
  min-width: 110px;
}
.active-filters[data-v-7cff19c5] {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip[data-v-7cff19c5] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  border-radius: 20px;
  padding: 3px 10px 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.filter-chip[data-v-7cff19c5]:hover { background: #bfdbfe;
}
.filter-chip.driver-chip[data-v-7cff19c5] { background: #fef3c7; color: #b45309; border-color: #fcd34d;
}
.filter-chip.driver-chip[data-v-7cff19c5]:hover { background: #fde68a;
}
.chip-close[data-v-7cff19c5] { font-size: 13px; margin-left: 2px;
}
.clear-all-btn[data-v-7cff19c5] {
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.clear-all-btn[data-v-7cff19c5]:hover { color: #ef4444; border-color: #fca5a5; background: #fff1f2;
}
.header-right[data-v-7cff19c5] {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-title[data-v-7cff19c5] {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
}
.header-logo[data-v-7cff19c5] { display: flex; align-items: center; gap: 6px;
}
.logo-img[data-v-7cff19c5] { height: 40px;
}

/* ============================
   MAIN GRID
   ============================ */
.main-grid[data-v-7cff19c5] {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

/* ============================
   LEFT COLUMN
   ============================ */
.left-col[data-v-7cff19c5] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}
.left-col[data-v-7cff19c5]::-webkit-scrollbar { width: 4px;
}
.left-col[data-v-7cff19c5]::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px;
}
.widget-card[data-v-7cff19c5] {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15,23,42,.07);
  transition: box-shadow .2s, border .2s;
}
.chart-active[data-v-7cff19c5] {
  box-shadow: 0 0 0 2px #3B82F6, 0 4px 16px rgba(59,130,246,.18) !important;
}
.flex-grow[data-v-7cff19c5] { flex: 1 1 auto;
}
.widget-title[data-v-7cff19c5] {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 2px;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chart-filter-badge[data-v-7cff19c5] {
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
}
.driver-badge[data-v-7cff19c5] { background: #fef3c7; color: #b45309;
}
.chart-clear-btn[data-v-7cff19c5] {
  font-size: 10px;
  color: #94a3b8;
  cursor: pointer;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  margin-left: auto;
}
.chart-clear-btn[data-v-7cff19c5]:hover { color: #ef4444; border-color: #fca5a5;
}
.donut-hint[data-v-7cff19c5] {
  font-size: 10px;
  color: #94a3b8;
  margin-bottom: 4px;
  text-align: center;
}
.donut-card[data-v-7cff19c5] { flex-shrink: 0; cursor: pointer;
}
.donut-wrap[data-v-7cff19c5] { margin: 0 -6px;
}
.driver-bar-card[data-v-7cff19c5] { cursor: pointer;
}
.driver-bar-wrap[data-v-7cff19c5] { overflow-y: auto;
}
.avg-label[data-v-7cff19c5] { font-size: 10px; color: #94a3b8; text-align: center; margin-top: 4px;
}

/* ============================
   RIGHT COLUMN
   ============================ */
.right-col[data-v-7cff19c5] {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}
.table-card[data-v-7cff19c5] {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.table-filter-bar[data-v-7cff19c5] {
  padding: 5px 12px;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  font-size: 11px;
  color: #1d4ed8;
  flex-shrink: 0;
}
.table-wrap[data-v-7cff19c5] {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;
}
table[data-v-7cff19c5] {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
thead tr[data-v-7cff19c5] {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
}
thead th[data-v-7cff19c5] {
  text-align: left;
  font-size: 11px;
  color: #475569;
  font-weight: 700;
  padding: 7px 8px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
tbody tr[data-v-7cff19c5]:hover { background: #f0f7ff;
}
.row-highlight-driver[data-v-7cff19c5] { background: #fefce8 !important;
}
.row-highlight-order[data-v-7cff19c5]  { background: #eff6ff !important;
}
tbody td[data-v-7cff19c5] {
  font-size: 12px;
  color: #0f172a;
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}
tfoot .total-row[data-v-7cff19c5] {
  background: #f8fafc;
  font-weight: 700;
  font-size: 12px;
  position: sticky;
  bottom: 0;
  z-index: 1;
}
tfoot .total-row td[data-v-7cff19c5] {
  padding: 7px 8px;
  border-top: 2px solid #e2e8f0;
  color: #1e40af;
}
.right[data-v-7cff19c5] { text-align: right;
}
.badge[data-v-7cff19c5] {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  transition: box-shadow .15s;
}
.badge[data-v-7cff19c5]:hover { box-shadow: 0 0 0 2px #94a3b8;
}
.badge-selected[data-v-7cff19c5] { box-shadow: 0 0 0 2px #1d4ed8 !important;
}
.badge-dropex[data-v-7cff19c5] { background: #fee2e2; color: #b91c1c;
}
.badge-export[data-v-7cff19c5] { background: #dbeafe; color: #1d4ed8;
}
.badge-import[data-v-7cff19c5] { background: #d1fae5; color: #065f46;
}
.driver-link[data-v-7cff19c5] {
  cursor: pointer;
  border-bottom: 1px dashed #93c5fd;
}
.driver-link[data-v-7cff19c5]:hover { color: #1d4ed8;
}
.driver-selected[data-v-7cff19c5] { color: #1d4ed8; font-weight: 700; border-bottom: 2px solid #1d4ed8;
}
.trip-no[data-v-7cff19c5] {
  font-size: 10px;
  color: #64748b;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-loading[data-v-7cff19c5] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #64748b;
  font-size: 13px;
}
.spinner[data-v-7cff19c5] {
  width: 20px;
  height: 20px;
  border: 3px solid #e2e8f0;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin-data-v-7cff19c5 0.8s linear infinite;
}
@keyframes spin-data-v-7cff19c5 {
to { transform: rotate(360deg);
}
}
.table-error[data-v-7cff19c5] {
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin: 8px;
  color: #b91c1c;
  font-size: 12px;
}
.table-footer[data-v-7cff19c5] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  flex-shrink: 0;
}
.rows-info[data-v-7cff19c5] { font-size: 11px; color: #475569;
}
.rows-info select[data-v-7cff19c5] { margin: 0 4px; padding: 2px 4px; border: 1px solid #e5e7eb; border-radius: 5px;
}
.muted[data-v-7cff19c5] { color: #94a3b8;
}
.pager[data-v-7cff19c5] { display: flex; align-items: center; gap: 4px;
}
.pg-btn[data-v-7cff19c5] {
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.pg-btn[data-v-7cff19c5]:disabled { opacity: .4; cursor: not-allowed;
}
.page-indicator[data-v-7cff19c5] { font-size: 11px; font-weight: 700; color: #334155;
}

/* ============================
   BOTTOM KPI ROW
   ============================ */
.bottom-kpi-row[data-v-7cff19c5] {
  display: grid;
  grid-template-columns: 1fr 1fr 200px;
  gap: 6px;
  flex-shrink: 0;
  min-height: 0;
}
.kpi-big[data-v-7cff19c5] {
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  min-width: 0;
  overflow: hidden;
}
.kpi-big.blue[data-v-7cff19c5]   { background: linear-gradient(135deg, #1d4ed8, #3B82F6);
}
.kpi-big.orange[data-v-7cff19c5] { background: linear-gradient(135deg, #c2410c, #f97316);
}
.kpi-big-label[data-v-7cff19c5] {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-align: center;
  margin-bottom: 4px;
}
.kpi-big-value[data-v-7cff19c5] {
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.kpi-gauge-card[data-v-7cff19c5] {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15,23,42,.07);
  min-width: 0;
  overflow: hidden;
}
.gauge-title[data-v-7cff19c5] {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0;
  align-self: flex-start;
}

/* ============================
   DEEP APEXCHARTS OVERRIDES
   ============================ */
[data-v-7cff19c5]:deep(.apexcharts-canvas),[data-v-7cff19c5]:deep(.apexcharts-svg) {
  width: 100% !important;
  max-width: 100% !important;
}
[data-v-7cff19c5]:deep(.apexcharts-tooltip) { z-index: 9999 !important;
}

/* ============================
   RESPONSIVE — TABLET (≤1024px)
   ============================ */
@media (max-width: 1024px) {
.epod-root[data-v-7cff19c5] { height: auto; overflow: auto;
}
.dashboard-shell[data-v-7cff19c5] { overflow: visible; height: auto;
}
.main-grid[data-v-7cff19c5] {
    grid-template-columns: 1fr;
    overflow: visible;
}
.left-col[data-v-7cff19c5] {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-y: visible;
}
.left-col .widget-card[data-v-7cff19c5] { flex: 1 1 280px;
}
.right-col[data-v-7cff19c5] { overflow: visible; min-height: unset;
}
.table-card[data-v-7cff19c5] { min-height: 400px; overflow: hidden;
}
.bottom-kpi-row[data-v-7cff19c5] { grid-template-columns: 1fr 1fr 180px;
}
}

/* ============================
   RESPONSIVE — MOBILE (≤768px)
   ============================ */
@media (max-width: 768px) {
  /* scroll ทั้งหน้า ไม่ตัด */
.epod-root[data-v-7cff19c5] {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}
.dashboard-shell[data-v-7cff19c5] {
    height: auto;
    overflow: visible;
    padding: 6px 8px;
    gap: 6px;
}

  /* ── Header ── */
.top-header[data-v-7cff19c5] {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
}

  /* วันที่สองช่องอยู่แถวเดียวกัน */
.header-left[data-v-7cff19c5] {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}
.date-filter-group[data-v-7cff19c5] {
    flex: 1 1 0;
    min-width: 100px;
    max-width: calc(50% - 4px);
}
.date-wrap[data-v-7cff19c5] {
    display: block;
    width: 100%;
}
.date-wrap[data-v-7cff19c5] :deep(.flatpickr-input:not([type="hidden"])) {
    width: 100%;
    height: 34px;
    font-size: 12px;
    box-sizing: border-box;
    padding-right: 30px;
}
.header-right[data-v-7cff19c5] {
    width: 100%;
    justify-content: space-between;
}
.header-title[data-v-7cff19c5] { font-size: 15px;
}

  /* ── Grid ── */
.main-grid[data-v-7cff19c5] {
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible;
    min-height: unset;
}

  /* ── Left col ── */
.left-col[data-v-7cff19c5] {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    min-height: unset;
    width: 100%;
}
.left-col .widget-card[data-v-7cff19c5] {
    flex: unset;
    width: 100%;
    box-sizing: border-box;
}

  /* ── Donut ── */
.donut-card[data-v-7cff19c5] {
    padding-bottom: 10px;
    overflow: hidden;
    box-sizing: border-box;
}
.donut-wrap[data-v-7cff19c5] {
    margin: 0;
    width: 100%;
    overflow: hidden;
}
[data-v-7cff19c5]:deep(.apexcharts-canvas) {
    width: 100% !important;
    max-width: 100% !important;
}
[data-v-7cff19c5]:deep(.apexcharts-canvas svg) {
    width: 100% !important;
    max-width: 100% !important;
}

  /* ── Driver bar ── */
.driver-bar-card[data-v-7cff19c5] {
    flex: unset;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.driver-bar-wrap[data-v-7cff19c5] {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

  /* ── Right col ── */
.right-col[data-v-7cff19c5] {
    gap: 6px;
    overflow: visible;
    min-height: unset;
    width: 100%;
}

  /* ── Table ── */
.table-card[data-v-7cff19c5] {
    flex: unset;
    width: 100%;
    box-sizing: border-box;
    min-height: 280px;
    max-height: 420px;
    overflow: hidden;
}
.table-wrap[data-v-7cff19c5] {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
table[data-v-7cff19c5] {
    font-size: 11px;
    min-width: 680px;
}
thead th[data-v-7cff19c5] { font-size: 10px; padding: 5px 6px; white-space: nowrap;
}
tbody td[data-v-7cff19c5]  { font-size: 11px; padding: 5px 6px;
}
.table-footer[data-v-7cff19c5] {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
}

  /* ── KPI row ── */
.bottom-kpi-row[data-v-7cff19c5] {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}
.kpi-gauge-card[data-v-7cff19c5] {
    grid-column: 1 / -1;
    width: 100%;
}
.kpi-big-value[data-v-7cff19c5] { font-size: 26px;
}
.kpi-big-label[data-v-7cff19c5] { font-size: 10px;
}
}

/* ============================
   RESPONSIVE — SMALL (≤480px)
   ============================ */
@media (max-width: 480px) {
.dashboard-shell[data-v-7cff19c5] { padding: 4px 6px; gap: 5px;
}
.top-header[data-v-7cff19c5]      { padding: 8px 10px;
}
.header-title[data-v-7cff19c5]    { font-size: 13px;
}
.date-filter-group[data-v-7cff19c5] { min-width: 90px;
}
.date-wrap[data-v-7cff19c5] :deep(.flatpickr-input:not([type="hidden"])) {
    font-size: 11px;
    height: 32px;
}
.bottom-kpi-row[data-v-7cff19c5] { grid-template-columns: 1fr;
}
.kpi-gauge-card[data-v-7cff19c5] { grid-column: unset;
}
.kpi-big-value[data-v-7cff19c5]  { font-size: 22px;
}
.kpi-big[data-v-7cff19c5]        { padding: 10px 12px;
}
.table-card[data-v-7cff19c5]     { max-height: 340px;
}
.active-filters[data-v-7cff19c5] { width: 100%;
}
.filter-chip[data-v-7cff19c5]    { font-size: 10px; padding: 2px 8px 2px 6px;
}
}

