/**
 * KC Visual — ไอคอนอินโฟกราฟิก · รูปจัดเรียงทิชชู · แอนิเมชันโหลด
 * มือถือเต็มจอ / คอมการ์ดกว้าง
 */
:root {
  --kc-vis-navy: #0a1628;
  --kc-vis-cyan: #00b4ff;
  --kc-vis-blue: #1565c0;
  --kc-font: 'Sarabun', 'Prompt', sans-serif;
  --kc-font-num: 'Exo 2', 'Prompt', 'Sarabun', sans-serif;
}

/* ── ไอคอนเมนูแบบอินโฟกราฟิก (กล่องไล่สี) ── */
body.admin-pc-portal .admin-acc-hdr > i,
body.admin-pc-portal .admin-nav-item > i,
body.checker-pc-portal .admin-acc-hdr > i,
body.checker-pc-portal .admin-nav-item > i {
  width: 28px !important;
  height: 28px;
  border-radius: 9px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  flex-shrink: 0;
}

body.admin-pc-portal .admin-acc-hdr > i,
body.checker-pc-portal .admin-acc-hdr > i {
  background: linear-gradient(160deg, rgba(0, 180, 255, 0.28), rgba(13, 71, 161, 0.22));
  color: #7dd3fc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.admin-pc-portal .admin-nav-item > i,
body.checker-pc-portal .admin-nav-item > i {
  background: rgba(255, 255, 255, 0.08);
  color: #cfe8ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.admin-pc-portal .admin-nav-item:hover > i,
body.checker-pc-portal .admin-nav-item:hover > i {
  background: linear-gradient(160deg, rgba(0, 180, 255, 0.35), rgba(21, 101, 192, 0.28));
  color: #fff !important;
}

body.admin-pc-portal .admin-nav-item.active > i,
body.checker-pc-portal .admin-nav-item.active > i {
  background: linear-gradient(160deg, #00b4ff, #1565c0);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 180, 255, 0.28);
}

body.admin-pc-portal .kc-so-tab i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f9;
  color: #5a6d85;
  font-size: 13px;
}

body.admin-pc-portal .kc-so-tab.on i {
  background: linear-gradient(160deg, #00b4ff, #1565c0);
  color: #fff;
}

body.admin-pc-portal .kc-so-icon-btn i,
body.admin-pc-portal .kc-so-menu-btn {
  font-size: 15px;
}

/* ── ไอคอน KPI อินโฟ ── */
body.admin-pc-portal #s-admin-home .ah-ops-kpi-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-icon i {
  line-height: 1;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kc-status-ico {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.kc-status-ico--ok { background: #dcfce7; color: #15803d; }
.kc-status-ico--wait { background: #ffedd5; color: #c2410c; }
.kc-status-ico--leave { background: #e0e7ff; color: #3730a3; }
.kc-status-ico--off { background: #f1f5f9; color: #475569; }

/* ── โหลด: กองทิชชูกระพือ + แถบ ── */
.kc-load-overlay {
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

body.admin-pc-portal #s-admin-home .ah-ops-dashboard {
  position: relative;
}

/* Hub ซุป/แอดมิน: โชว์แดชบอร์ดทั้งมือถือและคอม — ชนะ [hidden] และ mobile shell */
body.admin-pc-portal:not(.mt-auth-screen) #s-admin-home.active {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}

body.admin-pc-portal #s-admin-home #ah-ops-dashboard {
  display: block !important;
  visibility: visible !important;
}

#ah-ops-dashboard.is-loading .kc-load-overlay,
.kc-load-overlay.is-on {
  display: flex !important;
}

.kc-load-card {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 8px 16px 4px;
}

.kc-load-packs {
  width: 72px;
  height: 56px;
  margin: 0 auto 14px;
  position: relative;
}

.kc-load-packs span {
  position: absolute;
  left: 50%;
  width: 42px;
  height: 14px;
  margin-left: -21px;
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(180deg, #fff 0%, #e8f4ff 60%, #cfe8ff 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  animation: kcPackBounce 1.05s ease-in-out infinite;
}

.kc-load-packs span:nth-child(1) { bottom: 4px; animation-delay: 0s; }
.kc-load-packs span:nth-child(2) { bottom: 16px; width: 46px; margin-left: -23px; animation-delay: 0.12s; background: linear-gradient(180deg, #fff 0%, #dbeafe 100%); }
.kc-load-packs span:nth-child(3) { bottom: 28px; width: 38px; margin-left: -19px; animation-delay: 0.24s; background: linear-gradient(180deg, #fff 0%, #fce7f3 100%); }

@keyframes kcPackBounce {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-7px) scaleX(1.04); }
}

.kc-load-bar {
  width: min(220px, 70vw);
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.kc-load-bar i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00b4ff, #fff);
  animation: kcLoadSlide 1.1s ease-in-out infinite;
}

@keyframes kcLoadSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.kc-load-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kc-load-card small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.78;
  font-weight: 500;
}

.kc-skel {
  display: inline-block;
  height: 0.85em;
  min-width: 4.5em;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: kcSkel 1.1s ease-in-out infinite;
  vertical-align: -2px;
}

@keyframes kcSkel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

#ah-ops-dashboard.is-loading .ah-ops-kpi-value,
#ah-ops-dashboard.is-loading .ah-ops-kpi-pct {
  color: transparent !important;
}

#ah-ops-dashboard.is-loading .ah-ops-kpi-sub {
  min-height: 1.1em;
}

.ah-ops-empty.kc-load-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  color: #5a6d85;
  font-weight: 600;
}

.ah-ops-empty.kc-load-inline .kc-load-packs {
  transform: scale(0.72);
  margin-bottom: 0;
}

.ah-ops-empty.kc-load-inline .kc-load-packs span {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

@media (max-width: 959px) {
  body.admin-pc-portal.admin-pc-pure-admin #s-admin-home #ah-ops-dashboard {
    margin: 0;
    padding: 0 0 16px;
    min-height: 0;
  }

  #ah-ops-dashboard.is-loading .kc-load-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    min-height: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.88) 0%, rgba(13, 71, 161, 0.92) 100%);
  }

  body.admin-pc-portal #s-admin-home .ah-ops-layout {
    padding: 0 10px;
    gap: 8px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-head {
    margin-bottom: 10px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 13px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-card {
    padding: 12px 12px 10px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-label {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-value,
  body.admin-pc-portal #s-admin-home .ah-ops-kpi-pct {
    font-size: 22px !important;
    margin-top: 4px;
    letter-spacing: -0.01em;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-sub {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-donut-wrap,
  body.admin-pc-portal #s-admin-home .ah-ops-donut-wrap canvas {
    width: 40px !important;
    height: 40px !important;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--urgent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    padding: 8px 12px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--urgent .ah-ops-kpi-value {
    margin: 0;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--urgent .ah-ops-kpi-sub {
    width: 100%;
    margin: 0;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-panel,
  body.admin-pc-portal #s-admin-home .ah-ops-chart-card {
    padding: 10px 12px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-panel-title,
  body.admin-pc-portal #s-admin-home .ah-ops-chart-title {
    font-size: 15px;
    font-weight: 800;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-checkin-status .ah-ops-panel-hdr {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-checkin-status .ah-inp {
    min-width: 0 !important;
    width: 100%;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-checkin-col {
    padding: 0;
    max-height: none;
  }

  body.admin-pc-portal #s-admin-home .ah-ops-checkin-list {
    max-height: 220px;
  }
}

@media (min-width: 960px) {
  #ah-ops-dashboard.is-loading {
    position: relative;
  }

  #ah-ops-dashboard.is-loading .kc-load-overlay {
    position: absolute;
    inset: 8px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(10, 22, 40, 0.86), rgba(13, 71, 161, 0.9));
    backdrop-filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-load-packs span,
  .kc-load-bar i,
  .kc-skel { animation: none; }
}

/* ── ไอคอนอินโฟกราฟิก (ใช้ซ้ำ) ── */
.kc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 11px;
  flex-shrink: 0;
  vertical-align: -4px;
}
.kc-ico--ok { background: #dcfce7; color: #15803d; }
.kc-ico--out { background: #dbeafe; color: #1d4ed8; }
.kc-ico--warn { background: #fee2e2; color: #b91c1c; }
.kc-ico--load { background: #e0f2fe; color: #0369a1; }
.kc-ico--cam { background: linear-gradient(160deg, #00b4ff, #1565c0); color: #fff; }
.kc-ico--pin { background: #fee2e2; color: #dc2626; }

/* ── หน้าเช็คอิน: รูปพนักงานจัดเรียง + ไอคอนใหม่ ── */
#s-checkin .ci-merch-strip {
  position: relative;
  margin: 0 0 14px;
  border-radius: 20px;
  overflow: hidden;
  height: 118px;
  box-shadow: 0 8px 22px -8px rgba(10, 22, 40, 0.28);
}

#s-checkin .ci-merch-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

#s-checkin .ci-merch-strip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 22px 14px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.78));
  letter-spacing: 0.01em;
}

#s-checkin .ci-status-load {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5a6d85;
  font-size: 13px;
  font-weight: 600;
}

#s-checkin .ci-status-load .kc-load-packs {
  width: 48px;
  height: 38px;
  margin: 0;
  flex-shrink: 0;
  transform: scale(0.7);
  transform-origin: left center;
}

#s-checkin .ci-photo-box {
  background:
    linear-gradient(180deg, rgba(240, 247, 255, 0.92) 35%, rgba(255, 255, 255, 0.96) 100%),
    url("../img/brand/merch-shelf-close.jpg") center / cover no-repeat;
}

#s-checkin .ci-photo-box__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#s-checkin .ci-photo-box__icon {
  opacity: 1;
  margin: 10px 0 8px;
}

#s-checkin .ci-photo-glyph {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #00b4ff, #0d47a1);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 10px 22px -8px rgba(13, 71, 161, 0.55);
}

#s-checkin .ci-photo-box__hint {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

#s-checkin .ci-photo-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

#s-checkin .ci-photo-pick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #d7e3f3;
  background: #fff;
  color: #0d47a1;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#s-checkin .ci-photo-pick-btn--gallery {
  color: #047857;
  border-color: #b7ebd3;
  background: #f0fdf4;
}

#s-checkin .ci-photo-pick-btn i {
  font-size: 14px;
}

#s-checkin .ci-mode-btn i,
#s-checkin .ci-btn-row .btn-primary i,
#s-checkin #ci-gps-status i {
  margin-right: 6px;
}

#s-checkin .ci-btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#s-checkin .ci-btn-row .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

#s-checkin .ci-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#s-checkin .hdr-back i {
  font-size: 14px;
}

#s-checkin .ci-status-ok,
#s-checkin .ci-status-info,
#s-checkin .ci-status-warn {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* แถบหัวมือถือ: กระดิ่ง / ดวงจันทร์ / บทบาท */
#mobile-app-header .mt-role-badge i,
#mobile-app-header .mt-role-badge-menu-item i {
  margin-right: 5px;
  font-size: 10px;
}

#mobile-app-header .dark-mode-toggle-btn {
  color: #fff;
  font-size: 14px;
}

#mobile-app-header .mob-home-avatar-ph {
  font-size: 15px;
  color: #fff;
}

#mobile-app-header .mob-bell-svg--filled path {
  fill: #38bdf8 !important;
  stroke: #0284c7 !important;
}

@media (min-width: 960px) {
  #s-checkin .ci-merch-strip {
    height: 160px;
    border-radius: 16px;
  }
}

