/**
 * Thai Namthip × Report-KC look
 * โครงสร้าง/ฟอนต์/การ์ด/แถบหัว-ล่างแบบ KC · โทนแดงแบรนด์ไทยน้ำทิพย์
 */
:root,
html,
html[data-theme="red"] {
  --kc-navy: #5c0a0e;
  --kc-blue-deep: #9e1218;
  --kc-blue: #e31c23;
  --kc-cyan: #ff6b6b;
  --kc-bg: #f3eef0;
  --kc-surface: #ffffff;
  --kc-border: #e5d0d2;
  --kc-text: #1e1416;
  --kc-muted: #6f5a5c;
  --kc-ok: #2e7d32;
  --kc-warn: #e65100;
  --kc-danger: #c62828;
  --kc-radius: 12px;
  --kc-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  --kc-shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);

  --mt-font: "Sarabun", "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  --mt-font-display: "Prompt", "Sarabun", sans-serif;
  --mt-fs-body: 1rem;
  --mt-fs-sm: 0.875rem;
  --mt-fs-xs: 0.8125rem;
  --mt-lh: 1.6;
  --mt-lh-tight: 1.45;

  /* remap Green Deck tokens → KC-like */
  --gd-brand-deep: var(--kc-blue-deep);
  --gd-brand: var(--kc-blue);
  --gd-brand-mid: #ef4b50;
  --gd-brand-soft: #f8d9db;
  --gd-brand-softest: #fceeee;
  --gd-primary: var(--kc-blue);
  --gd-primary-hover: #ef3339;
  --gd-bg: var(--kc-bg);
  --gd-surface: var(--kc-surface);
  --gd-surface-2: #f7f1f2;
  --gd-surface-3: #efe4e5;
  --gd-text: var(--kc-text);
  --gd-text-secondary: var(--kc-muted);
  --gd-border: var(--kc-border);
  --gd-warning: var(--kc-warn);
  --gd-error: var(--kc-danger);
  --gd-sidebar: #ffffff;
  --gd-sidebar-text: var(--kc-text);
  --gd-sidebar-muted: var(--kc-muted);
  --gd-sidebar-active: #fce8e9;
  --gd-topbar: transparent;
  --gd-topbar-text: #ffffff;
  --gd-topbar-muted: rgba(255, 255, 255, 0.88);
  --gd-radius-sm: 10px;
  --gd-radius-md: var(--kc-radius);
  --gd-radius-lg: 16px;
  --gd-radius-pill: 9999px;
  --gd-font: var(--mt-font);
  --gd-font-code: ui-monospace, monospace;
  --gd-sidebar-w: 248px;
}

html,
body {
  font-family: var(--mt-font) !important;
  font-size: var(--mt-fs-body);
  line-height: var(--mt-lh);
  letter-spacing: 0.005em;
  background: var(--kc-bg) !important;
  color: var(--kc-text);
}

/* ── Landing ── */
.gd-landing {
  background:
    radial-gradient(circle at 88% 0%, rgba(227, 28, 35, 0.14) 0%, transparent 46%),
    linear-gradient(160deg, #fff 0%, var(--kc-bg) 55%, #f8e9ea 100%);
}

.gd-role-card {
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  border-radius: 16px;
  box-shadow: var(--kc-shadow);
  padding: 20px 18px;
}

.gd-role-card__title {
  font-family: var(--mt-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--kc-blue-deep);
  margin: 0 0 14px;
}

/* ── Shell / Sidebar (PC) ── */
.gd-sidebar {
  background: var(--kc-surface) !important;
  border-right: 1px solid var(--kc-border);
  box-shadow: none;
}

.gd-sidebar__logo {
  font-family: var(--mt-font-display);
  font-weight: 800;
  color: var(--kc-text);
}

.gd-sidebar__logo span {
  color: var(--kc-blue);
}

.gd-nav a {
  border-radius: 12px;
  font-weight: 700;
  color: var(--kc-muted);
}

.gd-nav a.is-active,
.gd-nav a:hover {
  background: rgba(227, 28, 35, 0.1);
  color: var(--kc-blue-deep);
}

/* ── Topbar แบบ KC navy→blue แต่โทนแดง ── */
.gd-topbar {
  height: 56px;
  padding: 0 14px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 107, 107, 0.22) 0%, transparent 46%),
    linear-gradient(135deg, #5c0a0e 0%, #9e1218 55%, #e31c23 100%);
  box-shadow: 0 8px 24px rgba(92, 10, 14, 0.28);
  border-bottom: none;
}

