/* Panel Notas — Atenea steel */
#panel-notas {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  background: linear-gradient(180deg, #1a2230 0%, #141a24 55%, #10151d 100%);
  border-left: 1px solid var(--steel-border, #3d4a5c);
  display: flex;
  flex-direction: column;
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  font-family: "Segoe UI", sans-serif;
  color: var(--steel-title, #c8d0dc);
}
#panel-notas.visible { transform: translateX(0); }

.panel-notas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--steel-border, #3d4a5c);
  flex-shrink: 0;
}
.panel-notas-header h3 {
  margin: 0;
  font-size: 14px;
  color: var(--steel-title, #c8d0dc);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.panel-notas-header h3 i { color: var(--steel-icon, #9aa8b8); }
.panel-notas-cerrar {
  background: transparent;
  border: none;
  color: #7a8799;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}
.panel-notas-cerrar:hover {
  color: #c5cdd8;
  background: rgba(255, 255, 255, 0.04);
}

.panel-notas-conductor {
  padding: 8px 14px;
  border-bottom: 1px solid #1e2130;
  font-size: 13px;
  color: #ccc;
  flex-shrink: 0;
}
.panel-notas-conductor #panel-notas-nombre {
  color: #4fc3f7;
  font-weight: 600;
}

.panel-notas-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nota-item {
  border-radius: 8px;
  padding: 7px 10px;
}
.nota-item .nota-ts {
  font-size: 10px;
  color: #6a7a8a;
  margin-bottom: 4px;
}
.nota-item .nota-texto {
  font-size: 13px;
  color: #ccc;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.nota-item.nota-sistema .nota-texto { color: #a8b8c8; }
.nota-por { color: #6a7a8a; }
.nota-por-sistema { color: #4fc3f7; }

.sin-notas {
  text-align: center;
  color: #444;
  font-size: 13px;
  padding: 24px 0;
  line-height: 1.45;
}

.panel-notas-footer {
  padding: 8px 14px;
  border-top: 1px solid #2a2d3a;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: flex-end;
}
#nueva-nota-input {
  flex: 1;
  min-width: 0;
  background: #0f1117;
  border: 1px solid #2a2d3a;
  color: #a8b8c8;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  resize: none;
  font-family: inherit;
  line-height: 1.35;
  min-height: 0;
}
#nueva-nota-input:focus {
  outline: none;
  border-color: #4fc3f7;
}
.btn-agregar-nota {
  flex-shrink: 0;
  align-self: flex-end;
  padding: 4px 10px;
  min-height: 0;
  background: transparent;
  color: #4fc3f7;
  border: 1px solid #4fc3f755;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.btn-agregar-nota i {
  font-size: 10px;
}
.btn-agregar-nota:hover {
  background: #4fc3f711;
  border-color: #4fc3f7;
}
.btn-agregar-nota:disabled {
  opacity: 0.5;
  cursor: wait;
}