body.mt-tissue-brand #s-checkin .ci-photo-box,
body.admin-pc-portal:not(.mt-auth-screen) #s-checkin .ci-photo-box {
  background:
    linear-gradient(180deg, rgba(240, 247, 255, 0.9) 28%, rgba(255, 255, 255, 0.96) 100%),
    url("../img/brand/merch-shelf-close.jpg") center / cover no-repeat !important;
}

.dark-mode-toggle-btn i {
  font-size: 14px;
  line-height: 1;
}

/* ── รายชื่อเช็คอิน: แยกชื่อ / หัวหน้า / เวลา ไม่ให้ติดกัน ── */
body.admin-pc-portal #s-admin-home .ah-ops-checkin-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  line-height: 1.35;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-main {
  min-width: 0;
  flex: 1;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-name {
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-zone,
body.admin-pc-portal #s-admin-home .ah-ops-osa-store {
  display: block;
  float: none;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-time,
body.admin-pc-portal #s-admin-home .ah-ops-ci-late {
  float: none;
  margin: 0;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-time {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-late,
body.admin-pc-portal #s-admin-home .ah-ops-ci-wait,
body.admin-pc-portal #s-admin-home .ah-ops-ci-leave-type,
body.admin-pc-portal #s-admin-home .ah-ops-ci-leave-hint {
  display: inline-block;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-late {
  background: #fee2e2;
  color: #b91c1c;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-wait {
  background: #ffedd5;
  color: #c2410c;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-item--warn .ah-ops-ci-name {
  color: #9a3412;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-col-title {
  padding: 10px 12px 8px;
}

/* ── หน้าลา: เต็มจอ · ชิปโควต้าแบบ Staff Office ── */
.mob-ls-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 959px) {
  body.admin-pc-portal:not(.mt-auth-screen) .app:has(#s-mobile-leave-swap.active),
  body.admin-pc-portal:not(.mt-auth-screen) .app:has(#s-sup-route-plan.active) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #s-mobile-leave-swap.active .mob-ls-body,
  body.admin-pc-portal #s-mobile-leave-swap.active .mob-ls-body,
  body.mobile-app-enabled #s-mobile-leave-swap.active .mob-ls-body {
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 8px 10px calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  #s-sup-route-plan.active,
  #s-sup-route-plan.active.ah-wrap,
  body.admin-pc-portal #s-sup-route-plan.active {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #s-sup-route-plan .ah-hdr {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  #s-sup-route-plan .ah-sup-route-body {
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 10px 10px 96px !important;
    box-sizing: border-box;
  }

  #s-sup-route-plan .rs-sup-plan-subtabs,
  #s-sup-route-plan .rs-sup-acc-group,
  #s-sup-route-plan .rs-team-search {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 960px) {
  #s-mobile-leave-swap.active .mob-ls-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 32px;
  }

  body.admin-pc-portal #s-sup-route-plan.active.ah-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 28px;
  }

  body.admin-pc-portal #s-sup-route-plan .ah-hdr {
    padding-left: 24px;
    padding-right: 24px;
  }

  body.admin-pc-portal #s-sup-route-plan .ah-sup-route-body {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 24px 32px !important;
    box-sizing: border-box;
  }

  body.admin-pc-portal #s-sup-route-plan .rs-sup-plan-subtabs {
    width: auto;
    max-width: 460px;
  }

  body.admin-pc-portal #s-sup-route-plan .rs-sup-plan-subtab {
    flex: 0 1 auto;
    padding: 10px 18px;
  }

  body.admin-pc-portal #s-sup-route-plan .rs-sup-view-select {
    max-width: 520px;
  }

  body.admin-pc-portal #s-sup-route-plan #rs-sup-store-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }

  body.admin-pc-portal #s-sup-route-plan #rs-sup-store-list > :not(.rs-sup-acc-group) {
    grid-column: 1 / -1;
  }

  body.admin-pc-portal #s-sup-route-plan .rs-sup-acc-group {
    margin-bottom: 0;
  }

  body.admin-pc-portal #s-sup-route-plan #rs-sup-pane-cal {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 16px;
    align-items: start;
  }

  body.admin-pc-portal #s-sup-route-plan .rs-sup-cal-card,
  body.admin-pc-portal #s-sup-route-plan .rs-sup-day-panel {
    margin-bottom: 0;
  }

  body.admin-pc-portal #s-sup-route-plan .rs-sup-cal-cell {
    min-height: 72px;
  }
}