.gd-topbar__title {
  font-family: var(--mt-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.gd-topbar__meta {
  font-size: var(--mt-fs-sm);
  opacity: 0.9;
}

.gd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.gd-icon-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.75);
}

.gd-icon-btn--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

/* ── Main ── */
.gd-main {
  padding: 16px;
  background: var(--kc-bg) !important;
}

@media (min-width: 900px) {
  .gd-main {
    padding: 20px 24px 32px;
  }
}

.gd-page-title,
.gd-ls__title,
.gd-ci__title,
.gd-ah__name {
  font-family: var(--mt-font-display) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--kc-blue-deep);
}

.gd-page-title {
  font-size: 1.25rem !important;
  line-height: 1.35 !important;
  margin-bottom: 12px;
}

@media (max-width: 800px) {
  .gd-page-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }
}

.gd-ls__title {
  font-size: 1.2rem !important;
  color: var(--kc-blue-deep);
}

/* ── Cards / tiles / panels ── */
.gd-card,
.gd-stat,
.gd-ah__tile,
.gd-ah__kpi,
.gd-ci__panel,
.gd-ls__acc,
.gd-ls__req,
.gd-swipe__card,
.gd-action-card,
.gd-leave-item,
.gd-day-chip {
  background: var(--kc-surface) !important;
  border: 1px solid var(--kc-border) !important;
  border-radius: var(--kc-radius) !important;
  box-shadow: var(--kc-shadow) !important;
}

.gd-action-card {
  padding: 14px 12px;
}

.gd-action-card__title,
.gd-ah__t {
  font-family: var(--mt-font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--kc-text);
}

.gd-ah__tile {
  padding: 16px 12px 14px;
  box-shadow: var(--kc-shadow) !important;
}

.gd-ah__tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--kc-shadow-md) !important;
  border-color: #f0b8bb !important;
}

.gd-ah__ic {
  border-radius: 12px;
}

.gd-ah__ic--checkin {
  background: rgba(227, 28, 35, 0.12);
  color: var(--kc-blue-deep);
}

.gd-ah__avatar {
  background: rgba(227, 28, 35, 0.12);
  color: var(--kc-blue-deep);
  border-radius: 12px;
}

.gd-ls__pending {
  border-radius: var(--kc-radius);
  border: 1px solid rgba(230, 81, 0, 0.28);
  background: #fff7ed;
  box-shadow: var(--kc-shadow);
}

.gd-status-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* ── Forms ── */
.gd-field,
.gd-select,
.gd-textarea,
.gd-ci__select,
.gd-ci__input,
.gd-ci__textarea {
  border: 1px solid var(--kc-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  min-height: 44px;
  font-size: var(--mt-fs-sm);
}

.gd-field:focus,
.gd-select:focus,
.gd-textarea:focus,
.gd-ci__select:focus,
.gd-ci__input:focus,
.gd-ci__textarea:focus {
  outline: none !important;
  border-color: var(--kc-blue) !important;
  box-shadow: 0 0 0 3px rgba(227, 28, 35, 0.15) !important;
}

.gd-card__label,
.gd-ci__panel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--kc-muted);
}

/* ── Buttons ── */
.gd-btn,
.gd-ci__primary {
  border-radius: 12px !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-family: var(--mt-font-display);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(227, 28, 35, 0.22);
}

.gd-btn--lg,
.gd-ci__primary {
  height: 48px;
  font-size: 1rem;
}

.gd-btn--secondary {
  background: #fff !important;
  color: var(--kc-blue-deep) !important;
  border: 1px solid var(--kc-border) !important;
  box-shadow: none !important;
}

