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

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


.logout-btn[data-v-233afa1a] {
  background-color: transparent;
  border: none;
  border-radius: 50%;
  padding: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.logout-btn[data-v-233afa1a]:hover {
  background-color: #f8d7da;
}
.bg-secondary[data-v-233afa1a] {
  background-color: #a5d6a9 !important;
}
.logo-circle[data-v-233afa1a] {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.08);
}
.logo-circle img[data-v-233afa1a] {
  width: 24px;
  height: 24px;
  -o-object-fit: contain;
     object-fit: contain;
}
.navbar-brand[data-v-233afa1a] {
  gap: 8px;
}
.home-btn[data-v-233afa1a] {
  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 .3s ease;
}
.home-btn[data-v-233afa1a]:hover {
  background-color: #d0e7ff;
}
.signout-toast[data-v-233afa1a] {
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding-left: 20px;
}



.photo-overlay[data-v-7e23d352] {
  position: relative;
  min-height: 92vh;
  background-image: url("/assets/BG0202.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
.user-card[data-v-7e23d352] {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
}
.fuel-card[data-v-7e23d352] {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 200px;
}
.fuel-card[data-v-7e23d352]:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.fuel-card[data-v-7e23d352]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}
.fuel-card .card-header[data-v-7e23d352] {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 15px 15px 0 0;
  padding: 15px;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.fuel-card .card-body[data-v-7e23d352] {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.fuel-image[data-v-7e23d352] {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.fuel-image img[data-v-7e23d352] {
  width: 60px;
  height: 60px;
  -o-object-fit: contain;
     object-fit: contain;
}
.fuel-text[data-v-7e23d352] {
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.fuel-subtext[data-v-7e23d352] {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 5px;
}
.buy-card[data-v-7e23d352] {
  background: linear-gradient(135deg, #c9f8d8 0%, #82f8a3 100%);
}
.sell-card[data-v-7e23d352] {
  background: linear-gradient(135deg, #c9f8d8 0%, #82f8a3 100%);
}
.ripple-effect[data-v-7e23d352] {
  position: relative;
  overflow: hidden;
}
.ripple-effect[data-v-7e23d352]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.ripple-effect[data-v-7e23d352]:active::after {
  width: 300px;
  height: 300px;
}
@media (max-width: 768px) {
.fuel-card[data-v-7e23d352] {
    height: 180px;
    margin-bottom: 20px;
}
.fuel-image[data-v-7e23d352] {
    width: 70px;
    height: 70px;
}
.fuel-image img[data-v-7e23d352] {
    width: 50px;
    height: 50px;
}
.fuel-text[data-v-7e23d352] {
    font-size: 1rem;
}
.row.justify-content-center[data-v-7e23d352] {
    row-gap: 10px;
}
.col-12.col-sm-8.col-md-6.col-lg-5[data-v-7e23d352] {
    padding: 0 20px;
}
}
@media (max-width: 576px) {
.fuel-card[data-v-7e23d352] {
    height: 180px;
    margin-bottom: 5px;
}
.col-12.col-sm-8.col-md-6.col-lg-5[data-v-7e23d352] {
    padding: 0 15px;
    margin-bottom: 15px;
}
.row.justify-content-center[data-v-7e23d352] {
    row-gap: 1px;
}
}


.photo-overlay {
  background-size: cover;
  background-position: center;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
.photo-overlay {
  position: relative;
  background-image: url('/assets/IF-BG1.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.photo-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.section-parallax {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* กล่องฟอร์ม */
.btn{
  border-radius: 25px;
  background-position: top left;
  background-repeat: repeat;
}
.rcorners1 {
  border-radius: 25px;
  background-image: url(/assets/fade-world.png);
  background-position: top left;
  background-repeat: repeat;
}

/* บังคับให้ฟอร์มชิดขวาสุดจริง ๆ */
.login-card {
  margin-left: auto;
  margin-right: 50px;   /* เพิ่มระยะจากขอบขวา 40px */
  max-width: 520px;
}

/* ลดความทึบรูป gallery */
.fadein img {
  opacity: 0.5;
  transition: 1s ease;
  background-color: #e2ffe4;
}
.fadein img:hover {
  opacity: 1;
  transition: 1s ease;
}
body {
  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 {
  position: relative;
}
input.form-control.pr-5 {
  padding-right: 1.4rem;
}
.password-toggle-inside {
  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:hover {
  color: #333;
}
.bg-green{
  background-color: #e2ffe4;
}
.bg-theme-green {
  background-color: #28a745;
}
@media (max-width: 576px) {
.login-card {
    margin-right: auto !important;
    margin-left: auto !important;
}
}

/* ลดความทึบรูป gallery */
.fadein img {
  opacity: 0.5;
  transition: 1s ease;
}
.fadein img:hover {
  opacity: 1;
  transition: 1s ease;
}
body {
  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 {
  position: relative;
}
input.form-control.pr-5 {
  padding-right: 1.4rem;
}
.password-toggle-inside {
  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:hover {
  color: #333;
}
@media (max-width: 576px) {
.container-fluid.px-0 { 
    padding-right: 12px !important; 
    padding-left: 12px !important;
}
}


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


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


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


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


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


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