@media (min-width: 1400px) {
  body.admin-pc-portal #s-sup-route-plan #rs-sup-store-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#s-mobile-leave-swap .mob-ls-card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #15803d;
}

#s-mobile-leave-swap .mob-ls-card-ic.leave { color: #c2410c; }
#s-mobile-leave-swap .mob-ls-card-ic.half { color: #7c3aed; }
#s-mobile-leave-swap .mob-ls-card-ic.swap { color: #1d4ed8; background: #eff6ff; }

#s-mobile-leave-swap .mob-swap-mode-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.mob-ls-leave-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mob-ls-leave-chips--half {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mob-ls-leave-chip {
  appearance: none;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 12px;
  padding: 8px 8px 7px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  background: #f8fafc;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.mob-ls-leave-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.mob-ls-leave-chip-ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #e2e8f0;
  color: #475569;
}

.mob-ls-leave-chip-used {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #0f172a;
}

.mob-ls-leave-chip-name {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
}

.mob-ls-leave-chip-bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}

.mob-ls-leave-chip-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #94a3b8;
}

.mob-ls-leave-chip-foot {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.mob-ls-leave-chip.is-active {
  box-shadow: 0 0 0 2px #1565c0, 0 2px 8px rgba(21, 101, 192, 0.18);
}

.mob-ls-leave-chip--sick { border-left-color: #ef4444; background: #fef2f2; }
.mob-ls-leave-chip--sick .mob-ls-leave-chip-ic { background: #fecaca; color: #dc2626; }
.mob-ls-leave-chip--sick .mob-ls-leave-chip-used { color: #dc2626; }
.mob-ls-leave-chip--sick .mob-ls-leave-chip-bar-fill { background: linear-gradient(90deg, #f87171, #ef4444); }

.mob-ls-leave-chip--personal { border-left-color: #ea580c; background: #fff7ed; }
.mob-ls-leave-chip--personal .mob-ls-leave-chip-ic { background: #fed7aa; color: #c2410c; }
.mob-ls-leave-chip--personal .mob-ls-leave-chip-used { color: #ea580c; }
.mob-ls-leave-chip--personal .mob-ls-leave-chip-bar-fill { background: linear-gradient(90deg, #fb923c, #ea580c); }

.mob-ls-leave-chip--annual { border-left-color: #16a34a; background: #f0fdf4; }
.mob-ls-leave-chip--annual .mob-ls-leave-chip-ic { background: #bbf7d0; color: #15803d; }
.mob-ls-leave-chip--annual .mob-ls-leave-chip-used { color: #16a34a; }
.mob-ls-leave-chip--annual .mob-ls-leave-chip-bar-fill { background: linear-gradient(90deg, #4ade80, #16a34a); }

.mob-ls-leave-chip--holiday { border-left-color: #2563eb; background: #eff6ff; }
.mob-ls-leave-chip--holiday .mob-ls-leave-chip-ic { background: #bfdbfe; color: #1d4ed8; }

.mob-ls-leave-chip--ordination { border-left-color: #7c3aed; background: #f5f3ff; }
.mob-ls-leave-chip--ordination .mob-ls-leave-chip-ic { background: #ddd6fe; color: #6d28d9; }

.mob-ls-leave-chip--maternity { border-left-color: #db2777; background: #fdf2f8; }
.mob-ls-leave-chip--maternity .mob-ls-leave-chip-ic { background: #fbcfe8; color: #be185d; }

#s-mobile-leave-swap .mob-ls-btn i {
  margin-right: 6px;
}

/* ── แดชบอร์ดสรุป: ฟอนต์ · อินโฟ · แอนิเมชันการ์ด ── */
body.admin-pc-portal #s-admin-home #ah-ops-dashboard {
  font-family: var(--kc-font);
  -webkit-font-smoothing: antialiased;
}

body.admin-pc-portal #s-admin-home .ah-ops-head {
  padding: 4px 2px 2px;
}

body.admin-pc-portal #s-admin-home .ah-ops-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0d47a1;
}

body.admin-pc-portal #s-admin-home .ah-ops-title-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(160deg, #00b4ff, #1565c0 58%, #0d47a1);
  box-shadow: 0 6px 14px rgba(21, 101, 192, 0.28);
  flex-shrink: 0;
}

body.admin-pc-portal #s-admin-home .ah-ops-title-en {
  margin: 4px 0 0 44px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b8aa3;
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(200, 214, 234, 0.9);
  box-shadow: 0 8px 22px rgba(15, 40, 80, 0.06);
  animation: kcOpsCardIn 0.5s ease both;
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-card::before {
  content: '';
  position: absolute;
  width: 88px;
  height: 88px;
  right: -18px;
  top: -22px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--staff::before {
  background: radial-gradient(circle, rgba(0, 180, 255, 0.28), transparent 70%);
}
body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--route::before {
  background: radial-gradient(circle, rgba(46, 180, 90, 0.26), transparent 70%);
}
body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--urgent::before {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.22), transparent 70%);
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--staff { animation-delay: 0.04s; }
body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--route { animation-delay: 0.12s; }
body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--urgent { animation-delay: 0.2s; }

body.admin-pc-portal #s-admin-home .ah-ops-kpi-icon {
  position: relative;
  background: linear-gradient(160deg, #e3f2fd, #bbdefb) !important;
  color: #1565c0 !important;
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--route .ah-ops-kpi-icon {
  background: linear-gradient(160deg, #dcfce7, #bbf7d0) !important;
  color: #15803d !important;
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-card--urgent .ah-ops-kpi-icon {
  background: linear-gradient(160deg, #fee2e2, #fecaca) !important;
  color: #dc2626 !important;
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-label {
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.admin-pc-portal #s-admin-home .ah-ops-kpi-value,
body.admin-pc-portal #s-admin-home .ah-ops-kpi-pct {
  font-family: var(--kc-font-num);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

body.admin-pc-portal #s-admin-home .ah-ops-progress-bar {
  height: 7px !important;
  background: #e8eef6 !important;
  overflow: hidden;
}

body.admin-pc-portal #s-admin-home .ah-ops-progress-fill {
  background: linear-gradient(90deg, #00b4ff, #1565c0) !important;
  box-shadow: 0 0 10px rgba(0, 180, 255, 0.45);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.admin-pc-portal #s-admin-home .ah-ops-panel,
body.admin-pc-portal #s-admin-home .ah-ops-chart-card {
  animation: kcOpsCardIn 0.55s ease 0.26s both;
  box-shadow: 0 10px 24px rgba(15, 40, 80, 0.05);
}

body.admin-pc-portal #s-admin-home .ah-ops-panel-title,
body.admin-pc-portal #s-admin-home .ah-ops-chart-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-col {
  overflow: hidden;
  background: #fff;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--kc-font-num);
  font-size: 12px;
  font-weight: 800;
  background: #eef2f9;
  color: #334155;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-col--ok .ah-ops-ci-count {
  background: #dcfce7;
  color: #166534;
}
body.admin-pc-portal #s-admin-home .ah-ops-checkin-col--pending .ah-ops-ci-count {
  background: #ffedd5;
  color: #c2410c;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-item {
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
}

#s-admin-home .ah-ops-ci-avatar,
body.admin-pc-portal #s-admin-home .ah-ops-ci-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: var(--kc-font-num);
  font-size: 14px;
  font-weight: 800;
  color: #1565c0;
  background: linear-gradient(160deg, #e3f2fd, #bbdefb);
  box-shadow: 0 2px 6px rgba(21, 101, 192, 0.14);
}

#s-admin-home .ah-ops-ci-avatar img,
body.admin-pc-portal #s-admin-home .ah-ops-ci-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

body.admin-pc-portal #s-admin-home .ah-ops-checkin-item--warn .ah-ops-ci-avatar {
  color: #c2410c;
  background: linear-gradient(160deg, #fff7ed, #fed7aa);
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-zone {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-pc-portal #s-admin-home .ah-ops-ci-time {
  font-family: var(--kc-font-num);
  font-size: 13px;
  font-weight: 800;
}

@keyframes kcOpsCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (min-width: 960px) {
  body.admin-pc-portal #s-admin-home .ah-ops-kpi-card,
  body.admin-pc-portal #s-admin-home .ah-ops-panel,
  body.admin-pc-portal #s-admin-home .ah-ops-chart-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-kpi-card:hover,
  body.admin-pc-portal #s-admin-home .ah-ops-panel:hover,
  body.admin-pc-portal #s-admin-home .ah-ops-chart-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 40, 80, 0.12);
  }
}

@media (min-width: 960px) {
  body.admin-pc-portal #s-admin-home .ah-ops-title {
    font-size: 22px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-kpi-value,
  body.admin-pc-portal #s-admin-home .ah-ops-kpi-pct {
    font-size: 28px;
  }
}

@media (max-width: 959px) {
  body.admin-pc-portal #s-admin-home .ah-ops-title {
    font-size: 16px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-title-ic {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-title-en {
    margin-left: 40px;
    font-size: 10px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-checkin-item {
    padding: 11px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.admin-pc-portal #s-admin-home .ah-ops-kpi-card,
  body.admin-pc-portal #s-admin-home .ah-ops-panel,
  body.admin-pc-portal #s-admin-home .ah-ops-chart-card {
    animation: none;
  }
}

/* ── ตารางงานรออนุมัติ / งานค้าง ── */
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--kc-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: #0f2744;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-admin-approval-sub {
  margin: 4px 0 0 30px;
  font-family: var(--kc-font);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #64748b;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks #ah-ops-tasks-table {
  font-family: var(--kc-font);
  font-size: 13.5px;
  line-height: 1.55;
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks #ah-ops-tasks-table th {
  font-family: var(--kc-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b6b80;
  padding: 12px 14px;
  background: #f4f7fb;
  line-height: 1.4;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks #ah-ops-tasks-table td {
  padding: 13px 14px;
  vertical-align: middle;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.55;
  border-bottom: 1px solid #eef2f7;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-td-id {
  font-family: var(--kc-font-num);
  font-weight: 700;
  font-size: 12.5px;
  color: #64748b;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 14.5em;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--checkin {
  background: #e0f2fe;
  color: #0369a1;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--checkin i {
  background: #0284c7;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--night {
  background: #ede9fe;
  color: #5b21b6;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--night i {
  background: #7c3aed;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--sick {
  background: #fee2e2;
  color: #b91c1c;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--sick i {
  background: #dc2626;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--personal {
  background: #ffedd5;
  color: #c2410c;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--personal i {
  background: #ea580c;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--annual {
  background: #dcfce7;
  color: #15803d;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--annual i {
  background: #16a34a;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--leave,
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--holiday,
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--ordain {
  background: #eef2ff;
  color: #3730a3;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--leave i,
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--holiday i,
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--ordain i {
  background: #4f46e5;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--off {
  background: #f1f5f9;
  color: #334155;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--off i {
  background: #64748b;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--swap {
  background: #f3e8ff;
  color: #6b21a8;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--swap i {
  background: #9333ea;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--route {
  background: #e0e7ff;
  color: #3730a3;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--route i {
  background: #4338ca;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--oos {
  background: #fff7ed;
  color: #c2410c;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--oos i {
  background: #ea580c;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--compliance {
  background: #f5f3ff;
  color: #5b21b6;
}
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-type-chip--compliance i {
  background: #7c3aed;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-td-branch {
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-td-owner {
  font-weight: 500;
  letter-spacing: 0.03em;
  word-spacing: 0.18em;
  white-space: normal;
  line-height: 1.65;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-row-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-row-actions .ah-admin-btn-approve,
body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-row-actions .ah-admin-btn-reject {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-row-actions .ah-admin-btn-approve {
  background: #ecfdf5;
  color: #059669;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-row-actions .ah-admin-btn-reject {
  background: #fef2f2;
  color: #dc2626;
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-row-actions .ah-admin-btn-approve:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-row-actions .ah-admin-btn-reject:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

@media (max-width: 959px) {
  body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-ops-panel-title {
    font-size: 15px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-tasks .ah-admin-approval-sub {
    margin-left: 0;
    font-size: 12px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-tasks #ah-ops-tasks-table {
    font-size: 13px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-tasks #ah-ops-tasks-table th,
  body.admin-pc-portal #s-admin-home .ah-ops-tasks #ah-ops-tasks-table td {
    padding: 11px 10px;
  }
}

/* ── กราฟ OOS / OSA ── */
body.admin-pc-portal #s-admin-home .ah-ops-chart-card {
  position: relative;
  overflow: hidden;
  padding: 14px 14px 12px;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-card--oos {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(244, 63, 94, 0.08), transparent 52%),
    #fff;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-card--osa {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 180, 255, 0.10), transparent 52%),
    #fff;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--kc-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f2744;
  line-height: 1.35;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-title small {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-card--oos .ah-ops-chart-title small {
  margin-left: auto;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-card-hdr .ah-ops-chart-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-ic--oos {
  background: #fff1f2;
  color: #e11d48;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-ic--osa {
  background: #e0f2fe;
  color: #0284c7;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-select {
  min-width: 120px;
  max-width: 46%;
  font-size: 12px !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-canvas-wrap--bar {
  height: 188px;
}

body.admin-pc-portal #s-admin-home .ah-ops-chart-canvas-wrap--line {
  height: 168px;
}

body.admin-pc-portal #s-admin-home .ah-ops-donut-wrap {
  filter: drop-shadow(0 4px 8px rgba(21, 101, 192, 0.22));
}

@media (max-width: 959px) {
  body.admin-pc-portal #s-admin-home .ah-ops-chart-canvas-wrap--bar {
    height: 200px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-chart-canvas-wrap--line {
    height: 176px;
  }
  body.admin-pc-portal #s-admin-home .ah-ops-chart-title {
    font-size: 13px;
  }
}

/* กันรูปโปรไฟล์/ฮีโร่ระเบิดขนาดทุกจอ */
#mobile-app-header .mob-home-avatar,
#mobile-app-header .mob-topbar-avatar {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0;
  padding: 0;
}

#mobile-app-header .mob-home-avatar img,
#mobile-app-header .mob-topbar-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.mob-hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mob-hero-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

/* พนักงานบนคอม: สไตล์มือถือถูกล็อกที่ max-width 959px */
@media (min-width: 960px) {
  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-card {
    min-height: 168px;
    max-height: 220px;
    border-radius: 16px;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-slides,
  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-bg,
  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-slides {
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-bg {
    opacity: 0;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-bg.is-active {
    opacity: 1;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-deco {
    z-index: 1;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.94) 34%,
      rgba(247, 251, 255, 0.78) 48%,
      rgba(255, 255, 255, 0.28) 64%,
      rgba(255, 255, 255, 0.06) 78%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-inner {
    position: relative;
    z-index: 2;
    padding: 16px 14px 12px;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-brand {
    position: absolute;
    top: 18px;
    right: 14px;
    z-index: 3;
    width: min(38%, 132px);
    text-align: right;
    pointer-events: none;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-hero-content {
    max-width: min(58%, calc(100% - 120px));
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-top-app-bar-inner,
  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-topbar-end,
  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-topbar-tools,
  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-topbar-logo {
    display: flex;
    align-items: center;
    flex-direction: row;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-top-app-bar-glass {
    padding: 6px 12px 8px;
    background: rgba(240, 247, 255, 0.88);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 16px;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-top-app-bar-inner {
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-topbar-end {
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-topbar-tools {
    gap: 4px;
    flex-shrink: 0;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-topbar-tool-btn,
  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-home-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-home-bell {
    overflow: visible;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-bell-ic,
  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-header .mob-bell-svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0 2px 2px;
    cursor: pointer;
    font-family: inherit;
    color: #64748b;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-ic {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    margin-top: -22px;
    background: linear-gradient(160deg, #ffffff 0%, #eef2f8 100%);
    border: 2.5px solid rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-ic img,
  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-ic i {
    width: auto;
    height: auto;
    font-size: 18px;
    line-height: 1;
    display: block;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-ic.mob-tab-ic-emoji {
    font-size: 22px;
    line-height: 1;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-lbl {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab.on {
    color: #1565c0;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab.on .mob-tab-ic {
    background: linear-gradient(160deg, #e8f4fd 0%, #bbdefb 100%);
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-fab .mob-tab-ic,
  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-fab.on .mob-tab-ic {
    width: 56px;
    height: 56px;
    margin-top: -30px;
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%) !important;
    border: 3px solid #fff;
    box-shadow:
      0 8px 26px rgba(21, 101, 192, 0.48),
      0 4px 10px rgba(13, 71, 161, 0.22);
  }

  body.mobile-app-enabled:not(.admin-pc-portal) #mobile-app-tabbar .mob-tab-fab .mob-tab-ic i {
    font-size: 22px;
    color: #fff !important;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-home-body,
  body.mobile-app-enabled:not(.admin-pc-portal) #mob-home-scroll {
    padding: 8px 12px 24px;
    background: #eef2f8;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-status-block {
    padding: 12px 0 10px;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-day-pulse {
    padding: 0 0 12px;
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-day-pulse-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e3eaf5;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  }

  body.mobile-app-enabled:not(.admin-pc-portal) .mob-day-ring-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }
}

/* หน้าหลักพนักงานบนคอม — พอร์ทัลชุดเดียวกับซุป/แอดมิน */
#checker-portal-sidebar {
  display: none;
}

body.mt-auth-screen #checker-portal-sidebar,
body.admin-pc-portal #checker-portal-sidebar,
body.customer-pc-portal #checker-portal-sidebar {
  display: none !important;
}

@media (min-width: 960px) {
  body.checker-pc-portal {
    display: block !important;
    background: #eef2f8;
    font-family: var(--kc-font);
  }

  body.checker-pc-portal #checker-portal-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 248px;
    z-index: 200;
    color: #fff;
    background: linear-gradient(180deg, #0a1628 0%, #0f2744 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  }

  body.checker-pc-portal #admin-portal-sidebar,
  body.checker-pc-portal #admin-sidebar-reopen,
  body.checker-pc-portal #admin-global-toolbar,
  body.checker-pc-portal #kc-so-bottom-nav,
  body.checker-pc-portal #pc-panel,
  body.checker-pc-portal #pc-panel-desktop-reopen,
  body.checker-pc-portal #pc-panel-backdrop,
  body.checker-pc-portal #mobile-app-header,
  body.checker-pc-portal #mobile-app-tabbar,
  body.checker-pc-portal #mobile-pending-fab,
  body.checker-pc-portal #b2c-wm {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.checker-pc-portal .app {
    margin-left: 248px !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    height: 100vh !important;
    box-shadow: none;
    background: #eef2f8;
    padding-top: 56px !important;
  }

  body.checker-pc-portal #kc-so-topbar {
    display: flex !important;
    left: 248px;
    right: 0;
  }

  body.checker-pc-portal .kc-so-menu-btn {
    display: none;
  }

  body.checker-pc-portal #s-checker-home.active {
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    overflow-y: auto !important;
    background: #eef2f8;
    font-family: var(--kc-font);
  }

  body.checker-pc-portal #s-checker-home .ch-hdr {
    background: transparent;
    box-shadow: none;
    padding: 18px 28px 4px;
    align-items: flex-start;
  }

  body.checker-pc-portal #s-checker-home .ch-hdr h2,
  body.checker-pc-portal #s-checker-home .ch-ops-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0d47a1;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
  }

  body.checker-pc-portal #s-checker-home .ch-ops-title-ic,
  body.checker-pc-portal #s-checker-home .ch-route-title .ch-ops-title-ic {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background: linear-gradient(160deg, #00b4ff, #1565c0 58%, #0d47a1);
    box-shadow: 0 6px 14px rgba(21, 101, 192, 0.28);
    flex-shrink: 0;
  }

  body.checker-pc-portal #s-checker-home .ch-ops-title-en {
    margin: 4px 0 0 44px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7b8aa3;
  }

  body.checker-pc-portal #s-checker-home .ch-hdr-sub {
    margin: 6px 0 0 44px;
    color: #5a6d85;
    font-size: 13px;
  }

  body.checker-pc-portal #s-checker-home .mt-logout-btn,
  body.checker-pc-portal #s-checker-home .dark-mode-toggle-btn {
    display: none !important;
  }

  body.checker-pc-portal #s-checker-home .ch-top-grid {
    padding: 16px 28px 8px !important;
    gap: 16px !important;
    max-width: none;
    margin: 0;
    width: 100%;
  }

  body.checker-pc-portal #s-checker-home .ch-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.checker-pc-portal #s-checker-home .ch-tile {
    padding: 18px 16px 16px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid rgba(200, 214, 234, 0.9);
    box-shadow: 0 8px 22px rgba(15, 40, 80, 0.06);
    background: #fff;
  }

  body.checker-pc-portal #s-checker-home .ch-tile-ic {
    margin: 0 0 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(160deg, #e0f2fe, #dbeafe);
    color: #1565c0;
    border: 0;
    font-size: 16px;
  }

  body.checker-pc-portal #s-checker-home .ch-tile-ic img {
    display: none;
  }

  body.checker-pc-portal #s-checker-home .ch-tile-t {
    font-family: var(--kc-font);
    font-size: 14px;
    font-weight: 700;
    color: #0f2744;
  }

  body.checker-pc-portal #s-checker-home .ch-tile-d {
    color: #64748b;
  }

  body.checker-pc-portal #s-checker-home .ch-right-col {
    max-width: 380px;
  }

  body.checker-pc-portal #s-checker-home .ch-route-wrap {
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 8px 28px 32px;
    box-sizing: border-box;
  }

  body.checker-pc-portal #s-checker-home .ch-route-panel {
    background: #fff;
    border: 1px solid rgba(200, 214, 234, 0.9);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 22px rgba(15, 40, 80, 0.06);
  }

  body.checker-pc-portal #s-checker-home .ch-route-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #0d47a1;
    margin-bottom: 4px;
  }

  body.checker-pc-portal .admin-acc-hdr {
    color: rgba(255, 255, 255, 0.5) !important;
  }

  body.checker-pc-portal .admin-nav-item {
    color: rgba(255, 255, 255, 0.78) !important;
  }

  body.checker-pc-portal .admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
  }

  body.checker-pc-portal .admin-nav-item.active {
    background: rgba(33, 150, 243, 0.28) !important;
    color: #fff !important;
    border-left: 3px solid #00b4ff;
    padding-left: 11px;
  }

  body.checker-pc-portal .admin-sidebar-logout {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
  }

  body.checker-pc-portal .kc-so-side-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    padding: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.checker-pc-portal .admin-sidebar-brand h1 {
    color: #fff;
    font-weight: 800;
  }

  body.checker-pc-portal .admin-sidebar-brand p {
    color: rgba(255, 255, 255, 0.58);
  }

  body.checker-pc-portal #s-mobile-work.active,
  body.checker-pc-portal #s-mobile-leave-swap.active,
  body.checker-pc-portal #s-mobile-profile.active,
  body.checker-pc-portal #s-attendance-hub.active,
  body.checker-pc-portal #s-payroll.active,
  body.checker-pc-portal #s-admin-employee-profile.active,
  body.checker-pc-portal #s-checkin.active,
  body.checker-pc-portal #s-account.active,
  body.checker-pc-portal #s-catlist.active,
  body.checker-pc-portal #s-osa.active,
  body.checker-pc-portal #s-photo.active,
  body.checker-pc-portal #s-store.active,
  body.checker-pc-portal #page-dashboard.active {
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    overflow-y: auto !important;
  }

  body.checker-pc-portal #s-mobile-work .mob-top {
    display: none;
  }

  body.checker-pc-portal #s-mobile-work .mob-body,
  body.checker-pc-portal #s-mobile-leave-swap .mob-ls-body,
  body.checker-pc-portal #s-mobile-profile .mob-profile-body {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 16px 24px 32px !important;
    box-sizing: border-box;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #0c3d7a 0%, #1565C0 52%, #1976D2 100%);
    color: #fff;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-hero-photo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
  }

  body.checker-pc-portal #s-mobile-work .mob-work-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-hero-stats {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 0 0 16px 16px;
    border: 1px solid #e3eaf5;
    border-top: 0;
    margin-bottom: 16px;
    overflow: hidden;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-stat-val {
    display: block;
    font-weight: 800;
    color: #0d47a1;
    font-size: 14px;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-stat-lbl {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-stat-div {
    width: 1px;
    background: #e8edf3;
  }

  body.checker-pc-portal #s-mobile-work .mob-field-cat {
    margin-bottom: 16px;
  }

  body.checker-pc-portal #s-mobile-work .mob-field-cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 8px;
  }

  body.checker-pc-portal #s-mobile-work .mob-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  }

  body.checker-pc-portal #s-mobile-work .mob-action-ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  body.checker-pc-portal #s-mobile-work .mob-action-t {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
  }

  body.checker-pc-portal #s-mobile-work .mob-action-d {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
  }

  body.checker-pc-portal #s-mobile-work .mob-action-arrow {
    margin-left: auto;
    color: #cbd5e1;
  }

  body.checker-pc-portal #s-mobile-work .mob-work-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
  }
}

@media (min-width: 1400px) {
  body.checker-pc-portal #s-checker-home .ch-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* หน้าข้อมูลฉัน: เมนูเต็มความกว้าง + ไอคอนอินโฟ */
body.mobile-app-enabled #s-mobile-profile.active ~ #b2c-wm,
body.mobile-app-enabled:has(#s-mobile-profile.active) #b2c-wm,
.app:has(#s-mobile-profile.active) ~ #b2c-wm {
  display: none !important;
}

body.mobile-app-enabled #s-mobile-profile .mob-profile-body {
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
  padding-left: 14px;
  padding-right: 14px;
}

body.mobile-app-enabled #s-mobile-profile .mob-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body.mobile-app-enabled #s-mobile-profile .mob-profile-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  min-height: 76px;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(200, 214, 234, 0.9);
  box-shadow: 0 8px 22px rgba(15, 40, 80, 0.06);
}

body.mobile-app-enabled #s-mobile-profile .mob-profile-card-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}

body.mobile-app-enabled #s-mobile-profile .mob-profile-card-ic.employee {
  background: linear-gradient(160deg, #00b4ff, #1565c0 58%, #0d47a1);
}
body.mobile-app-enabled #s-mobile-profile .mob-profile-card-ic.payroll {
  background: linear-gradient(160deg, #34d399, #059669 58%, #047857);
}
body.mobile-app-enabled #s-mobile-profile .mob-profile-card-ic.dash {
  background: linear-gradient(160deg, #818cf8, #4f46e5 58%, #3730a3);
}

@media (min-width: 640px) {
  body.mobile-app-enabled #s-mobile-profile .mob-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.mobile-app-enabled #s-mobile-profile .mob-profile-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 132px;
  }

  body.mobile-app-enabled #s-mobile-profile .mob-profile-card-go {
    display: none;
  }
}