.gd-ci__primary--out {
  background: linear-gradient(135deg, #334155, #0f172a) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

/* ── Check-in hero ── */
.gd-ci__hero {
  background: var(--kc-surface) !important;
  border: 1px solid var(--kc-border);
  border-radius: 16px;
  box-shadow: var(--kc-shadow);
}

.gd-ci__title-in {
  color: var(--kc-blue) !important;
}

.gd-ci__chip {
  background: #f8fafc;
  border: 1px solid var(--kc-border);
  color: var(--kc-muted);
}

.gd-ci__steps li {
  background: #fff;
  border: 1px solid var(--kc-border);
}

.gd-ci__steps li.is-on {
  background: rgba(227, 28, 35, 0.1);
  border-color: #f0b8bb;
  color: var(--kc-blue-deep);
}

.gd-ci__steps li.is-on span {
  background: var(--kc-blue);
}

.gd-ci__photo {
  background: #fff !important;
  border: 1.5px dashed #f0b8bb !important;
  border-radius: 16px;
}

.gd-ci__gps-card {
  border-radius: 12px;
  background: #eef6ff;
  border: 1px solid #c8d6ea;
}

.gd-ci__gps-card[data-state="ready"] {
  background: #e8f5e9;
  border-color: #a5d6a7;
}

.gd-ci__gps-card[data-state="error"] {
  background: #ffebee;
  border-color: #ef9a9a;
}

/* ── Mobile tabbar แบบ KC ── */
.gd-tabbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid var(--kc-border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 4px;
}

.gd-tabbar__item {
  border-radius: 14px;
  color: var(--kc-muted);
  font-weight: 700;
  font-size: 11px;
}

.gd-tabbar__item.is-active {
  background: rgba(227, 28, 35, 0.1);
  color: var(--kc-blue-deep);
}

.gd-tabbar__ico {
  font-size: 18px;
  line-height: 1;
}

/* Field shell mobile padding like KC bottom clearance */
@media (max-width: 899px) {
  .gd-shell--field .gd-main {
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .gd-shell--field .gd-sidebar {
    display: none;
  }

  .gd-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

/* Swipe keep KC green/red affordance */
.gd-swipe__bg--ok {
  background: linear-gradient(90deg, #1b5e20, #2e7d32) !important;
}

.gd-swipe__bg--no {
  background: linear-gradient(270deg, #b71c1c, #c62828) !important;
}

.gd-ls__tabs .gd-ls__tab {
  border-radius: 999px;
  border: 1px solid var(--kc-border);
  background: #fff;
  font-family: var(--mt-font-display);
}

.gd-ls__tab.is-on {
  background: rgba(227, 28, 35, 0.1) !important;
  border-color: #f0b8bb !important;
  color: var(--kc-blue-deep) !important;
}

.gd-grid-wrap,
.gd-att-grid {
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  border-radius: var(--kc-radius);
  box-shadow: var(--kc-shadow);
}

.gd-att-grid th {
  background: #faf7f7;
  color: var(--kc-muted);
  font-size: 12px;
}

/* ── Supervisor team status (แบบ KC) ── */
.gd-sup__toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.gd-sup__date,
.gd-sup__search {
  height: 44px;
  border: 1px solid var(--kc-border);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  font: inherit;
  color: var(--kc-text);
}

.gd-sup__date { flex: 0 0 auto; max-width: 148px; }
.gd-sup__search { flex: 1; min-width: 0; }

.gd-sup__cols {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gd-sup__col {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: start;
  background: var(--kc-surface);
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  box-shadow: var(--kc-shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gd-sup__col-h {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--kc-border);
  background: #faf7f7;
}

.gd-sup__col-h b {
  display: block;
  font-family: var(--mt-font-display);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--kc-blue-deep);
}

.gd-sup__col-h span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--kc-muted);
}

.gd-sup__col--ok .gd-sup__col-h b { color: #1b5e20; }
.gd-sup__col--wait .gd-sup__col-h b { color: #e65100; }
.gd-sup__col--leave .gd-sup__col-h b { color: #1565c0; }

.gd-sup__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
  max-height: 420px;
}

.gd-sup__person {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.gd-sup__person:hover {
  background: #f8fafc;
}

.gd-sup__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(227, 28, 35, 0.12);
  color: var(--kc-blue-deep);
  font-weight: 800;
  flex-shrink: 0;
}

.gd-sup__av--lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.gd-sup__meta {
  min-width: 0;
}

.gd-sup__meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.gd-sup__meta small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--kc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gd-sup__empty {
  padding: 16px;
  color: var(--kc-muted);
  font-size: 13px;
}

.gd-sup-person__hdr {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0 14px;
}

.gd-sup-back {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(227, 28, 35, 0.1);
  color: var(--kc-blue-deep);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 8px;
}

.gd-sup-rights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.gd-sup-rights div {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--kc-shadow);
}

.gd-sup-rights b {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--kc-blue-deep);
}

.gd-sup-rights span {
  font-size: 12px;
  color: var(--kc-muted);
  font-weight: 700;
}

.gd-sup-sec {
  margin: 16px 0 8px;
  font-family: var(--mt-font-display);
  font-size: 1rem;
  color: var(--kc-blue-deep);
}

.gd-sup-days {
  display: grid;
  gap: 8px;
}

.gd-sup-day {
  padding: 12px !important;
}

@media (min-width: 900px) {
  .gd-sup__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .gd-sup__col {
    flex: none;
    min-width: 0;
  }
}

/* Supervisor status — mini cards, expand on tap */
.gd-sup__mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.gd-sup__mini-card {
  appearance: none;
  border: 1px solid var(--kc-border);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--kc-shadow);
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gd-sup__mini-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--kc-shadow-md);
}

.gd-sup__mini-card[aria-pressed="true"] {
  border-color: #f0b8bb;
  box-shadow: 0 0 0 3px rgba(227, 28, 35, 0.12);
}

.gd-sup__mini-card b {
  display: block;
  font-family: var(--mt-font-display);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
}

.gd-sup__mini-card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--kc-muted);
  line-height: 1.25;
}

.gd-sup__mini-card.is-ok b { color: var(--kc-red, #e31c23); }
.gd-sup__mini-card.is-wait b { color: #e65100; }
.gd-sup__mini-card.is-leave b { color: #1565c0; }

.gd-sup__detail {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  box-shadow: var(--kc-shadow);
  overflow: hidden;
  margin-bottom: 12px;
  animation: gd-sup-pop 0.18s ease;
}

@keyframes gd-sup-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.gd-sup__detail-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--kc-border);
  background: #faf7f7;
}

.gd-sup__detail-h strong {
  font-family: var(--mt-font-display);
  font-size: 14px;
  color: var(--kc-blue-deep);
}

.gd-sup__detail-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--kc-muted);
  cursor: pointer;
  font: inherit;
}

.gd-sup__detail .gd-sup__list {
  max-height: 360px;
}

/* ── Supervisor attendance hub (ทีมวันนี้ / แผนที่) — Report-KC logic ── */
.gd-hub { margin: -4px -2px 0; }
.gd-hub__tabs {
  display: flex;
  gap: 6px;
  padding: 4px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.gd-hub__tab {
  appearance: none;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.gd-hub__tab.is-on {
  background: var(--kc-red, #e31c23);
  color: #fff;
}
.gd-hub__tab-dot {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 2px #fff;
}
.gd-hub__pane { display: none; }
.gd-hub__pane.is-on { display: block; }

.gd-hub__card {
  background: #fff;
  border: 1px solid var(--kc-border, #e8edf5);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--kc-shadow);
}
.gd-hub__card-h {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--kc-blue-deep, #15233a);
  margin-bottom: 8px;
}
.gd-hub__select {
  width: 100%;
  border: 1px solid var(--kc-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.gd-hub__photo {
  margin-top: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 12px;
  text-align: center;
  color: var(--kc-muted);
  font-size: 13px;
  font-weight: 600;
  background: #f8fafc;
}
.gd-hub__btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gd-hub__btn--in { background: var(--kc-red, #e31c23); color: #fff; }
.gd-hub__btn--out { background: #fff; color: var(--kc-red); border: 1px solid #f0b8bb; }

.gd-hub__pending {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
  text-decoration: none;
  color: inherit;
}
.gd-hub__pending-ico {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; font-size: 16px; flex-shrink: 0;
}
.gd-hub__pending-body { flex: 1; min-width: 0; }
.gd-hub__pending-body strong { display: block; font-size: 13px; color: #9a3412; }
.gd-hub__pending-body small { color: #c2410c; font-size: 11px; }

.gd-hub__summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.gd-hub__sum {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--kc-shadow);
}
.gd-hub__sum b {
  display: block;
  font-family: var(--mt-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--kc-red, #e31c23);
  line-height: 1;
}
.gd-hub__sum span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--kc-muted);
}
.gd-hub__live {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--kc-muted);
}

.gd-hub__feed { display: flex; flex-direction: column; gap: 8px; }
.gd-hub__person {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--kc-shadow);
}
.gd-hub__person-main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.gd-hub__ava {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: var(--kc-red);
  font-weight: 800;
  flex-shrink: 0;
}
.gd-hub__person-text { flex: 1; min-width: 0; }
.gd-hub__person-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.gd-hub__person-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-hub__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}
.gd-hub__badge.is-in { background: #fee2e2; color: #b91c1c; }
.gd-hub__badge.is-out { background: #e0f2fe; color: #0369a1; }
.gd-hub__badge.is-wait { background: #ffedd5; color: #c2410c; }
.gd-hub__badge.is-leave { background: #e0e7ff; color: #3730a3; }
.gd-hub__person-extra {
  padding: 0 12px 12px;
  border-top: 1px solid #f1f5f9;
}
.gd-hub__person.is-collapsed .gd-hub__person-extra { display: none; }
.gd-hub__muted {
  margin: 8px 0;
  font-size: 11px;
  color: #64748b;
}
.gd-hub__person-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gd-hub__nudge,
.gd-hub__view {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.gd-hub__nudge {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}
.gd-hub__view {
  background: #f1f5f9;
  color: #475569;
}

.gd-hub__map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.gd-hub__map-toolbar strong { font-size: 13px; color: var(--kc-blue-deep); }
.gd-hub__map-filters { display: flex; gap: 6px; }
.gd-hub__map-filter {
  appearance: none;
  border: 1px solid var(--kc-border);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.gd-hub__map-filter.is-on {
  background: #fee2e2;
  border-color: #f0b8bb;
  color: var(--kc-red);
}
.gd-hub__map {
  height: 42vh;
  min-height: 240px;
  border-radius: 14px;
  border: 1px solid var(--kc-border);
  overflow: hidden;
  background: #e8edf5;
  z-index: 0;
}
.gd-hub__map-dock {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--kc-shadow);
}
.gd-hub__map-picker-h {
  font-size: 12px;
  font-weight: 700;
  color: var(--kc-blue-deep);
  margin-bottom: 8px;
}
.gd-hub__map-picker-h span { font-weight: 500; color: var(--kc-muted); }
.gd-hub__map-online {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.gd-hub__map-chip {
  flex: 0 0 112px;
  scroll-snap-align: start;
  appearance: none;
  border: 1px solid var(--kc-border);
  background: #fafcff;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  font: inherit;
  cursor: pointer;
}
.gd-hub__map-chip.is-on {
  border-color: var(--kc-red);
  box-shadow: 0 0 0 2px rgba(227, 28, 35, 0.15);
}
.gd-hub__map-ava {
  width: 40px; height: 40px; border-radius: 50%;
  margin: 0 auto 6px;
  display: grid; place-items: center;
  background: var(--kc-red);
  color: #fff;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #16a34a;
}
.gd-hub__map-ava.geo-warn { box-shadow: 0 0 0 2px #e65100; }
.gd-hub__map-ava.geo-far { box-shadow: 0 0 0 2px #c62828; }
.gd-hub__map-chip-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-hub__map-chip-store,
.gd-hub__map-chip-time {
  display: block;
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gd-hub__map-empty {
  font-size: 12px;
  color: var(--kc-muted);
  padding: 8px;
}
.gd-hub__toast {
  position: fixed;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: #15233a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  max-width: 90vw;
}
.gd-hub__pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.gd-hub__pill--idle { background: #f1f5f9; color: #64748b; }

.gd-hub__person-marker {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--kc-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.gd-hub__store-marker { font-size: 22px; line-height: 1; }

/* Bell + badge */
.gd-icon-btn--bell {
  position: relative;
}
.gd-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fbbf24;
  color: #7c2d12;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #9e1218;
}

/* Topbar profile avatar (Staff Office style) */
.gd-topbar__right {
  gap: 8px;
}
.gd-topbar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  background: linear-gradient(145deg, #fecaca 0%, #f87171 55%, #dc2626 100%);
  color: #fff;
  font-family: var(--mt-font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.gd-topbar__avatar:hover {
  filter: brightness(1.06);
}

/* Menu tile icons — stronger contrast, centered glyph */
.gd-ah__ic {
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  font-size: 22px !important;
}
.gd-ah__ic--profile,
.gd-ah__ic--team {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #6d28d9 !important;
}
.gd-ah__ic--checkin {
  background: rgba(227, 28, 35, 0.2) !important;
  color: #b91c1c !important;
}
.gd-ah__ic--leave {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #1d4ed8 !important;
}
.gd-ah__ic--time {
  background: rgba(217, 119, 6, 0.22) !important;
  color: #b45309 !important;
}

/* Profile */
.gd-pf__hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.gd-pf__av {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(227, 28, 35, 0.14);
  color: var(--kc-red, #e31c23);
  font-family: var(--mt-font-display);
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}
.gd-pf__name {
  margin: 0;
  font-family: var(--mt-font-display);
  font-size: 1.25rem;
  color: var(--kc-blue-deep);
}
.gd-pf__code {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--kc-muted);
}
.gd-pf__card {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 12px;
  box-shadow: var(--kc-shadow);
}
.gd-pf__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.gd-pf__row:last-child { border-bottom: 0; }
.gd-pf__row span { color: var(--kc-muted); }
.gd-pf__row strong { color: #1e293b; text-align: right; }
.gd-pf__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.gd-pf__kpis > div {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--kc-shadow);
}
.gd-pf__kpis b {
  display: block;
  font-family: var(--mt-font-display);
  font-size: 1.35rem;
  color: var(--kc-red, #e31c23);
}
.gd-pf__kpis span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--kc-muted);
}
.gd-pf__sec {
  margin: 8px 0 8px;
  font-size: 14px;
  font-family: var(--mt-font-display);
  color: var(--kc-blue-deep);
}
.gd-pf__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.gd-pf__chip {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: var(--kc-shadow);
}
.gd-pf__chip strong { display: block; font-size: 12px; color: var(--kc-red); }
.gd-pf__chip span { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }
.gd-pf__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gd-pf__list li {
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--kc-shadow);
}
.gd-pf__list strong { display: block; font-size: 13px; }
.gd-pf__list small { display: block; margin-top: 2px; font-size: 11px; color: #64748b; }

/* Notifications */
.gd-ntf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gd-ntf__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--kc-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--kc-shadow);
}
.gd-ntf__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  flex-shrink: 0;
  font-size: 18px;
}
.gd-ntf__body { flex: 1; min-width: 0; }
.gd-ntf__body strong { display: block; font-size: 13px; color: #1e293b; }
.gd-ntf__body small { display: block; margin-top: 2px; font-size: 11px; color: #64748b; }
.gd-ntf__arrow { color: #94a3b8; font-size: 18px; }

/* Profile tabs */
.gd-pf__tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  overflow-x: auto;
}
.gd-pf__tab {
  appearance: none;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.gd-pf__tab.is-on {
  background: var(--kc-red, #e31c23);
  color: #fff;
}

/* Salary — Staff Office style cards */
.gd-sal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gd-sal__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--kc-muted);
}
.gd-sal__select {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--kc-border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.gd-sal__me {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.gd-sal__me::before { content: "☺ "; }

.gd-sal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) {
  .gd-sal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .gd-sal__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gd-sal__card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--kc-border);
  box-shadow: var(--kc-shadow);
  display: flex;
  flex-direction: column;
  min-height: 148px;
}
.gd-sal__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
}
.gd-sal__n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.gd-sal__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gd-sal__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}
.gd-sal__cols span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}
.gd-sal__cols b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.gd-sal__empty {
  margin: 0;
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px 0;
}
.gd-sal__foot {
  margin: 10px 0 0;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
}

.gd-sal__card--slip .gd-sal__head { background: #2563eb; }
.gd-sal__card--tax .gd-sal__head { background: #ea580c; }
.gd-sal__card--sso .gd-sal__head { background: #0d9488; }
.gd-sal__card--pv .gd-sal__head { background: #16a34a; }
.gd-sal__card--slf .gd-sal__head { background: #dc2626; }
.gd-sal__card--seize .gd-sal__head { background: #7c3aed; }
.gd-sal__card--welfare .gd-sal__head { background: #db2777; }
.gd-sal__card--deposit .gd-sal__head { background: #64748b; }
