/* ============================================================
   Page Styles - Dashboard / Sites / Attendance / Documents
   ============================================================ */

/* ---------------- Dashboard ---------------- */
.dash { display: flex; flex-direction: column; gap: 18px; }

.dash-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid #E4ECFB;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, #F3F7FF 0%, #EBF2FF 44%, #F0FBF6 100%);
  box-shadow: var(--shadow-card);
}
.dash-hero::before,
.dash-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero::before {
  width: 280px;
  height: 280px;
  right: -70px;
  top: -150px;
  background: radial-gradient(circle, rgba(147, 172, 255, .32), transparent 68%);
}
.dash-hero::after {
  width: 240px;
  height: 240px;
  right: 190px;
  bottom: -190px;
  background: radial-gradient(circle, rgba(52, 211, 153, .22), transparent 68%);
}
.dash-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dash-hero-copy { min-width: 0; }
.dash-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 99px;
  background: rgba(255, 255, 255, .7);
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .02em;
}
.dash-hero-eyebrow .icon { width: 13px; height: 13px; }
.dash-hero-title {
  margin-top: 11px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.32;
}
.dash-hero-title em { font-style: normal; color: var(--brand-600); }
.dash-hero-desc { margin-top: 6px; max-width: 620px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.7; }
.dash-hero-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(222, 231, 248, .8);
}
.hero-pill .icon { width: 13px; height: 13px; color: var(--brand-500); }
.hero-pill strong { color: var(--brand-700); font-weight: 800; }
.dash-hero-side { display: flex; align-items: stretch; gap: 9px; flex: none; }
.hero-date-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 132px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(8px);
  text-align: center;
}
.hero-date-card small { color: var(--muted); font-size: 10px; font-weight: 650; }
.hero-date-card strong { margin-top: 2px; color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.hero-date-card span { margin-top: 1px; color: var(--brand-600); font-size: 10.5px; font-weight: 700; }
.hero-quick {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 158px;
}
.hero-quick button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 37px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
  text-align: left;
  transition: transform .18s, box-shadow .18s, color .18s;
}
.hero-quick button:hover { transform: translateX(2px); color: var(--brand-700); box-shadow: 0 6px 14px -8px rgba(78, 94, 130, .3); }
.hero-quick .icon { width: 15px; height: 15px; color: var(--brand-500); }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.dash-span-8 { grid-column: span 8; }
.dash-span-6 { grid-column: span 6; }
.dash-span-4 { grid-column: span 4; }
.dash-span-12 { grid-column: span 12; }
.dash-grid > .card { display: flex; flex-direction: column; }
.dash-grid > .card > .card-head { flex: none; }
.dash-grid > .card > .card-body { flex: 1; }

