* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "맑은 고딕", "Malgun Gothic", -apple-system, sans-serif;
  background: #f4f6f8;
  color: #1a1a1a;
}
.hidden { display: none !important; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f4e78;
  color: #fff;
  padding: 14px 18px;
}
.brand { font-weight: bold; font-size: 16px; }
.admin-link { color: #cfe3f5; text-decoration: none; font-size: 13px; }

.install-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3cd;
  color: #7a5c00;
  padding: 10px 16px;
  font-size: 13px;
}
.install-banner span#installText { flex: 1; }
.install-banner .btn { padding: 6px 14px; font-size: 13px; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f4f6f8; }
.admin-app { max-width: 720px; }

.screen { padding: 18px; }

.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h2 { margin-top: 0; font-size: 17px; }
.card h3 { margin-top: 0; font-size: 15px; color: #1f4e78; }

.select-lg, .input-lg {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #d5dbe2;
  border-radius: 8px;
  margin: 10px 0;
}
.input {
  padding: 9px 10px;
  font-size: 14px;
  border: 1px solid #d5dbe2;
  border-radius: 6px;
}
.input-sm { width: 80px; }

.btn {
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  background: #e8edf2;
  color: #1a1a1a;
  cursor: pointer;
}
.btn-primary { background: #2e75b6; color: #fff; font-weight: bold; }
.btn-primary:hover { background: #255f96; }
.btn-danger { background: #fdecea; color: #c53030; }
.btn-danger:hover { background: #f8d7d3; }
.btn-block { width: 100%; padding: 13px; font-size: 16px; margin-top: 6px; }
.link-btn { background: none; border: none; color: #2e75b6; font-size: 13px; cursor: pointer; }

.error-text { color: #c53030; font-size: 13px; }
.hint { color: #6b7480; font-size: 13px; }

.employee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.employee-name { font-size: 18px; font-weight: bold; }

.gps-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 14px;
}
.gps-badge .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.gps-checking { background: #eef1f4; color: #6b7480; }
.gps-checking .dot { background: #b7c3d0; }
.gps-in { background: #e6f4ea; color: #1e7a34; }
.gps-in .dot { background: #34a853; }
.gps-out { background: #fdecea; color: #c53030; }
.gps-out .dot { background: #e53935; }

.status-line { font-size: 14px; margin-bottom: 12px; color: #444; }
.status-line strong { color: #1f4e78; }

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 10px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}
.action-btn .icon { font-size: 26px; }
.action-btn:active { transform: scale(0.97); }
.action-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-checkin { background: #34a853; }
.btn-outing { background: #f4a300; }
.btn-early { background: #e08a1e; }
.btn-checkout { background: #d64545; }

.msg-box {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff3cd;
  color: #7a5c00;
  font-size: 13px;
  margin-bottom: 14px;
}

.timeline-card { background: #fff; border-radius: 12px; padding: 16px; }
.timeline-card h3 { margin-top: 0; font-size: 14px; color: #1f4e78; }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f4;
  font-size: 14px;
}
.timeline-list li:last-child { border-bottom: none; }
.timeline-list li.empty { color: #9aa4af; justify-content: center; }
.timeline-list .t-type { font-weight: bold; color: #1f4e78; }

/* 관리자 */
.tabs { display: flex; gap: 6px; padding: 0 18px; margin-top: 14px; flex-wrap: wrap; }
.tab-btn {
  padding: 9px 14px;
  border: none;
  border-radius: 20px;
  background: #e8edf2;
  cursor: pointer;
  font-size: 13px;
}
.tab-btn.active { background: #2e75b6; color: #fff; font-weight: bold; }
.tab-panel { padding: 18px; }
.form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef1f4; }
.table th { color: #6b7480; font-weight: bold; }

.check-all-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7480; margin-bottom: 8px; cursor: pointer; }
.check-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d5dbe2;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.check-list label:hover { background: #f4f6f8; }
.check-list input[type="checkbox"] { cursor: pointer; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #d5dbe2; flex-shrink: 0; }
.status-dot.on { background: #34a853; }

.map-box { width: 100%; height: 320px; border-radius: 10px; margin: 10px 0; }
