.tms-logbook-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .28);
  z-index: var(
    --tms-shell-overlay-z-index,
    2147483200
  );
}

.tms-logbook-drawer {
  position: fixed;
  top: 0;

  right: var(
    --tms-shell-drawer-right,
    0px
  );

  bottom: var(
    --tms-bridge-height,
    64px
  );

  width: var(
    --tms-logbook-drawer-width,
    640px
  );

  max-width: 96vw;

  height: auto;
  background: #ffffff;
  color: #111827;
  border-left: 1px solid rgba(15, 23, 42, .14);
  box-shadow: -18px 0 42px rgba(15, 23, 42, .24);
  transform: translateX(104%);
  transition: transform .22s ease;
  z-index: var(
    --tms-shell-drawer-z-index,
    2147483201
  );
  padding: 22px;
  overflow-y: auto;
}

.tms-logbook-drawer.is-open {
  transform: translateX(0);
}

.tms-logbook-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #f1f5f9;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.tms-logbook-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 22px;
}

.tms-logbook-mark {
  font-size: 30px;
}

.tms-logbook-head h2 {
  margin: 0 0 4px;
}

.tms-logbook-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.tms-logbook-form {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tms-logbook-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.tms-logbook-form button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  cursor: pointer;
}

.tms-logbook-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: 14px;
}

.tms-logbook-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #475569;
}

.tms-logbook-empty {
  font-size: 14px;
  color: #94a3b8;
}


.tms-logbook-items {
  display: grid;
  gap: 8px;
}

.tms-logbook-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 14px;
}

.tms-logbook-item__id {
  color: #64748b;
  font-weight: 800;
}

.tms-logbook-item__title {
  color: #0f172a;
}

.tms-logbook-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
}

.tms-logbook-status {
  justify-self: end;
  border: 1px solid rgba(126, 87, 194, .35);
  background: rgba(126, 87, 194, .08);
  color: #512da8;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.tms-logbook-status:hover {
  background: #7e57c2;
  color: #ffffff;
}