/* weekly schedule */
.week-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 14px 22px 4px; }
.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FBFCFF;
  color: var(--muted);
  text-align: center;
}
.week-day small { font-size: 9.5px; font-weight: 650; }
.week-day strong { color: var(--ink-soft); font-size: 15px; font-weight: 750; letter-spacing: -.03em; }
.week-day span { color: var(--muted-light); font-size: 8.5px; font-weight: 600; }
.week-day.is-today { border-color: var(--brand-200); background: linear-gradient(160deg, #EFF4FF, #E3ECFF); }
.week-day.is-today strong { color: var(--brand-700); }
.week-day.is-today span { color: var(--brand-500); }
.schedule-list { display: flex; flex-direction: column; padding: 8px 22px 16px; }
.schedule-item {
  display: grid;
  grid-template-columns: 50px 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.schedule-item:last-child { border-bottom: 0; }
.schedule-time { color: var(--ink); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.schedule-dot { position: relative; display: grid; place-items: center; }
.schedule-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300, #B7C6FF); }
.schedule-dot.is-done::before { background: var(--mint-500); }
.schedule-dot.is-progress::before { background: var(--peach-500); box-shadow: 0 0 0 4px rgba(247, 168, 92, .16); }
.schedule-dot.is-upcoming::before { background: var(--brand-200); }
.schedule-copy { min-width: 0; }
.schedule-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.schedule-status { font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.schedule-status--done { color: var(--mint-700); }
.schedule-status--progress { color: var(--peach-700); }
.schedule-status--upcoming { color: var(--muted); }
.schedule-empty { padding: 24px 0; text-align: center; color: var(--muted); font-size: 11.5px; }

/* notices */
.notice-list { display: flex; flex-direction: column; padding: 8px 13px 14px; }
.notice-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 10px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background .15s;
}
.notice-row:hover { background: #F8FAFF; }
.notice-row + .notice-row { border-top: 1px dashed var(--line); border-radius: 0 0 10px 10px; }
.notice-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
}
.notice-icon .icon { width: 15px; height: 15px; }
.notice-icon--safety { color: var(--peach-600); background: var(--peach-50); }
.notice-icon--notice { color: var(--brand-600); background: var(--brand-50); }
.notice-copy { flex: 1; min-width: 0; }
.notice-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notice-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.notice-pin { width: 13px; height: 13px; flex: none; color: var(--brand-400); margin-top: 2px; }
.notice-new { width: 5px; height: 5px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--rose-500); }

/* mini approval */
.mini-list { display: flex; flex-direction: column; padding: 8px 14px 12px; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background .15s;
}
.mini-row:hover { background: #F8FAFF; }
.mini-row + .mini-row { border-top: 1px dashed var(--line); border-radius: 0 0 10px 10px; }
.mini-row-copy { flex: 1; min-width: 0; }
.mini-row-copy strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; }
.mini-row .badge { flex: none; }
.mini-row-end { flex: none; color: var(--muted-light); display: grid; place-items: center; }
.mini-row-end .icon { width: 14px; height: 14px; }

/* mini contract */
.contract-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.contract-mini:hover { background: #F8FAFF; }
.contract-mini + .contract-mini { border-top: 1px dashed var(--line); }
.contract-mini .dday { min-width: 44px; height: 31px; font-size: 10px; }
.contract-mini-copy { flex: 1; min-width: 0; }
.contract-mini-copy strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contract-mini-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; }

/* attendance snapshot */
.snapshot-body { display: flex; align-items: center; gap: 16px; padding: 12px 22px 16px; }
.ratio-ring {
  --value: 90;
  --ring-tone: var(--brand-500);
  position: relative;
  width: 108px;
  height: 108px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-tone) calc(var(--value) * 1%), #EFF3FA 0);
}
.ratio-ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.ratio-ring-copy { position: relative; z-index: 1; text-align: center; line-height: 1.15; }
.ratio-ring-copy strong { display: block; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.05em; }
.ratio-ring-copy strong small { font-size: 11px; font-weight: 650; color: var(--muted); }
.ratio-ring-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.snapshot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.snapshot-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; }
.snapshot-line span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.snapshot-line i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.snapshot-line strong { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.snapshot-line .dot-blue { background: var(--brand-500); }
.snapshot-line .dot-mint { background: var(--mint-500); }
.snapshot-line .dot-peach { background: var(--peach-500); }
.snapshot-line .dot-rose { background: var(--rose-500); }

/* quick links */
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.quick-link:hover { transform: translateY(-2px); border-color: var(--brand-200); box-shadow: var(--shadow-card); }
.quick-link-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.quick-link-icon .icon { width: 18px; height: 18px; }
.quick-link strong { color: var(--ink); font-size: 12px; font-weight: 700; }
.quick-link small { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.tone-blue { color: var(--brand-600); background: var(--brand-50); }
.tone-mint { color: var(--mint-600); background: var(--mint-50); }
.tone-peach { color: var(--peach-600); background: var(--peach-50); }
.tone-rose { color: var(--rose-600); background: var(--rose-50); }
.tone-lavender { color: var(--lavender-600); background: var(--lavender-50); }
.tone-sky { color: var(--sky-600); background: var(--sky-50); }

/* ---------------- Sites ---------------- */
.sites-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sites-toolbar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-summary-line { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.site-summary-line strong { color: var(--ink-soft); font-weight: 700; }

.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.site-card:hover { transform: translateY(-3px); border-color: #DCE6F8; box-shadow: 0 16px 34px -20px rgba(78, 94, 130, .3); }
.site-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--brand-300, #AFC1FF), var(--brand-100));
  opacity: .85;
}
.site-card.tone-card-mint::before { background: linear-gradient(90deg, #7DE7C4, #D9F8EC); }
.site-card.tone-card-peach::before { background: linear-gradient(90deg, #FFC98F, #FFE9D2); }
.site-card.tone-card-lavender::before { background: linear-gradient(90deg, #CDBFFF, #EDE8FF); }
.site-card.tone-card-sky::before { background: linear-gradient(90deg, #94E0FF, #DCF4FF); }
.site-card-top { display: flex; align-items: flex-start; gap: 10px; }
.site-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
}
.site-card-icon .icon { width: 19px; height: 19px; }
.site-card-title { flex: 1; min-width: 0; }
.site-card-title strong { display: block; color: var(--ink); font-size: 14px; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card-title small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card .status-pill { flex: none; }
.site-card-address { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; }
.site-card-address .icon { width: 12px; height: 12px; flex: none; color: var(--muted-light); }
.site-card-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.site-card-progress-head strong { color: var(--ink-soft); font-size: 10.5px; font-weight: 700; }
.site-card-progress-head strong em { font-style: normal; color: var(--brand-600); }
.site-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.site-fact { min-width: 0; text-align: center; }
.site-fact + .site-fact { border-left: 1px solid var(--line); }
.site-fact span { display: block; color: var(--muted); font-size: 9px; }
.site-fact strong { display: block; margin-top: 2px; color: var(--ink); font-size: 11.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-fact strong.is-warn { color: var(--peach-700); }
.site-fact strong.is-rose { color: var(--rose-600); }
.site-fact strong.is-mint { color: var(--mint-700); }
.site-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.site-manager { display: flex; align-items: center; gap: 6px; min-width: 0; }
.site-manager-copy { min-width: 0; }
.site-manager-copy strong { display: block; color: var(--ink-soft); font-size: 10.5px; font-weight: 650; }
.site-manager-copy small { display: block; color: var(--muted-light); font-size: 9px; }
.site-card-link { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-600); font-size: 10px; font-weight: 700; white-space: nowrap; }
.site-card-link .icon { width: 13px; height: 13px; }

/* site detail modal */
.site-detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(120deg, #F2F6FF, #F0FBF6);
}
.site-detail-hero .site-card-icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; }
.site-detail-hero-copy { flex: 1; min-width: 0; }
.site-detail-hero-copy strong { display: block; color: var(--ink); font-size: 17px; font-weight: 780; letter-spacing: -.03em; }
.site-detail-hero-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.site-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.detail-fact { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #FCFDFF; }
.detail-fact span { display: block; color: var(--muted); font-size: 9.5px; }
.detail-fact strong { display: block; margin-top: 2px; color: var(--ink); font-size: 12px; font-weight: 700; }
.detail-fact strong .dday { height: 23px; min-width: 38px; font-size: 9.5px; vertical-align: middle; margin-left: 4px; }
.detail-section { margin-top: 18px; }
.detail-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 750; }
.detail-section-title small { color: var(--muted); font-size: 10px; font-weight: 500; }
.site-staff-row { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.site-staff-row:last-child { border-bottom: 0; }
.site-staff-row-copy { flex: 1; min-width: 0; }
.site-staff-row-copy strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 650; }
.site-staff-row-copy small { display: block; color: var(--muted); font-size: 9.5px; }
.site-contact-actions { display: flex; gap: 6px; }

/* ---------------- Attendance ---------------- */
.attendance-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.clock-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid #E4ECFB;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #F3F7FF, #EFFBF7);
  box-shadow: var(--shadow-card);
}
.clock-card::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 172, 255, .26), transparent 70%);
}
.clock-copy { position: relative; z-index: 1; min-width: 0; }
.clock-copy small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; font-weight: 650; }
.clock-copy small .icon { width: 13px; height: 13px; }
.clock-time {
  margin-top: 4px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.clock-time span { margin-left: 3px; color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.clock-copy p { margin-top: 5px; color: var(--ink-soft); font-size: 11.5px; }
.clock-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; flex: none; }
.clock-actions .btn { min-width: 136px; }
.clock-actions .btn--primary { height: 46px; border-radius: 13px; }
.clock-status { display: flex; align-items: center; gap: 5px; justify-content: center; color: var(--mint-700); font-size: 10px; font-weight: 700; }
.clock-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint-500); }
.attendance-overview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.attendance-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.attendance-overview-head strong { color: var(--ink); font-size: 13px; font-weight: 750; }
.attendance-overview-head span { color: var(--muted); font-size: 10px; }
.attendance-bars { display: flex; flex-direction: column; gap: 7px; }
.attendance-bar-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.attendance-bar-row > span { color: var(--ink-soft); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.attendance-bar-row > strong { color: var(--ink); font-size: 10.5px; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.attendance-bar-row > strong small { color: var(--muted); font-size: 9px; font-weight: 500; }
.attend-bar { height: 7px; border-radius: 99px; background: #F0F4FA; overflow: hidden; }
.attend-bar > span { display: block; height: 100%; border-radius: inherit; }

.attendance-card { overflow: hidden; }
.attendance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.attendance-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attendance-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attendance-date { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 11.5px; font-weight: 650; }
.attendance-date .icon { width: 14px; height: 14px; color: var(--muted); }
.checkin-time { color: var(--ink); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkin-time.is-empty { color: var(--muted-light); font-weight: 500; }
.shift-badge { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 6px; background: #F4F7FC; color: var(--ink-soft); font-size: 9.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.attendance-person { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.attendance-person strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.attendance-person small { display: block; color: var(--muted); font-size: 9.5px; }
.attendance-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: #FCFDFF; }
.attendance-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9.5px; }
.attendance-legend i { width: 6px; height: 6px; border-radius: 50%; }
.attendance-legend .lg-blue { background: var(--brand-500); }
.attendance-legend .lg-mint { background: var(--mint-500); }
.attendance-legend .lg-peach { background: var(--peach-500); }
.attendance-legend .lg-slate { background: var(--muted-light); }
.attendance-legend .lg-rose { background: var(--rose-500); }
.attendance-note-btn { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: transparent; color: var(--brand-600); font-size: 10px; font-weight: 650; }
.attendance-note-btn .icon { width: 12px; height: 12px; }
.attendance-empty { padding: 36px 20px; text-align: center; color: var(--muted); font-size: 11.5px; }

.week-bars-card .card-body { padding-top: 14px; }
.week-bars { display: flex; align-items: flex-end; gap: 9px; height: 132px; padding-top: 6px; }
.week-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.week-bar-value { color: var(--ink-soft); font-size: 9.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.week-bar {
  position: relative;
  width: 100%;
  max-width: 34px;
  height: var(--h, 40%);
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, #B9CAFF, #E8EEFF);
  transition: background .18s;
}
.week-bar.is-today { background: linear-gradient(180deg, #7E99FF, #D6E1FF); }
.week-bar.is-today::after { content: ''; position: absolute; top: -4px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-600); transform: translateX(-50%); }
.week-bar-day { color: var(--muted); font-size: 9px; font-weight: 600; }
.week-bar-day.is-today { color: var(--brand-600); font-weight: 750; }
.week-bars-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 9.5px; }
.week-bars-foot strong { color: var(--ink-soft); font-weight: 700; }

/* ---------------- Documents ---------------- */
.doc-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 18px; align-items: start; }
.doc-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.doc-cat-card { padding: 12px; }
.doc-cat-label { padding: 8px 10px 6px; color: var(--muted-light); font-size: 9.5px; font-weight: 750; letter-spacing: .06em; }
.doc-cat {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
  transition: background .15s, border-color .15s, color .15s;
}
.doc-cat:hover { background: #F8FAFF; }
.doc-cat.is-active { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); font-weight: 750; }
.doc-cat .icon { width: 16px; height: 16px; color: var(--muted); }
.doc-cat.is-active .icon { color: var(--brand-600); }
.doc-cat span { flex: 1; min-width: 0; }
.doc-cat em { font-style: normal; color: var(--muted-light); font-size: 9.5px; font-weight: 650; }
.doc-cat.is-active em { color: var(--brand-500); }
.doc-storage {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #F7FAFF, #F2FBF8);
  box-shadow: var(--shadow-card);
}
.doc-storage-head { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10.5px; font-weight: 650; }
.doc-storage-head .icon { width: 15px; height: 15px; color: var(--brand-500); }
.doc-storage-value { margin-top: 8px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.doc-storage-value small { margin-left: 2px; color: var(--muted); font-size: 10px; font-weight: 550; }
.doc-storage .progress { margin-top: 9px; height: 6px; }
.doc-storage-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 9px; }

.doc-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.doc-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.doc-main-title { display: flex; align-items: baseline; gap: 7px; }
.doc-main-title strong { color: var(--ink); font-size: 16px; font-weight: 760; letter-spacing: -.025em; }
.doc-main-title span { color: var(--muted); font-size: 10.5px; }
.doc-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-toolbar .search-field { width: 240px; }
.doc-card { overflow: hidden; }
.doc-list { display: flex; flex-direction: column; }
.doc-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 92px 74px 82px;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { background: #FBFDFF; }
.file-icon {
  width: 38px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 8px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.file-icon .icon { width: 15px; height: 15px; }
.file-icon--pdf { color: var(--rose-600); background: var(--rose-50); }
.file-icon--hwp { color: var(--brand-600); background: var(--brand-50); }
.file-icon--xlsx { color: var(--mint-600); background: var(--mint-50); }
.doc-copy { min-width: 0; }
.doc-copy strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.doc-meta { color: var(--muted); font-size: 10px; white-space: nowrap; }
.doc-meta strong { display: block; color: var(--ink-soft); font-size: 10.5px; font-weight: 650; }
.doc-size { color: var(--muted); font-size: 10px; text-align: right; white-space: nowrap; }
.doc-actions { display: flex; justify-content: flex-end; gap: 3px; }
.doc-actions .icon-btn { width: 30px; height: 30px; border-radius: 9px; }
.doc-actions .icon-btn .icon { width: 15px; height: 15px; }
.doc-list-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 92px 74px 82px;
  gap: 12px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  background: #FBFCFE;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
}
.doc-list-head span:nth-child(4) { text-align: right; }
.doc-list-head span:last-child { text-align: right; }
.doc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 20px; border-top: 1px solid var(--line); background: #FCFDFF; color: var(--muted); font-size: 9.5px; }
.doc-foot strong { color: var(--ink-soft); font-weight: 700; }
.doc-side-list { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 14px; }
.doc-side-row { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border: 0; background: transparent; text-align: left; width: 100%; }
.doc-side-row:hover .doc-side-copy strong { color: var(--brand-600); }
.doc-rank { width: 17px; height: 17px; display: grid; place-items: center; flex: none; border-radius: 5px; background: #F3F6FC; color: var(--muted); font-size: 8.5px; font-weight: 750; }
.doc-side-copy { flex: 1; min-width: 0; }
.doc-side-copy strong { display: block; color: var(--ink-soft); font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.doc-side-copy small { display: block; color: var(--muted-light); font-size: 8.5px; }
.doc-side-dl { color: var(--muted); font-size: 9px; white-space: nowrap; }
.upload-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #FCFDFF;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.upload-zone:hover { border-color: var(--brand-300, #AFC1FF); background: var(--brand-50); }
.upload-zone-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; background: #fff; color: var(--brand-500); border: 1px solid var(--line); }
.upload-zone-icon .icon { width: 16px; height: 16px; }
.upload-zone strong { display: block; color: var(--ink-soft); font-size: 10.5px; font-weight: 700; }
.upload-zone small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }

/* ---------------- Approvals ---------------- */
.approval-layout { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 18px; align-items: start; }
.approval-main { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.approval-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.approval-toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.approval-summary { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; }
.approval-summary strong { color: var(--ink-soft); font-weight: 700; }
.approval-list { display: flex; flex-direction: column; gap: 10px; }
.approval-card {
  position: relative;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: border-color .18s, box-shadow .18s;
}
.approval-card:hover { border-color: #DDE7F8; box-shadow: 0 12px 26px -18px rgba(78, 94, 130, .22); }
.approval-card.is-pending { border-left: 3px solid var(--peach-400, #FAC28A); }
.approval-card.is-approved { border-left: 3px solid var(--mint-400, #6EE7B7); }
.approval-card.is-rejected { border-left: 3px solid var(--rose-300, #FDA4AF); }
.approval-card-head { display: flex; align-items: flex-start; gap: 10px; }
.approval-kind {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
}
.approval-kind .icon { width: 19px; height: 19px; }
.approval-kind--leave { color: var(--brand-600); background: var(--brand-50); }
.approval-kind--worklog { color: var(--mint-600); background: var(--mint-50); }
.approval-kind--safety { color: var(--peach-600); background: var(--peach-50); }
.approval-head-copy { flex: 1; min-width: 0; }
.approval-head-copy strong { display: block; color: var(--ink); font-size: 13.5px; font-weight: 750; letter-spacing: -.02em; }
.approval-head-copy small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 3px; color: var(--muted); font-size: 10px; }
.approval-head-copy small .sep { color: var(--line-strong); }
.approval-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.approval-time { color: var(--muted-light); font-size: 9px; }
.approval-reason {
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #FAFCFF;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}
.approval-reason strong { color: var(--ink); font-weight: 650; }
.approval-reason.is-reject { background: var(--rose-50); color: var(--rose-700); }
.approval-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.approval-flow { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9.5px; }
.flow-avatar { display: inline-flex; align-items: center; gap: 4px; }
.flow-arrow { color: var(--muted-light); }
.flow-arrow .icon { width: 12px; height: 12px; }
.approval-actions { display: flex; align-items: center; gap: 5px; }
.approval-actions .btn { height: 31px; padding: 0 10px; font-size: 10.5px; border-radius: 8px; }
.approval-actions .btn .icon { width: 13px; height: 13px; }
.approval-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 11.5px; }

.approval-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.leave-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px 18px 16px; }
.leave-stat { padding: 9px 6px; border: 1px solid var(--line); border-radius: 10px; background: #FCFDFF; text-align: center; }
.leave-stat span { display: block; color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.leave-stat strong { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -.04em; }
.leave-stat strong small { margin-left: 1px; color: var(--muted); font-size: 8.5px; font-weight: 550; }
.leave-stat.is-blue strong { color: var(--brand-600); }
.leave-stat.is-mint strong { color: var(--mint-700); }
.leave-stat.is-peach strong { color: var(--peach-700); }
.side-info-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 17px; }
.side-info-row { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.side-info-row .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--brand-400); }
.side-info-row strong { color: var(--ink); font-weight: 650; }
.quick-form-list { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 16px; }
.quick-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.quick-form:hover { border-color: var(--brand-200); background: #FBFDFF; }
.quick-form-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 8px; }
.quick-form-icon .icon { width: 14px; height: 14px; }
.quick-form span { flex: 1; color: var(--ink-soft); font-size: 10.5px; font-weight: 650; }
.quick-form > .icon { width: 13px; height: 13px; color: var(--muted-light); }

.leave-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.approval-detail-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FAFCFF; }
.approval-detail-top-copy { flex: 1; min-width: 0; }
.approval-detail-top-copy strong { display: block; color: var(--ink); font-size: 14px; font-weight: 750; }
.approval-detail-top-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.detail-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.detail-dl > div { padding: 10px 13px; border-bottom: 1px solid var(--line); }
.detail-dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-dl > div:nth-child(odd) { border-right: 1px solid var(--line); background: #FCFDFF; }
.detail-dl dt { color: var(--muted); font-size: 9.5px; }
.detail-dl dd { margin: 2px 0 0; color: var(--ink); font-size: 11.5px; font-weight: 650; }
.approval-timeline { position: relative; margin-top: 16px; padding-left: 16px; }
.approval-timeline::before { content: ''; position: absolute; left: 4px; top: 5px; bottom: 8px; width: 1px; background: var(--line-strong); }
.flow-step { position: relative; display: flex; align-items: flex-start; gap: 9px; padding-bottom: 13px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ''; position: absolute; left: -15px; top: 5px; width: 7px; height: 7px; border-radius: 50%; border: 2px solid #fff; background: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.flow-step.is-done::before { background: var(--mint-500); box-shadow: 0 0 0 1px var(--mint-500); }
.flow-step.is-current::before { background: var(--peach-500); box-shadow: 0 0 0 1px var(--peach-500); }
.flow-step-copy strong { display: block; color: var(--ink); font-size: 11px; font-weight: 650; }
.flow-step-copy small { display: block; color: var(--muted); font-size: 9.5px; }

/* ---------------- Contracts ---------------- */
.contract-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid #FFE1CB;
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, #FFF8F0, #FFFDF9 60%, #F4FBF8);
  box-shadow: var(--shadow-card);
}
.contract-alert-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 12px; background: #fff; color: var(--peach-600); border: 1px solid #FFE9D2; }
.contract-alert-icon .icon { width: 18px; height: 18px; }
.contract-alert-copy { flex: 1; min-width: 0; }
.contract-alert-copy strong { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12.5px; font-weight: 750; }
.contract-alert-copy p { margin-top: 2px; color: var(--ink-soft); font-size: 10.5px; line-height: 1.6; }
.contract-alert .btn { flex: none; }
.contract-urgent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contract-urgent {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.contract-urgent:hover { transform: translateY(-2px); border-color: #F4D9BE; box-shadow: 0 14px 30px -18px rgba(201, 120, 34, .25); }
.contract-urgent::after { content: ''; position: absolute; width: 110px; height: 110px; right: -45px; top: -55px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 168, 92, .16), transparent 70%); }
.contract-urgent-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.contract-urgent-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 750; }
.contract-urgent-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.contract-urgent .dday { height: 38px; min-width: 50px; font-size: 11.5px; }
.contract-urgent-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 9.5px; }
.contract-urgent-foot strong { color: var(--ink-soft); font-weight: 700; font-size: 10px; }
.contract-urgent-bar { position: relative; z-index: 1; height: 5px; border-radius: 99px; background: #F5F7FC; overflow: hidden; }
.contract-urgent-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFD09F, #F7A85C); }
.contract-urgent-bar.is-rose span { background: linear-gradient(90deg, #FFB7C2, #FB7185); }
.contract-urgent-bar.is-blue span { background: linear-gradient(90deg, #B9CAFF, #7E99FF); }
.contract-table-card { overflow: hidden; }
.contract-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.contract-toolbar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contract-site-cell { display: flex; align-items: center; gap: 8px; }
.contract-site-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); }
.contract-site-icon .icon { width: 15px; height: 15px; }
.contract-site-copy strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 650; }
.contract-site-copy small { display: block; color: var(--muted); font-size: 9.5px; }
.contract-amount { color: var(--ink-soft); font-size: 11px; font-weight: 650; white-space: nowrap; }
.contract-progress { width: 92px; }
.contract-progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; color: var(--muted-light); font-size: 8.5px; }
.contract-progress-head strong { color: var(--muted); font-weight: 650; }
.contract-progress .progress { height: 5px; }
.kapt-guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 4px 20px 20px; }
.kapt-step { position: relative; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #FCFDFF; }
.kapt-step + .kapt-step::before { content: ''; position: absolute; left: -9px; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
.kapt-step-no { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--brand-50); color: var(--brand-600); font-size: 9px; font-weight: 800; }
.kapt-step strong { display: block; margin-top: 7px; color: var(--ink); font-size: 10.5px; font-weight: 700; }
.kapt-step small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.kapt-step.is-done .kapt-step-no { background: var(--mint-50); color: var(--mint-700); }

/* ---------------- Safety ---------------- */
.safety-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid #D9F0E7;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #F1FBF7 0%, #EDF8FF 55%, #F6F3FF 100%);
  box-shadow: var(--shadow-card);
}
.safety-hero::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -60px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .20), transparent 70%);
}
.safety-hero-copy { position: relative; z-index: 1; min-width: 0; }
.safety-eyebrow { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: rgba(255, 255, 255, .8); color: var(--mint-700); font-size: 10px; font-weight: 750; }
.safety-eyebrow .icon { width: 13px; height: 13px; }
.safety-title { margin-top: 9px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.safety-title strong { color: var(--mint-700); }
.safety-desc { margin-top: 4px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.65; }
.safety-hero-stats { position: relative; z-index: 1; display: flex; gap: 9px; flex: none; }
.safety-hero-fact { min-width: 94px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; background: rgba(255, 255, 255, .78); text-align: center; }
.safety-hero-fact span { display: block; color: var(--muted); font-size: 9px; }
.safety-hero-fact strong { display: block; margin-top: 2px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.safety-hero-fact strong small { color: var(--muted); font-size: 9.5px; font-weight: 600; }
.safety-hero-fact.is-mint strong { color: var(--mint-700); }
.safety-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.checklist { display: flex; flex-direction: column; padding: 4px 18px 16px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--line);
  cursor: pointer;
}
.check-row:last-child { border-bottom: 0; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: transparent;
  transition: all .18s;
}
.check-box .icon { width: 12px; height: 12px; }
.check-row input:checked + .check-box { border-color: var(--mint-500); background: var(--mint-500); color: #fff; }
.check-row input:focus-visible + .check-box { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.check-copy { flex: 1; min-width: 0; }
.check-copy strong { display: block; color: var(--ink-soft); font-size: 11.5px; font-weight: 600; line-height: 1.5; transition: color .18s; }
.check-row input:checked ~ .check-copy strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--mint-400, #6EE7B7); }
.check-copy small { display: block; margin-top: 1px; color: var(--muted-light); font-size: 9px; }
.checklist-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 20px; border-top: 1px solid var(--line); background: #FCFDFF; color: var(--muted); font-size: 9.5px; }
.checklist-foot strong { color: var(--mint-700); font-weight: 700; }
.edu-list { display: flex; flex-direction: column; padding: 4px 18px 16px; }
.edu-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.edu-row:last-child { border-bottom: 0; }
.edu-date { width: 42px; flex: none; text-align: center; padding: 5px 2px; border-radius: 8px; background: var(--brand-50); }
.edu-date strong { display: block; color: var(--brand-700); font-size: 14px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.edu-date span { display: block; color: var(--brand-500); font-size: 8.5px; font-weight: 650; }
.edu-copy { flex: 1; min-width: 0; }
.edu-copy strong { display: block; color: var(--ink); font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edu-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 9px; }
.edu-row .status-pill { flex: none; }
.risk-list { display: flex; flex-direction: column; padding: 4px 18px 16px; }
.risk-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.risk-row:last-child { border-bottom: 0; }
.risk-level { width: 6px; height: 32px; flex: none; border-radius: 99px; margin-top: 2px; }
.risk-level--high { background: var(--rose-500); }
.risk-level--mid { background: var(--peach-500); }
.risk-level--low { background: var(--mint-500); }
.risk-copy { flex: 1; min-width: 0; }
.risk-copy strong { display: block; color: var(--ink); font-size: 11px; font-weight: 650; line-height: 1.45; }
.risk-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.risk-row .status-pill { flex: none; }
.safety-quote {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 18px 16px;
  padding: 11px 13px;
  border-radius: 11px;
  background: linear-gradient(120deg, #F2FBF8, #F6FAFF);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}
.safety-quote .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--mint-500); }
.safety-quote strong { color: var(--mint-700); font-weight: 700; }

/* ---------------- Shared page utilities ---------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.toolbar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-note { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.inline-note .icon { width: 13px; height: 13px; }
.card--flush .card-body { padding: 0; }
.card--soft { background: linear-gradient(150deg, #FBFCFF, #F7FAFF); }
.list-divider { height: 1px; background: var(--line); margin: 4px 0; }
.clickable-row { cursor: pointer; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1380px) {
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1220px) {
  .dash-span-8, .dash-span-4, .dash-span-6 { grid-column: span 6; }
  .dash-span-8.dash-keep { grid-column: span 12; }
  .dash-hero-side { flex-direction: column; }
  .hero-quick { min-width: 172px; }
  .approval-layout { grid-template-columns: minmax(0, 1fr) 286px; }
  .doc-layout { grid-template-columns: 204px minmax(0, 1fr); }
  .doc-row { grid-template-columns: 40px minmax(0, 1fr) 82px 62px 74px; }
  .doc-list-head { grid-template-columns: 40px minmax(0, 1fr) 82px 62px 74px; }
}
@media (max-width: 1024px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .doc-cat-card { flex: 1 1 100%; }
  .doc-cat-card .doc-cat-list { display: flex; flex-wrap: wrap; }
  .doc-cat { width: auto; flex: 1 1 150px; }
  .doc-storage { flex: 1 1 240px; }
  .doc-side > .card:last-child { flex: 1 1 260px; }
  .doc-side > .card:last-child .doc-side-list { display: none; }
  .approval-layout { grid-template-columns: 1fr; }
  .approval-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-top { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-urgent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kapt-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kapt-step + .kapt-step::before { display: none; }
}
@media (max-width: 900px) {
  .dash-span-8, .dash-span-4, .dash-span-6, .dash-span-12 { grid-column: span 12; }
  .dash-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dash-hero-side { flex-direction: row; width: 100%; }
  .hero-date-card { flex: 1; }
  .hero-quick { flex: 1; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-row { grid-template-columns: 40px minmax(0, 1fr) 74px 64px; }
  .doc-list-head { grid-template-columns: 40px minmax(0, 1fr) 74px 64px; }
  .doc-size { display: none; }
  .doc-list-head span:nth-child(4) { display: none; }
  .contract-urgent-grid { grid-template-columns: 1fr; }
  .safety-hero { flex-direction: column; align-items: flex-start; }
  .safety-hero-stats { width: 100%; }
  .safety-hero-fact { flex: 1; }
  .clock-card { flex-direction: column; align-items: flex-start; }
  .clock-actions { flex-direction: row; width: 100%; }
  .clock-actions .btn { flex: 1; }
  .clock-actions .btn--primary { flex: 1.4; }
}
@media (max-width: 720px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-card { padding: 16px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quick-link { padding: 12px; flex-direction: row; align-items: center; gap: 8px; }
  .quick-link-icon { width: 32px; height: 32px; flex: none; }
  .quick-link strong { font-size: 11px; }
  .quick-link small { display: none; }
  .week-strip { padding: 12px 16px 2px; }
  .schedule-list { padding: 6px 16px 14px; }
  .card-head { padding: 16px 16px 0; }
  .card-body { padding: 16px; }
  .card-foot { padding: 11px 16px; }
  .snapshot-body { padding: 10px 16px 15px; }
  .notice-list { padding: 6px 9px 10px; }
  .mini-list { padding: 6px 10px 10px; }
  .attendance-toolbar { padding: 12px 15px; }
  .attendance-toolbar .search-field { width: 100%; }
  .attendance-legend { padding: 10px 15px; }
  .doc-toolbar { width: 100%; }
  .doc-toolbar .search-field { width: 100%; flex: 1 1 100%; }
  .doc-main-head { align-items: flex-start; }
  .doc-row { grid-template-columns: 36px minmax(0, 1fr) 62px; gap: 9px; padding: 11px 15px; }
  .doc-list-head { display: none; }
  .doc-meta { display: none; }
  .doc-actions .icon-btn:first-child { display: none; }
  .doc-cat { flex: 1 1 128px; }
  .approval-card { padding: 14px; }
  .approval-card-head { gap: 8px; }
  .approval-head-copy strong { font-size: 12.5px; }
  .approval-head-side { display: none; }
  .approval-side { grid-template-columns: 1fr; }
  .leave-form-row { grid-template-columns: 1fr; }
  .detail-dl { grid-template-columns: 1fr; }
  .detail-dl > div:nth-child(odd) { border-right: 0; }
  .detail-dl > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .contract-alert { flex-wrap: wrap; }
  .contract-alert .btn { width: 100%; }
  .kapt-guide { padding: 0 16px 16px; }
  .contract-toolbar { padding: 12px 15px; }
  .safety-hero { padding: 20px; }
  .safety-hero-stats { flex-wrap: wrap; }
  .safety-hero-fact { min-width: 84px; }
  .safety-hero-fact strong { font-size: 18px; }
  .checklist, .edu-list, .risk-list { padding: 2px 16px 14px; }
  .safety-quote { margin: 0 16px 14px; }
  .doc-foot { padding: 10px 15px; }
  .doc-main-title { flex-direction: column; gap: 1px; }
  .site-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dash-hero { padding: 20px 18px; }
  .dash-hero-title { font-size: 21px; }
  .dash-hero-side { flex-direction: column; }
  .hero-date-card { flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; text-align: left; }
  .hero-date-card strong { margin: 0; font-size: 18px; }
  .hero-quick { min-width: 0; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .site-card-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ratio-ring { width: 92px; height: 92px; }
  .ratio-ring-copy strong { font-size: 21px; }
  .week-day { padding: 6px 2px; }
  .week-day strong { font-size: 13px; }
  .attendance-bar-row { grid-template-columns: 62px minmax(0, 1fr) 36px; }
  .contract-urgent-grid { grid-template-columns: 1fr; }
  .kapt-guide { grid-template-columns: 1fr; }
  .clock-time { font-size: 32px; }
  .clock-actions { flex-direction: column; }
  .clock-actions .btn { width: 100%; }
  .doc-cat { flex: 1 1 100%; }
  .doc-side > .card:last-child { display: none; }
  .approval-card-foot { align-items: flex-start; flex-direction: column; }
  .approval-actions { width: 100%; }
  .approval-actions .btn { flex: 1; }
  .safety-hero-fact { flex: 1 1 40%; }
}
