* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.admin-container {
  max-width: 960px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 12px;
  gap: 10px;
}

.admin-title {
  margin: 0;
  font-size: 20px;
  color: #1a73e8;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.admin-user-info {
  font-size: 13px;
  align-self: center;
}

.nav-btn {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: bold;
  font-size: 13px;
}

.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e0e0;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
}

.admin-input {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.status-msg {
  margin-top: 8px;
  font-size: 13px;
  font-weight: bold;
  min-height: 18px;
}

.map-container {
  width: 100%;
  height: 420px;
  border-radius: 8px;
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.table-title {
  margin: 0;
  font-size: 16px;
}

.table-sub-notice {
  font-size: 11px;
  color: #888;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 10px 8px;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

th:hover {
  background: #eceff1;
}

td {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
  vertical-align: middle;
}

.table-loading {
  text-align: center;
  color: #888;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

.badge-arrival {
  background: #e6f4ea;
  color: #137333;
}

.badge-depart {
  background: #fef7e0;
  color: #b06000;
}

.badge-working {
  background: #e8f0fe;
  color: #1a73e8;
}

.badge-finish {
  background: #fce8e6;
  color: #c5221f;
}

.btn-del {
  padding: 2px 6px;
  font-size: 11px;
  background: #d93025;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}