/* =========================================================
   LOGBOOK TRACKING
   ========================================================= */

.logbook-box {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
}

body.theme-dark .logbook-box {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.5);
}

.logbook-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.form-group label {
  font-size: 0.85rem;
  color: #111827;
}

body.theme-dark .form-group label {
  color: #e5e7eb;
}

.form-control {
  min-width: 220px;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: #111827;
  font-size: 0.9rem;
}

body.theme-dark .form-control {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.form-control::placeholder {
  color: #9ca3af;
}

.logbook-result {
  margin-top: 0.95rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  overflow-x: auto;
}

.logbook-result .show_data {
  border-radius: 1rem;
}

.logbook-result table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.98));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.logbook-result th,
.logbook-result td {
  padding: 0.95rem 1rem;
  border: 0;
  text-align: left;
}

.logbook-result tr + tr td,
.logbook-result tr + tr th,
.logbook-result tbody tr:first-child td,
.logbook-result tbody tr:first-child th {
  border-top: 1px solid rgba(203, 213, 225, 0.72);
}

.logbook-result thead th,
.logbook-result tr:first-child th {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(14, 165, 233, 0.16));
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logbook-result tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.82);
}

.logbook-result tbody tr:hover td {
  background: rgba(224, 242, 254, 0.45);
}

.logbook-result td {
  color: #334155;
  font-weight: 500;
}

.logbook-result td[colspan] {
  text-align: center;
  color: #475569;
  padding: 1.2rem 1rem;
}

@media (max-width: 640px) {
  .logbook-result table {
    min-width: 520px;
  }

  .logbook-result th,
  .logbook-result td {
    padding: 0.8rem 0.85rem;
    font-size: 0.84rem;
  }
}

